summaryrefslogtreecommitdiff
path: root/home/predef.asm
diff options
context:
space:
mode:
Diffstat (limited to 'home/predef.asm')
-rw-r--r--home/predef.asm14
1 files changed, 7 insertions, 7 deletions
diff --git a/home/predef.asm b/home/predef.asm
index 10550d126..eb9a2f9f6 100644
--- a/home/predef.asm
+++ b/home/predef.asm
@@ -8,7 +8,7 @@ Predef::
ld a, BANK(GetPredefPointer)
rst Bankswitch
- call GetPredefPointer ; stores hl in wPredefTemp
+ call GetPredefPointer ; stores hl in wPredefHL
; Switch to the new function's bank
rst Bankswitch
@@ -27,9 +27,9 @@ Predef::
push hl
; Get hl back
- ld a, [wPredefTemp]
+ ld a, [wPredefHL]
ld h, a
- ld a, [wPredefTemp + 1]
+ ld a, [wPredefHL + 1]
ld l, a
ret
@@ -37,16 +37,16 @@ Predef::
; Clean up after the Predef call
ld a, h
- ld [wPredefTemp], a
+ ld [wPredefHL], a
ld a, l
- ld [wPredefTemp + 1], a
+ ld [wPredefHL + 1], a
pop hl
ld a, h
rst Bankswitch
- ld a, [wPredefTemp]
+ ld a, [wPredefHL]
ld h, a
- ld a, [wPredefTemp + 1]
+ ld a, [wPredefHL + 1]
ld l, a
ret