4 .global clut_line @ void *dest, void *src, unsigned short *pal, int pixels_mask
10 mov lr, lr, lsr #15 @ mask
12 and r3, r3, #0xff @ counter
18 and r4, lr, r10, lsl #1
20 and r5, lr, r10, lsr #7
22 orr r4, r4, r4, lsl #16
24 and r6, lr, r10, lsr #15
26 orr r5, r5, r5, lsl #16
28 and r7, lr, r10, lsr #23
30 orr r6, r6, r6, lsl #16
32 and r8, lr, r12, lsl #1
34 orr r7, r7, r7, lsl #16
36 and r9, lr, r12, lsr #7
38 orr r8, r8, r8, lsl #16
40 and r10,lr, r12, lsr #15
42 orr r9, r9, r9, lsl #16
44 and r12,lr, r12, lsr #23
46 orr r10,r10,r10, lsl #16
49 orr r12,r12,r12, lsl #16
51 stmia r0!, {r4-r10,r12}
52 stmia r11!,{r4-r10,r12}
55 ldmfd sp!, {r4-r11,pc}