aboutsummaryrefslogtreecommitdiffstats
path: root/home/bankswitch.asm
diff options
context:
space:
mode:
authorRangi <35663410+Rangi42@users.noreply.github.com>2025-06-30 12:47:22 -0400
committerGitHub <noreply@github.com>2025-06-30 12:47:22 -0400
commit56c405de09ce267c4cfbc68a15c37b2ff51c635a (patch)
tree47d25c237e9af824f7a57295a2d2e298b194a8e6 /home/bankswitch.asm
parentDistinguish single trainer pics section from Pokemon pics (diff)
downloadpokeyellow-56c405de09ce267c4cfbc68a15c37b2ff51c635a.tar.gz
pokeyellow-56c405de09ce267c4cfbc68a15c37b2ff51c635a.tar.xz
pokeyellow-56c405de09ce267c4cfbc68a15c37b2ff51c635a.zip
Replace hardware_constants.asm with hardware.inc (#511)
Diffstat (limited to 'home/bankswitch.asm')
-rw-r--r--home/bankswitch.asm8
1 files changed, 4 insertions, 4 deletions
diff --git a/home/bankswitch.asm b/home/bankswitch.asm
index 52c8a45c..2ce363b7 100644
--- a/home/bankswitch.asm
+++ b/home/bankswitch.asm
@@ -6,14 +6,14 @@ BankswitchHome::
ld [wBankswitchHomeSavedROMBank], a
ld a, [wBankswitchHomeTemp]
ldh [hLoadedROMBank], a
- ld [MBC1RomBank], a
+ ld [rROMB], a
ret
BankswitchBack::
; returns from BankswitchHome
ld a, [wBankswitchHomeSavedROMBank]
ldh [hLoadedROMBank], a
- ld [MBC1RomBank], a
+ ld [rROMB], a
ret
Bankswitch::
@@ -23,7 +23,7 @@ Bankswitch::
push af
ld a, b
ldh [hLoadedROMBank], a
- ld [MBC1RomBank], a
+ ld [rROMB], a
ld bc, .Return
push bc
jp hl
@@ -31,5 +31,5 @@ Bankswitch::
pop bc
ld a, b
ldh [hLoadedROMBank], a
- ld [MBC1RomBank], a
+ ld [rROMB], a
ret