aboutsummaryrefslogtreecommitdiffstats
path: root/engine/debug/debug_menu.asm
diff options
context:
space:
mode:
authorSatoMew <SatoMew@users.noreply.github.com>2024-06-27 02:19:06 +0000
committerGitHub <noreply@github.com>2024-06-26 21:19:06 -0500
commit57bec62508c6ae3424977c9db55ad66fc1eb0a42 (patch)
treee7b3b81c68c901a6b2b1811c8a6e1c57b479dd44 /engine/debug/debug_menu.asm
parentMerge branch 'master' of https://github.com/pret/pokered (diff)
downloadpokeyellow-57bec62508c6ae3424977c9db55ad66fc1eb0a42.tar.gz
pokeyellow-57bec62508c6ae3424977c9db55ad66fc1eb0a42.tar.xz
pokeyellow-57bec62508c6ae3424977c9db55ad66fc1eb0a42.zip
Improve documentation of some SRAM routines (#114)
Diffstat (limited to 'engine/debug/debug_menu.asm')
-rw-r--r--engine/debug/debug_menu.asm12
1 files changed, 6 insertions, 6 deletions
diff --git a/engine/debug/debug_menu.asm b/engine/debug/debug_menu.asm
index b90c16b2..25e36cae 100644
--- a/engine/debug/debug_menu.asm
+++ b/engine/debug/debug_menu.asm
@@ -1601,7 +1601,7 @@ Data_ff2eb:
Func_ff2f3:
push hl
- call Func_ff316
+ call DebugEnableSRAM
ld a, b
ld [MBC1SRamBank], a
ld bc, sBox2 - sBox1
@@ -1615,18 +1615,18 @@ Func_ff2f3:
ld bc, sBox5 - sBox1 + 1
call Func_ff32a
ld [sBox5], a
- call Func_ff321
+ call DebugDisableSRAM
ret
-Func_ff316:
- ld a, 1
+DebugEnableSRAM: ; duplicate of EnableSRAM
+ ld a, SRAM_BANKING_MODE
ld [MBC1SRamBankingMode], a
ld a, SRAM_ENABLE
ld [MBC1SRamEnable], a
ret
-Func_ff321:
- ld a, 0
+DebugDisableSRAM: ; duplicate of DisableSRAM
+ ld a, SRAM_DISABLE
ld [MBC1SRamBankingMode], a
ld [MBC1SRamEnable], a
ret