aboutsummaryrefslogtreecommitdiffstats
path: root/engine
diff options
context:
space:
mode:
Diffstat (limited to 'engine')
-rw-r--r--engine/gfx/oam_dma.asm4
-rw-r--r--engine/menus/save.asm4
2 files changed, 4 insertions, 4 deletions
diff --git a/engine/gfx/oam_dma.asm b/engine/gfx/oam_dma.asm
index 11e52694..725c3dca 100644
--- a/engine/gfx/oam_dma.asm
+++ b/engine/gfx/oam_dma.asm
@@ -2,7 +2,7 @@ WriteDMACodeToHRAM::
; Since no other memory is available during OAM DMA,
; DMARoutine is copied to HRAM and executed there.
ld c, LOW(hDMARoutine)
- ld b, DMARoutineEnd - DMARoutine
+ ld b, DMARoutine.End - DMARoutine
ld hl, DMARoutine
.copy
ld a, [hli]
@@ -25,4 +25,4 @@ hDMARoutine::
jr nz, .wait
ret
ENDL
-DMARoutineEnd:
+.End:
diff --git a/engine/menus/save.asm b/engine/menus/save.asm
index 1857d6f5..3269e7f2 100644
--- a/engine/menus/save.asm
+++ b/engine/menus/save.asm
@@ -705,7 +705,7 @@ ClearSAV:
PadSRAM_FF:
ld [MBC1SRamBank], a
- ld hl, SRAM_Begin
- ld bc, SRAM_End - SRAM_Begin
+ ld hl, STARTOF(SRAM)
+ ld bc, SIZEOF(SRAM)
ld a, $ff
jp FillMemory