diff options
author | Tauwasser <Tauwasser@tauwasser.eu> | 2018-06-02 16:48:33 +0200 |
---|---|---|
committer | Tauwasser <Tauwasser@tauwasser.eu> | 2018-06-02 16:48:33 +0200 |
commit | 3f2e5b7ade24cff77bff9aebe216d6aa466cdc9b (patch) | |
tree | 5ac67142817677bc4953e32b47ff0955d6779a03 /macros/text.asm | |
parent | 406182d0adf4afd187a11b56174f2c00e11062e5 (diff) |
macros/text: use charmap entries instead of fixed byte constants
Also introduce a separate text_end control for 0x50 when it's used to
end a series of text_* control codes instead of a single text_TX command.
Signed-off-by: Tauwasser <Tauwasser@tauwasser.eu>
Diffstat (limited to 'macros/text.asm')
-rw-r--r-- | macros/text.asm | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/macros/text.asm b/macros/text.asm index e98970b..f95c300 100644 --- a/macros/text.asm +++ b/macros/text.asm @@ -1,10 +1,12 @@ -text EQUS "db $00," ; Start writing text. -next EQUS "db $4e," ; Move a line down. -line EQUS "db $4f," ; Start writing at the bottom line. -para EQUS "db $51," ; Start a new paragraph. -cont EQUS "db $55," ; Scroll to the next line. -done EQUS "db $57" ; End a text box. -prompt EQUS "db $58" ; Prompt the player to end a text box (initiating some other event). +text EQUS "db $00," ; Start writing text. +next EQUS "db \"<NEXT>\"," ; Move a line down. +line EQUS "db \"<LINE>\"," ; Start writing at the bottom line. +para EQUS "db \"<PARA>\"," ; Start a new paragraph. +cont EQUS "db \"<CONT>\"," ; Scroll to the next line. +done EQUS "db \"<DONE>\"" ; End a text box. +prompt EQUS "db \"<PROMPT>\"" ; Prompt the player to end a text box (initiating some other event). +text_end EQUS "db $50" ; End control code for text processor + ; different from @ ; TODO: determine if these are in ; Pokedex text commands are only used with pokered. @@ -67,7 +69,7 @@ deciram: macro endm enum TX_EXIT -interpret_data: macro +text_exit: macro db TX_EXIT endm @@ -77,7 +79,7 @@ sound_dex_fanfare_50_79: macro endm enum TX_DOTS -limited_interpret_data: macro +text_dots: macro db TX_DOTS db \1 endm |