Fix for Super James Pond II

This commit is contained in:
z_demo_z
2001-08-21 02:29:58 +00:00
parent 602153841b
commit 9ce2eea0d8

View File

@@ -492,8 +492,11 @@ reg2101w:
.objadds1 dw 14,14,14,14,14,12,14,14 .objadds1 dw 14,14,14,14,14,12,14,14
.objadds2 dw 14,12,8,12,8,8,14,14 .objadds2 dw 14,12,8,12,8,8,14,14
NEWSYM oamlow, db 0
; OAM address register ; OAM address register
reg2102w: reg2102w:
mov byte[oamlow],1
mov word[oamaddr],0 mov word[oamaddr],0
shr word[oamaddr],1 shr word[oamaddr],1
mov [oamaddr],al mov [oamaddr],al
@@ -522,6 +525,11 @@ reg2102w:
; OAM address register ; OAM address register
reg2103w: reg2103w:
cmp byte[oamlow],1
je .afteroamlow
ret
.afteroamlow
mov byte[oamlow],0
mov bl,al mov bl,al
and bl,01h and bl,01h
shr word[oamaddr],1 shr word[oamaddr],1