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

@@ -494,6 +494,7 @@ reg2101w:
; OAM address register
reg2102w:
mov word[oamaddr],0
shr word[oamaddr],1
mov [oamaddr],al
shl word[oamaddr],1
@@ -553,7 +554,7 @@ reg2104w:
je .noinc
inc dword[oamaddr]
cmp ebx,544
je .overflow
jae .overflow
.noinc
mov [oamram+ebx],al
ret