summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYamaArashi <shadow962@live.com>2016-09-11 02:01:37 -0700
committerYamaArashi <shadow962@live.com>2016-09-11 02:01:37 -0700
commit46a94c63fc287e7290502776d02648476bc44171 (patch)
tree8d6ca6f2c96868c824c1a09159b5aa746e3ce4df
parent0eedb406081791c9ffb6309cda25259ee011682e (diff)
name text destination pointer variable
-rw-r--r--home/text.asm10
-rwxr-xr-xwram.asm9
2 files changed, 9 insertions, 10 deletions
diff --git a/home/text.asm b/home/text.asm
index 65d7a614..b983f609 100644
--- a/home/text.asm
+++ b/home/text.asm
@@ -1,5 +1,5 @@
TextBoxBorder::
-; Draw a cxb text box at hl.
+; Draw a c×b text box at hl.
; top row
push hl
@@ -369,9 +369,9 @@ TextCommandProcessor::
xor e
ld [wLetterPrintingDelayFlags],a
ld a,c
- ld [wUnusedCC3A],a
+ ld [wTextDest],a
ld a,b
- ld [wUnusedCC3B],a
+ ld [wTextDest + 1],a
NextTextCommand::
ld a,[hli]
@@ -480,10 +480,10 @@ TextCommand02::
TextCommand03::
pop hl
ld a,[hli]
- ld [wUnusedCC3A],a
+ ld [wTextDest],a
ld c,a
ld a,[hli]
- ld [wUnusedCC3B],a
+ ld [wTextDest + 1],a
ld b,a
jp NextTextCommand
diff --git a/wram.asm b/wram.asm
index 0321545c..35acff94 100755
--- a/wram.asm
+++ b/wram.asm
@@ -445,11 +445,10 @@ wTradeCenterPointerTableIndex:: ; cc38
ds 1
-wUnusedCC3A:: ; cc3a
- ds 1
-
-wUnusedCC3B:: ; cc3b
- ds 1
+wTextDest:: ; cc3a
+; destination pointer for text output
+; this variable is written to, but is never read from
+ ds 2
wDoNotWaitForButtonPressAfterDisplayingText:: ; cc3c
; if non-zero, skip waiting for a button press after displaying text in DisplayTextID