Verify script command table sizes

This commit is contained in:
Rangi
2021-03-11 16:28:52 -05:00
parent dbabd8b4a9
commit d132a20b7a
9 changed files with 17 additions and 0 deletions

View File

@@ -699,6 +699,7 @@ DoTextUntilTerminator::
TextCommands::
; entries correspond to TX_* constants (see macros/scripts/text.asm)
table_width 2, TextCommands
dw TextCommand_START ; TX_START
dw TextCommand_RAM ; TX_RAM
dw TextCommand_BCD ; TX_BCD
@@ -722,6 +723,7 @@ TextCommands::
dw TextCommand_STRINGBUFFER ; TX_STRINGBUFFER
dw TextCommand_DAY ; TX_DAY
dw TextCommand_FAR ; TX_FAR
assert_table_length NUM_TEXT_CMDS
TextCommand_START::
; write text until "@"