summaryrefslogtreecommitdiff
path: root/src/macros
diff options
context:
space:
mode:
Diffstat (limited to 'src/macros')
-rw-r--r--src/macros/data.asm4
-rw-r--r--src/macros/text.asm54
2 files changed, 57 insertions, 1 deletions
diff --git a/src/macros/data.asm b/src/macros/data.asm
index ddb7443..80c4ba2 100644
--- a/src/macros/data.asm
+++ b/src/macros/data.asm
@@ -90,6 +90,10 @@ txsymbol: MACRO
charmap "\1>", const_value + -1
ENDM
+fwcharmap: MACRO
+ charmap STRCAT("FW\1_", \2), \3
+ENDM
+
textitem: MACRO
db \1, \2
tx \3
diff --git a/src/macros/text.asm b/src/macros/text.asm
index 24c5987..4a4211a 100644
--- a/src/macros/text.asm
+++ b/src/macros/text.asm
@@ -1,4 +1,56 @@
text EQUS "db TX_HALFWIDTH, "
-textfw EQUS "db TX_FULLWIDTH3, "
line EQUS "db TX_LINE, "
done EQUS "db TX_END"
+
+half2full EQUS "db TX_HALF2FULL"
+
+katakana: MACRO
+ db TX_KATAKANA
+ rept _NARG
+ db STRCAT("FW0_", \1)
+ shift
+ endr
+ENDM
+
+hiragana: MACRO
+ db TX_HIRAGANA
+ rept _NARG
+ db STRCAT("FW0_", \1)
+ shift
+ endr
+ENDM
+
+textfw0: MACRO
+ rept _NARG
+ db STRCAT("FW0_", \1)
+ shift
+ endr
+ENDM
+
+textfw1: MACRO
+ rept _NARG
+ db TX_FULLWIDTH1, STRCAT("FW1_", \1)
+ shift
+ endr
+ENDM
+
+textfw2: MACRO
+ rept _NARG
+ db TX_FULLWIDTH2, STRCAT("FW2_", \1)
+ shift
+ endr
+ENDM
+
+textfw3: MACRO
+ rept _NARG
+ db TX_FULLWIDTH3, STRCAT("FW3_", \1)
+ shift
+ endr
+ENDM
+
+textfw4: MACRO
+ rept _NARG
+ db TX_FULLWIDTH2, STRCAT("FW4_", \1)
+ shift
+ endr
+ENDM