summaryrefslogtreecommitdiff
path: root/engine/oam_dma.asm
diff options
context:
space:
mode:
Diffstat (limited to 'engine/oam_dma.asm')
-rw-r--r--engine/oam_dma.asm5
1 files changed, 3 insertions, 2 deletions
diff --git a/engine/oam_dma.asm b/engine/oam_dma.asm
index 3de4d773..7326445e 100644
--- a/engine/oam_dma.asm
+++ b/engine/oam_dma.asm
@@ -15,11 +15,12 @@ WriteDMACodeToHRAM:
DMARoutine:
; initiate DMA
ld a, wOAMBuffer / $100
- ld [$ff46], a
+ ld [rDMA], a
; wait for DMA to finish
ld a, $28
-.wait dec a
+.wait
+ dec a
jr nz, .wait
ret
DMARoutineEnd: