summaryrefslogtreecommitdiff
path: root/home
diff options
context:
space:
mode:
Diffstat (limited to 'home')
-rw-r--r--home/copy.asm12
-rw-r--r--home/farcall.asm4
-rw-r--r--home/gfx.asm8
-rw-r--r--home/map.asm4
-rw-r--r--home/menu.asm4
-rwxr-xr-xhome/print_text.asm4
6 files changed, 18 insertions, 18 deletions
diff --git a/home/copy.asm b/home/copy.asm
index 838bb52d..5f4ea079 100644
--- a/home/copy.asm
+++ b/home/copy.asm
@@ -17,31 +17,31 @@ CopyBytes::
GetFarByte::
; retrieve a single byte from a:hl, and return it in a.
; bankswitch to new bank
- ld [wBuffer], a
+ ld [wTempBank], a
ldh a, [hROMBank]
push af
- ld a, [wBuffer]
+ ld a, [wTempBank]
rst Bankswitch
; get byte from new bank
ld a, [hl]
- ld [wBuffer], a
+ ld [wFarByte], a
; bankswitch to previous bank
pop af
rst Bankswitch
; return retrieved value in a
- ld a, [wBuffer]
+ ld a, [wFarByte]
ret
GetFarHalfword::
; retrieve a halfword from a:hl, and return it in hl.
; bankswitch to new bank
- ld [wBuffer], a
+ ld [wTempBank], a
ldh a, [hROMBank]
push af
- ld a, [wBuffer]
+ ld a, [wTempBank]
rst Bankswitch
; get halfword from new bank, put it in hl
diff --git a/home/farcall.asm b/home/farcall.asm
index 1c8b6f3f..0c8e9e39 100644
--- a/home/farcall.asm
+++ b/home/farcall.asm
@@ -2,10 +2,10 @@ FarCall_hl::
; Call a:hl.
; Preserves other registers.
- ld [wBuffer], a
+ ld [wTempBank], a
ldh a, [hROMBank]
push af
- ld a, [wBuffer]
+ ld a, [wTempBank]
rst Bankswitch
call FarCall_JumpToHL
diff --git a/home/gfx.asm b/home/gfx.asm
index 897a43ef..a1a2dee2 100644
--- a/home/gfx.asm
+++ b/home/gfx.asm
@@ -61,10 +61,10 @@ DecompressRequest2bpp::
FarCopyBytes::
; copy bc bytes from a:hl to de
- ld [wBuffer], a
+ ld [wTempBank], a
ldh a, [hROMBank]
push af
- ld a, [wBuffer]
+ ld a, [wTempBank]
rst Bankswitch
call CopyBytes
@@ -77,10 +77,10 @@ FarCopyBytesDouble::
; Copy bc bytes from a:hl to bc*2 bytes at de,
; doubling each byte in the process.
- ld [wBuffer], a
+ ld [wTempBank], a
ldh a, [hROMBank]
push af
- ld a, [wBuffer]
+ ld a, [wTempBank]
rst Bankswitch
; switcheroo, de <> hl
diff --git a/home/map.asm b/home/map.asm
index 94f30850..5f34070e 100644
--- a/home/map.asm
+++ b/home/map.asm
@@ -1452,10 +1452,10 @@ MapTextbox::
Call_a_de::
; Call a:de.
- ld [wBuffer], a
+ ld [wTempBank], a
ldh a, [hROMBank]
push af
- ld a, [wBuffer]
+ ld a, [wTempBank]
rst Bankswitch
call .de
diff --git a/home/menu.asm b/home/menu.asm
index 0b0944a7..1c473072 100644
--- a/home/menu.asm
+++ b/home/menu.asm
@@ -762,10 +762,10 @@ MenuTextboxWaitButton::
ret
Place2DMenuItemName::
- ld [wBuffer], a
+ ld [wTempBank], a
ldh a, [hROMBank]
push af
- ld a, [wBuffer]
+ ld a, [wTempBank]
rst Bankswitch
call PlaceString
diff --git a/home/print_text.asm b/home/print_text.asm
index bd26f66c..04bc8ece 100755
--- a/home/print_text.asm
+++ b/home/print_text.asm
@@ -136,10 +136,10 @@ Function33e9::
.digits db "0123456789ABCDEF"
FarPrintText::
- ld [wBuffer], a
+ ld [wTempBank], a
ldh a, [hROMBank]
push af
- ld a, [wBuffer]
+ ld a, [wTempBank]
rst Bankswitch
call PrintText