summaryrefslogtreecommitdiff
path: root/home/predef.asm
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2020-12-23 16:29:30 -0500
committerRangi <remy.oukaour+rangi42@gmail.com>2020-12-23 16:29:30 -0500
commit99e66c25577e367d6c7ca75fea8b466b54c3317a (patch)
tree56183dddfd540a395086a7540060c374f9541723 /home/predef.asm
parent1a054661ecac2d6075961e486213b6880c0afc4e (diff)
Rename some labels
- Remove "Buffer" suffix from some byte and word quantities - Change "Ptr" to "Pointer" Fixes #789
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