5 .set noreorder # don't reorder any instructions
6 .set noat # don't use $at
9 # void amips_clut(unsigned short *dst, unsigned char *src, unsigned short *pal, int count)
16 lbu $t0, 0($a1) # tried lw here, no improvement noticed
32 ins $t0, $t1, 16, 16 # ins rt, rs, pos, size - Insert size bits starting
33 ins $t2, $t3, 16, 16 # from the LSB of rs into rt starting at position pos
38 bnez $a3, amips_clut_loop