summaryrefslogtreecommitdiff
path: root/include/text.inc
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2020-09-13 16:09:33 -0400
committerRangi <remy.oukaour+rangi42@gmail.com>2020-09-13 16:09:33 -0400
commitacabb9ad777afe32c60764bca76e21267f6afd41 (patch)
tree43e89c3e95a99e7a91e41632c84d631d0e3dd9fe /include/text.inc
parentb3d9d3f7b08c0996235294e5284d295ba661be6b (diff)
parent5819dc6e474684cd2550c93dd432139ce14d2795 (diff)
Merge branch 'master' of https://github.com/mid-kid/pokepicross
Diffstat (limited to 'include/text.inc')
-rw-r--r--include/text.inc19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/text.inc b/include/text.inc
new file mode 100644
index 0000000..bb76453
--- /dev/null
+++ b/include/text.inc
@@ -0,0 +1,19 @@
+INCLUDE "charmap.inc"
+
+text: macro
+_arg = 1
+ rept _NARG
+_WS EQUS \1
+_len = STRLEN("{_WS}")
+_i = 1
+ rept _len
+ dw STRSUB("{_WS}", _i, 1)
+_i = _i + 1
+ endr
+ PURGE _WS
+ shift
+_arg = _arg + 1
+ endr
+endm
+line EQUS "dw TX_LF\n text"
+done EQUS "dw TX_END"