X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Pico%2FDraw_amips.s;h=c05391ce93e4789e7a1d7e7c93a3d118cb217121;hb=2d2247c26080ed9009b3d8c650cfc647fd1fb162;hp=ca3368aa77d59061748397300bc1d1a8455784e7;hpb=8ef001cc89adfb193dd6bfb31e25007abfece972;p=picodrive.git diff --git a/Pico/Draw_amips.s b/Pico/Draw_amips.s index ca3368a..c05391c 100644 --- a/Pico/Draw_amips.s +++ b/Pico/Draw_amips.s @@ -1,10 +1,14 @@ # vim:filetype=mips -# only CLUT for now.. +# several drawing related functions for Allegrex MIPS +# (c) Copyright 2007, Grazvydas "notaz" Ignotas +# All Rights Reserved .set noreorder # don't reorder any instructions .set noat # don't use $at +.text +.align 4 # void amips_clut(unsigned short *dst, unsigned char *src, unsigned short *pal, int count) @@ -1671,6 +1675,9 @@ tile00000001: jr $ra sb $t0, 0($a0) +.data +.align 4 + TileTable: .long 000000000000, tile00000001, tile00000010, tile00000011, tile00000100, tile00000101, tile00000110, tile00000111 .long tile00001000, tile00001001, tile00001010, tile00001011, tile00001100, tile00001101, tile00001110, tile00001111