summaryrefslogtreecommitdiff
path: root/home/predef.asm
diff options
context:
space:
mode:
Diffstat (limited to 'home/predef.asm')
-rw-r--r--home/predef.asm20
1 files changed, 10 insertions, 10 deletions
diff --git a/home/predef.asm b/home/predef.asm
index f99e85891..f03bdaa94 100644
--- a/home/predef.asm
+++ b/home/predef.asm
@@ -2,13 +2,13 @@ Predef:: ; 2d83
; Call predefined function a.
; Preserves bc, de, hl and f.
- ld [PredefID], a
+ ld [wPredefID], a
ld a, [hROMBank]
push af
ld a, BANK(GetPredefPointer)
rst Bankswitch
- call GetPredefPointer ; stores hl in PredefTemp
+ call GetPredefPointer ; stores hl in wPredefTemp
; Switch to the new function's bank
rst Bankswitch
@@ -20,16 +20,16 @@ Predef:: ; 2d83
push hl
; Call the Predef function
- ld a, [PredefAddress]
+ ld a, [wPredefAddress]
ld h, a
- ld a, [PredefAddress + 1]
+ ld a, [wPredefAddress + 1]
ld l, a
push hl
; Get hl back
- ld a, [PredefTemp]
+ ld a, [wPredefTemp]
ld h, a
- ld a, [PredefTemp + 1]
+ ld a, [wPredefTemp + 1]
ld l, a
ret
@@ -37,17 +37,17 @@ Predef:: ; 2d83
; Clean up after the Predef call
ld a, h
- ld [PredefTemp], a
+ ld [wPredefTemp], a
ld a, l
- ld [PredefTemp+1], a
+ ld [wPredefTemp+1], a
pop hl
ld a, h
rst Bankswitch
- ld a, [PredefTemp]
+ ld a, [wPredefTemp]
ld h, a
- ld a, [PredefTemp + 1]
+ ld a, [wPredefTemp + 1]
ld l, a
ret
; 2dba