mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-22 07:02:17 +13:00
Use HIGH() and LOW()
This commit is contained in:
parent
bbc257476f
commit
45ed05decf
22 changed files with 89 additions and 87 deletions
|
|
@ -1,7 +1,7 @@
|
|||
WriteDMACodeToHRAM::
|
||||
; Since no other memory is available during OAM DMA,
|
||||
; DMARoutine is copied to HRAM and executed there.
|
||||
ld c, hDMARoutine % $100
|
||||
ld c, LOW(hDMARoutine)
|
||||
ld b, DMARoutineEnd - DMARoutine
|
||||
ld hl, DMARoutine
|
||||
.copy
|
||||
|
|
@ -14,7 +14,7 @@ WriteDMACodeToHRAM::
|
|||
|
||||
DMARoutine:
|
||||
; initiate DMA
|
||||
ld a, wOAMBuffer / $100
|
||||
ld a, HIGH(wOAMBuffer)
|
||||
ldh [rDMA], a
|
||||
|
||||
; wait for DMA to finish
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue