pokecrystal-board/data/sprites/emotes.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

24 lines
587 B
NASM

emote: MACRO
; graphics pointer, length, starting tile
dw \1
db \2 tiles, BANK(\1)
dw vTiles0 tile \3
ENDM
Emotes:
; entries correspond to EMOTE_* constants
table_width EMOTE_LENGTH, Emotes
emote ShockEmote, 4, $f8
emote QuestionEmote, 4, $f8
emote HappyEmote, 4, $f8
emote SadEmote, 4, $f8
emote HeartEmote, 4, $f8
emote BoltEmote, 4, $f8
emote SleepEmote, 4, $f8
emote FishEmote, 4, $f8
emote JumpShadowGFX, 1, $fc
emote FishingRodGFX, 2, $fc
emote BoulderDustGFX, 2, $fe
emote GrassRustleGFX, 1, $fe
assert_table_length NUM_EMOTES