Fixed Dezaemon sprites (Clear entire OAM address when first byte is written to, but not the second)

This commit is contained in:
zsknight
2001-06-27 22:02:57 +00:00
parent 123ea285b0
commit 6db183777d
2 changed files with 3 additions and 2 deletions

View File

@@ -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]

View File

@@ -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