summaryrefslogtreecommitdiff
path: root/engine/gfx/oam_dma.asm
diff options
context:
space:
mode:
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 b0d64675..aeea4c01 100644
--- a/engine/gfx/oam_dma.asm
+++ b/engine/gfx/oam_dma.asm
@@ -1,12 +1,12 @@
WriteDMACodeToHRAM::
; Since no other memory is available during OAM DMA,
; DMARoutine is copied to HRAM and executed there.
- ld c, $ff80 % $100
+ ld c, hDMARoutine % $100
ld b, DMARoutineEnd - DMARoutine
ld hl, DMARoutine
.copy
ld a, [hli]
- ld [$ff00+c], a
+ ldh [c], a
inc c
dec b
jr nz, .copy