summaryrefslogtreecommitdiff
path: root/home/text.asm
diff options
context:
space:
mode:
Diffstat (limited to 'home/text.asm')
-rw-r--r--home/text.asm12
1 files changed, 7 insertions, 5 deletions
diff --git a/home/text.asm b/home/text.asm
index 87ffdc7d9..d9236a7a7 100644
--- a/home/text.asm
+++ b/home/text.asm
@@ -181,22 +181,24 @@ NextChar::
CheckDict::
dict: MACRO
-if \1 == "<NULL>"
+if \1 == 0
and a
else
cp \1
endc
-if STRSUB("\2", 1, 1) == "\""
+if ISCONST(\2)
; Replace a character with another one
jr nz, ._\@
ld a, \2
._\@:
-elif STRSUB("\2", 1, 1) == "."
-; Locals can use a short jump
- jr z, \2
else
+ if STRSUB("\2", 1, 1) == "."
+ ; Locals can use a short jump
+ jr z, \2
+ else
jp z, \2
+ endc
endc
ENDM