diff options
author | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-09-13 16:46:12 -0400 |
---|---|---|
committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-09-13 16:46:12 -0400 |
commit | 2313211fae63d0e976c773c8d793de87b9ea631a (patch) | |
tree | 8f7727e7a78d883e1575b19ce0e2e10a99e5ca00 | |
parent | 14a33bb0a59aef84e08b0c24d711bdeb07fe245c (diff) |
Explain the text macro
-rw-r--r-- | include/text.inc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/text.inc b/include/text.inc index bb76453..b293fd5 100644 --- a/include/text.inc +++ b/include/text.inc @@ -1,5 +1,7 @@ INCLUDE "charmap.inc" +; Outputs each character of each argument as a 16-bit word +; (dw "string" does not do this: https://github.com/rednex/rgbds/issues/568) text: macro _arg = 1 rept _NARG @@ -7,7 +9,7 @@ _WS EQUS \1 _len = STRLEN("{_WS}") _i = 1 rept _len - dw STRSUB("{_WS}", _i, 1) + dw STRSUB("{_WS}", _i, 1) _i = _i + 1 endr PURGE _WS |