pokecrystal-board/data/pokemon/unown_words.asm
Rangi 40902ffe24 Verify data table sizes with table_width and assert_table_length macros
This was discussed in #706

It also uncovered some off-by-one issues with defining some constants.

A few structs now use rsreset/_RS to define their offset constants, as discussed in #739
2021-03-04 00:15:03 -05:00

68 lines
1.4 KiB
NASM

unownword: MACRO
x = 1
rept STRLEN(\1)
db STRSUB(\1, x, 1) - "A" + FIRST_UNOWN_CHAR
x = x + 1
endr
db -1
ENDM
UnownWords:
; entries correspond to UNOWN_* form constants
table_width 2, UnownWords
dw UnownWordA ; unused
dw UnownWordA
dw UnownWordB
dw UnownWordC
dw UnownWordD
dw UnownWordE
dw UnownWordF
dw UnownWordG
dw UnownWordH
dw UnownWordI
dw UnownWordJ
dw UnownWordK
dw UnownWordL
dw UnownWordM
dw UnownWordN
dw UnownWordO
dw UnownWordP
dw UnownWordQ
dw UnownWordR
dw UnownWordS
dw UnownWordT
dw UnownWordU
dw UnownWordV
dw UnownWordW
dw UnownWordX
dw UnownWordY
dw UnownWordZ
assert_table_length NUM_UNOWN + 1
UnownWordA: unownword "ANGRY"
UnownWordB: unownword "BEAR"
UnownWordC: unownword "CHASE"
UnownWordD: unownword "DIRECT"
UnownWordE: unownword "ENGAGE"
UnownWordF: unownword "FIND"
UnownWordG: unownword "GIVE"
UnownWordH: unownword "HELP"
UnownWordI: unownword "INCREASE"
UnownWordJ: unownword "JOIN"
UnownWordK: unownword "KEEP"
UnownWordL: unownword "LAUGH"
UnownWordM: unownword "MAKE"
UnownWordN: unownword "NUZZLE"
UnownWordO: unownword "OBSERVE"
UnownWordP: unownword "PERFORM"
UnownWordQ: unownword "QUICKEN"
UnownWordR: unownword "REASSURE"
UnownWordS: unownword "SEARCH"
UnownWordT: unownword "TELL"
UnownWordU: unownword "UNDO"
UnownWordV: unownword "VANISH"
UnownWordW: unownword "WANT"
UnownWordX: unownword "XXXXX"
UnownWordY: unownword "YIELD"
UnownWordZ: unownword "ZOOM"