struct PicoEState *est)\r
{\r
unsigned char *p;\r
- int cnt, w = sprited[2];\r
+ int cnt, w;\r
\r
cnt = sprited[0] & 0x7f;\r
if (cnt == 0) return;\r
mov r2, r0, lsl #24\r
cmp r0, #0xff\r
ldmeqfd sp!, {r1,r3-r11,pc} @ end of list\r
- eor r2, r2, r4, lsl #30\r
+ eors r2, r2, r4, lsl #30\r
+ bic r2, r4, #0xff000000\r
+ str r2, [sp]\r
bmi DrawSprite @ wrong priority\r
ldr r1, [r7, #OFS_EST_HighPreSpr]\r
and r0, r0, #0x7f\r
add r6, r6, #1 @ inc now\r
cmp r4, #0x1000000 @ check width of last sprite\r
movhs r6, r4, lsr #24\r
- bichs r4, r4, #0xff000000\r
- strhs r4, [sp]\r
\r
@ cache some stuff to avoid mem access\r
mov r5, r5, lsl #4 @ delta<<=4; // Delta of address\r