Fixed sprite priority rotation (Thanks TRAC!)
This commit is contained in:
@@ -511,16 +511,17 @@ reg2102w:
|
|||||||
.skipstore
|
.skipstore
|
||||||
cmp byte[nexthprior],1
|
cmp byte[nexthprior],1
|
||||||
je .priorset
|
je .priorset
|
||||||
mov byte[objhipr],0
|
; mov byte[objhipr],0
|
||||||
jmp .cachespr
|
jmp .cachespr
|
||||||
.priorset
|
.priorset
|
||||||
mov bl,al
|
mov bx,[oamaddr]
|
||||||
cmp bl,80h
|
shr bx,2
|
||||||
jae .noreset
|
and bl,0x7F
|
||||||
|
; cmp bl,80h
|
||||||
|
; jae .noreset
|
||||||
; xor bl,bl
|
; xor bl,bl
|
||||||
.noreset
|
.noreset
|
||||||
mov [objhipr],bl
|
mov [objhipr],bl
|
||||||
mov byte[nexthprior],0
|
|
||||||
.cachespr
|
.cachespr
|
||||||
ret
|
ret
|
||||||
|
|
||||||
@@ -547,6 +548,7 @@ reg2103w:
|
|||||||
mov [oamaddrs],bx
|
mov [oamaddrs],bx
|
||||||
test al,80h
|
test al,80h
|
||||||
jnz .hipri
|
jnz .hipri
|
||||||
|
mov byte[nexthprior],0
|
||||||
mov byte[NextLineCache],1
|
mov byte[NextLineCache],1
|
||||||
ret
|
ret
|
||||||
.hipri
|
.hipri
|
||||||
|
|||||||
Reference in New Issue
Block a user