pokecrystal-board/data/types/names.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

55 lines
944 B
NASM

TypeNames:
; entries correspond to types (see constants/type_constants.asm)
table_width 2, TypeNames
dw Normal
dw Fighting
dw Flying
dw Poison
dw Ground
dw Rock
dw Bird
dw Bug
dw Ghost
dw Steel
assert_table_length UNUSED_TYPES
dw Normal
dw Normal
dw Normal
dw Normal
dw Normal
dw Normal
dw Normal
dw Normal
dw Normal
dw CurseType
assert_table_length UNUSED_TYPES_END
dw Fire
dw Water
dw Grass
dw Electric
dw Psychic
dw Ice
dw Dragon
dw Dark
assert_table_length TYPES_END
Normal: db "NORMAL@"
Fighting: db "FIGHTING@"
Flying: db "FLYING@"
Poison: db "POISON@"
CurseType: db "???@"
Fire: db "FIRE@"
Water: db "WATER@"
Grass: db "GRASS@"
Electric: db "ELECTRIC@"
Psychic: db "PSYCHIC@"
Ice: db "ICE@"
Ground: db "GROUND@"
Rock: db "ROCK@"
Bird: db "BIRD@"
Bug: db "BUG@"
Ghost: db "GHOST@"
Steel: db "STEEL@"
Dragon: db "DRAGON@"
Dark: db "DARK@"