Fixed Dezaemon sprites (Clear entire OAM address when first byte is written to, but not the second)
This commit is contained in:
@@ -695,7 +695,7 @@ reg213Er:
|
|||||||
|
|
||||||
; PPU Status Flag & Version number (NTSC/PAL/EXTRN Latch flag)
|
; PPU Status Flag & Version number (NTSC/PAL/EXTRN Latch flag)
|
||||||
reg213Fr:
|
reg213Fr:
|
||||||
mov byte[debstop3],1
|
; mov byte[debstop3],1
|
||||||
mov al,[romispal]
|
mov al,[romispal]
|
||||||
shl al,4
|
shl al,4
|
||||||
or al,[cfield]
|
or al,[cfield]
|
||||||
|
|||||||
@@ -494,6 +494,7 @@ reg2101w:
|
|||||||
|
|
||||||
; OAM address register
|
; OAM address register
|
||||||
reg2102w:
|
reg2102w:
|
||||||
|
mov word[oamaddr],0
|
||||||
shr word[oamaddr],1
|
shr word[oamaddr],1
|
||||||
mov [oamaddr],al
|
mov [oamaddr],al
|
||||||
shl word[oamaddr],1
|
shl word[oamaddr],1
|
||||||
@@ -553,7 +554,7 @@ reg2104w:
|
|||||||
je .noinc
|
je .noinc
|
||||||
inc dword[oamaddr]
|
inc dword[oamaddr]
|
||||||
cmp ebx,544
|
cmp ebx,544
|
||||||
je .overflow
|
jae .overflow
|
||||||
.noinc
|
.noinc
|
||||||
mov [oamram+ebx],al
|
mov [oamram+ebx],al
|
||||||
ret
|
ret
|
||||||
|
|||||||
Reference in New Issue
Block a user