summaryrefslogtreecommitdiff
path: root/home/predef.asm
diff options
context:
space:
mode:
Diffstat (limited to 'home/predef.asm')
-rw-r--r--home/predef.asm10
1 files changed, 4 insertions, 6 deletions
diff --git a/home/predef.asm b/home/predef.asm
index 8efe3000..07188019 100644
--- a/home/predef.asm
+++ b/home/predef.asm
@@ -1,4 +1,4 @@
-Predef::
+Predef:: ; 3eb4 (0:3eb4)
; Call predefined function a.
; To preserve other registers, have the
; destination call GetPredefRegisters.
@@ -19,8 +19,7 @@ Predef::
call GetPredefPointer
ld a, [wPredefBank]
- ld [H_LOADEDROMBANK], a
- ld [$2000], a
+ call BankswitchCommon
ld de, .done
push de
@@ -28,11 +27,10 @@ Predef::
.done
pop af
- ld [H_LOADEDROMBANK], a
- ld [$2000], a
+ call BankswitchCommon
ret
-GetPredefRegisters::
+GetPredefRegisters:: ; 3ed7 (0:3ed7)
; Restore the contents of register pairs
; when GetPredefPointer was called.
ld a, [wPredefRegisters + 0]