summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordannye <33dannye@gmail.com>2021-06-13 09:41:05 -0500
committerdannye <33dannye@gmail.com>2021-06-13 09:41:05 -0500
commitbe0303a3ad3d70f20d6c2202cb43ffd58370982d (patch)
tree4e276ab942f32c26ed8bc8c1ed88f90f44eb8947
parentc533527ff02ac86a33d6e98399e571db1112bc41 (diff)
Fix hard-coded address to SwitchToBankAtSP
-rw-r--r--src/engine/home.asm8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/engine/home.asm b/src/engine/home.asm
index a79cd14..5d95dac 100644
--- a/src/engine/home.asm
+++ b/src/engine/home.asm
@@ -1799,9 +1799,9 @@ Bank1Call: ; 09ae (0:09ae)
dec hl
ldh a, [hBankROM]
ld [hld], a
- ld [hl], $9
+ ld [hl], HIGH(SwitchToBankAtSP)
dec hl
- ld [hl], $dc
+ ld [hl], LOW(SwitchToBankAtSP)
dec hl
inc de
ld a, [de]
@@ -1857,9 +1857,9 @@ FarCall: ; 09e9 (0:09e9)
dec hl
ldh a, [hBankROM]
ld [hld], a
- ld [hl], $9
+ ld [hl], HIGH(SwitchToBankAtSP)
dec hl
- ld [hl], $dc
+ ld [hl], LOW(SwitchToBankAtSP)
dec hl
inc de
inc de