More wOAMBuffer references.

This commit is contained in:
yenatch 2014-05-27 11:08:52 -07:00
parent 40c17c906b
commit f16f07c5ca
3 changed files with 3 additions and 3 deletions

View file

@ -356,7 +356,7 @@ Func_718ac: ; 718ac (1c:58ac)
Func_718c3: ; 718c3 (1c:58c3) Func_718c3: ; 718c3 (1c:58c3)
push af push af
ld c, $10 ld c, $10
ld h, $c3 ld h, wOAMBuffer / $100
ld a, [H_DOWNARROWBLINKCNT2] ; $ff8c ld a, [H_DOWNARROWBLINKCNT2] ; $ff8c
swap a swap a
ld l, a ld l, a

View file

@ -14,7 +14,7 @@ WriteDMACodeToHRAM:
DMARoutine: DMARoutine:
; initiate DMA ; initiate DMA
ld a, $c3 ld a, wOAMBuffer / $100
ld [$ff46], a ld [$ff46], a
; wait for DMA to finish ; wait for DMA to finish

View file

@ -9244,7 +9244,7 @@ StringCmp:: ; 3a8e (0:3a8e)
; c = X coordinate of upper left corner of sprite ; c = X coordinate of upper left corner of sprite
; de = base address of 4 tile number and attribute pairs ; de = base address of 4 tile number and attribute pairs
WriteOAMBlock:: ; 3a97 (0:3a97) WriteOAMBlock:: ; 3a97 (0:3a97)
ld h,$c3 ld h,wOAMBuffer / $100
swap a ; multiply by 16 swap a ; multiply by 16
ld l,a ld l,a
call .writeOneEntry ; upper left call .writeOneEntry ; upper left