mirror of
https://github.com/thornAvery/kep-hack.git
synced 2025-09-17 02:40:50 +12:00
More wOAMBuffer references.
This commit is contained in:
parent
40c17c906b
commit
f16f07c5ca
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
2
home.asm
2
home.asm
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue