aboutsummaryrefslogtreecommitdiffstats
path: root/home/text.asm
diff options
context:
space:
mode:
authordannye <33dannye@gmail.com>2025-11-12 17:56:10 -0600
committerdannye <33dannye@gmail.com>2025-11-12 17:56:10 -0600
commit324ae167d15ae4eef3cda411e10201661e57d88d (patch)
tree86c2b73ce1262f12c1b3eb82874e8572e80e583f /home/text.asm
parentSeparate surfing Pikachu graphics from audio engine code (diff)
parentUse features of RGBDS 1.0.0 (#537) (diff)
downloadpokeyellow-324ae167d15ae4eef3cda411e10201661e57d88d.tar.gz
pokeyellow-324ae167d15ae4eef3cda411e10201661e57d88d.tar.xz
pokeyellow-324ae167d15ae4eef3cda411e10201661e57d88d.zip
Merge branch 'master' of https://github.com/pret/pokered
Diffstat (limited to 'home/text.asm')
-rw-r--r--home/text.asm86
1 files changed, 43 insertions, 43 deletions
diff --git a/home/text.asm b/home/text.asm
index 6a7b51f4..27c5b422 100644
--- a/home/text.asm
+++ b/home/text.asm
@@ -3,7 +3,7 @@ TextBoxBorder::
; top row
push hl
- ld a, "┌"
+ ld a, '┌'
ld [hli], a
inc a ; "─"
call .PlaceChars
@@ -17,11 +17,11 @@ TextBoxBorder::
; middle rows
.next
push hl
- ld a, "│"
+ ld a, '│'
ld [hli], a
- ld a, " "
+ ld a, ' '
call .PlaceChars
- ld [hl], "│"
+ ld [hl], '│'
pop hl
ld de, SCREEN_WIDTH
@@ -30,11 +30,11 @@ TextBoxBorder::
jr nz, .next
; bottom row
- ld a, "└"
+ ld a, '└'
ld [hli], a
- ld a, "─"
+ ld a, '─'
call .PlaceChars
- ld [hl], "┘"
+ ld [hl], '┘'
ret
.PlaceChars::
@@ -51,7 +51,7 @@ PlaceString::
PlaceNextChar::
ld a, [de]
- cp "@"
+ cp '@'
jr nz, .NotTerminator
ld b, h
ld c, l
@@ -59,7 +59,7 @@ PlaceNextChar::
ret
.NotTerminator
- cp "<NEXT>"
+ cp '<NEXT>'
jr nz, .NotNext
ld bc, 2 * SCREEN_WIDTH
ldh a, [hUILayoutFlags]
@@ -73,7 +73,7 @@ PlaceNextChar::
jp NextChar
.NotNext
- cp "<LINE>"
+ cp '<LINE>'
jr nz, .NotLine
pop hl
hlcoord 1, 16
@@ -83,26 +83,26 @@ PlaceNextChar::
.NotLine
; Check against a dictionary
- dict "<NULL>", NullChar
- dict "<SCROLL>", _ContTextNoPause
- dict "<_CONT>", _ContText
- dict "<PARA>", Paragraph
- dict "<PAGE>", PageChar
- dict "<PLAYER>", PrintPlayerName
- dict "<RIVAL>", PrintRivalName
- dict "#", PlacePOKe
- dict "<PC>", PCChar
- dict "<ROCKET>", RocketChar
- dict "<TM>", TMChar
- dict "<TRAINER>", TrainerChar
- dict "<CONT>", ContText
- dict "<……>", SixDotsChar
- dict "<DONE>", DoneText
- dict "<PROMPT>", PromptText
- dict "<PKMN>", PlacePKMN
- dict "<DEXEND>", PlaceDexEnd
- dict "<TARGET>", PlaceMoveTargetsName
- dict "<USER>", PlaceMoveUsersName
+ dict '<NULL>', NullChar
+ dict '<SCROLL>', _ContTextNoPause
+ dict '<_CONT>', _ContText
+ dict '<PARA>', Paragraph
+ dict '<PAGE>', PageChar
+ dict '<PLAYER>', PrintPlayerName
+ dict '<RIVAL>', PrintRivalName
+ dict '#', PlacePOKe
+ dict '<PC>', PCChar
+ dict '<ROCKET>', RocketChar
+ dict '<TM>', TMChar
+ dict '<TRAINER>', TrainerChar
+ dict '<CONT>', ContText
+ dict '<……>', SixDotsChar
+ dict '<DONE>', DoneText
+ dict '<PROMPT>', PromptText
+ dict '<PKMN>', PlacePKMN
+ dict '<DEXEND>', PlaceDexEnd
+ dict '<TARGET>', PlaceMoveTargetsName
+ dict '<USER>', PlaceMoveUsersName
ld [hli], a
call PrintLetterDelay
@@ -202,7 +202,7 @@ ContCharText::
text_end
PlaceDexEnd::
- ld [hl], "."
+ ld [hl], '.'
pop hl
ret
@@ -210,12 +210,12 @@ PromptText::
ld a, [wLinkState]
cp LINK_STATE_BATTLING
jp z, .ok
- ld a, "▼"
+ ld a, '▼'
ldcoord_a 18, 16
.ok
call ProtectedDelay3
call ManualTextScroll
- ld a, " "
+ ld a, ' '
ldcoord_a 18, 16
DoneText::
@@ -229,7 +229,7 @@ DoneText::
Paragraph::
push de
- ld a, "▼"
+ ld a, '▼'
ldcoord_a 18, 16
call ProtectedDelay3
call ManualTextScroll
@@ -246,12 +246,12 @@ PageChar::
ldh a, [hUILayoutFlags]
bit BIT_PAGE_CHAR_IS_NEXT, a
jr z, .pageChar
- ld a, "<NEXT>"
+ ld a, '<NEXT>'
jp PlaceNextChar.NotTerminator
.pageChar
push de
- ld a, "▼"
+ ld a, '▼'
ldcoord_a 18, 16
call ProtectedDelay3
call ManualTextScroll
@@ -267,13 +267,13 @@ PageChar::
jp NextChar
_ContText::
- ld a, "▼"
+ ld a, '▼'
ldcoord_a 18, 16
call ProtectedDelay3
push de
call ManualTextScroll
pop de
- ld a, " "
+ ld a, ' '
ldcoord_a 18, 16
_ContTextNoPause::
push de
@@ -298,7 +298,7 @@ ScrollTextUpOneLine::
dec b
jr nz, .copyText
hlcoord 1, 16
- ld a, " "
+ ld a, ' '
ld b, SCREEN_WIDTH - 2
.clearText
ld [hli], a
@@ -443,12 +443,12 @@ TextCommand_PROMPT_BUTTON::
ld a, [wLinkState]
cp LINK_STATE_BATTLING
jp z, TextCommand_WAIT_BUTTON
- ld a, "▼"
+ ld a, '▼'
ldcoord_a 18, 16 ; place down arrow in lower right corner of dialogue text box
push bc
call ManualTextScroll ; blink arrow and wait for A or B to be pressed
pop bc
- ld a, " "
+ ld a, ' '
ldcoord_a 18, 16 ; overwrite down arrow with blank space
pop hl
jp NextTextCommand
@@ -456,7 +456,7 @@ TextCommand_PROMPT_BUTTON::
TextCommand_SCROLL::
; pushes text up two lines and sets the BC cursor to the border tile
; below the first character column of the text box.
- ld a, " "
+ ld a, ' '
ldcoord_a 18, 16 ; place blank space in lower right corner of dialogue text box
call ScrollTextUpOneLine
call ScrollTextUpOneLine
@@ -571,7 +571,7 @@ TextCommand_DOTS::
ld l, c
.loop
- ld a, "…"
+ ld a, '…'
ld [hli], a
push de
call Joypad