summaryrefslogtreecommitdiff
path: root/home
diff options
context:
space:
mode:
Diffstat (limited to 'home')
-rw-r--r--home/text.asm14
1 files changed, 6 insertions, 8 deletions
diff --git a/home/text.asm b/home/text.asm
index 92cecf5b3..18eb1743c 100644
--- a/home/text.asm
+++ b/home/text.asm
@@ -187,24 +187,22 @@ NextChar::
CheckDict::
dict: MACRO
+assert CHARLEN(\1) == 1
if \1 == 0
and a
else
cp \1
endc
-
if ISCONST(\2)
-; Replace a character with another one
- jr nz, ._\@
+ ; Replace a character with another one
+ jr nz, .not\@
ld a, \2
-._\@:
-else
- if STRSUB("\2", 1, 1) == "."
+.not\@:
+elif STRSUB("\2", 1, 1) == "."
; Locals can use a short jump
jr z, \2
- else
+else
jp z, \2
- endc
endc
ENDM