summaryrefslogtreecommitdiff
path: root/src/home/clear_sram.asm
diff options
context:
space:
mode:
Diffstat (limited to 'src/home/clear_sram.asm')
-rw-r--r--src/home/clear_sram.asm6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/home/clear_sram.asm b/src/home/clear_sram.asm
index 47e7017..a899b08 100644
--- a/src/home/clear_sram.asm
+++ b/src/home/clear_sram.asm
@@ -1,6 +1,6 @@
; validate the saved data in SRAM
; it must contain with the sequence $04, $21, $05 at s0a000
-ValidateSRAM: ; 080b (0:080b)
+ValidateSRAM:
xor a
call BankswitchSRAM
ld hl, $a000
@@ -41,7 +41,7 @@ ValidateSRAM: ; 080b (0:080b)
ret
; zero all SRAM banks and set s0a000 to $04, $21, $05
-RestartSRAM: ; 084d (0:084d)
+RestartSRAM:
ld a, 3
.clear_loop
call ClearSRAMBank
@@ -57,7 +57,7 @@ RestartSRAM: ; 084d (0:084d)
ret
; zero the loaded SRAM bank
-ClearSRAMBank: ; 0863 (0:0863)
+ClearSRAMBank:
push af
call BankswitchSRAM
call EnableSRAM