4 .global cache_flush_d_inval_i
7 mov r2, #0x0 @ must be 0 ???
12 .global clut_line @ void *dest, void *src, unsigned short *pal, int pixels_mask
15 stmfd sp!, {r4-r11,lr}
18 mov lr, lr, lsr #15 @ mask
20 and r3, r3, #0xff @ counter
26 and r4, lr, r10, lsl #1
28 and r5, lr, r10, lsr #7
30 orr r4, r4, r4, lsl #16
32 and r6, lr, r10, lsr #15
34 orr r5, r5, r5, lsl #16
36 and r7, lr, r10, lsr #23
38 orr r6, r6, r6, lsl #16
40 and r8, lr, r12, lsl #1
42 orr r7, r7, r7, lsl #16
44 and r9, lr, r12, lsr #7
46 orr r8, r8, r8, lsl #16
48 and r10,lr, r12, lsr #15
50 orr r9, r9, r9, lsl #16
52 and r12,lr, r12, lsr #23
54 orr r10,r10,r10, lsl #16
57 orr r12,r12,r12, lsl #16
59 stmia r0!, {r4-r10,r12}
60 stmia r11!,{r4-r10,r12}
63 ldmfd sp!, {r4-r11,pc}