summaryrefslogtreecommitdiff
path: root/engine/gfx/oam_dma.asm
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2020-07-07 11:10:29 -0400
committerRangi <remy.oukaour+rangi42@gmail.com>2020-07-07 11:10:29 -0400
commit45ed05decf330faab4503fe8fecadc54698c9724 (patch)
treeadd3eeda2d09334209abe4e55341b674e64dd117 /engine/gfx/oam_dma.asm
parentbbc257476f9aac8d04d75a8036d412caa8f7d515 (diff)
Use HIGH() and LOW()
Diffstat (limited to 'engine/gfx/oam_dma.asm')
-rw-r--r--engine/gfx/oam_dma.asm4
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/gfx/oam_dma.asm b/engine/gfx/oam_dma.asm
index d8d8839a..84bb4b5c 100644
--- a/engine/gfx/oam_dma.asm
+++ b/engine/gfx/oam_dma.asm
@@ -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