pokecrystal-board/data/events/elevator_floors.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

38 lines
541 B
NASM

ElevatorFloorNames:
; entries correspond to FLOOR_* constants
table_width 2, ElevatorFloorNames
dw .B4F
dw .B3F
dw .B2F
dw .B1F
dw ._1F
dw ._2F
dw ._3F
dw ._4F
dw ._5F
dw ._6F
dw ._7F
dw ._8F
dw ._9F
dw ._10F
dw ._11F
dw .ROOF
assert_table_length NUM_FLOORS
.B4F: db "B4F@"
.B3F: db "B3F@"
.B2F: db "B2F@"
.B1F: db "B1F@"
._1F: db "1F@"
._2F: db "2F@"
._3F: db "3F@"
._4F: db "4F@"
._5F: db "5F@"
._6F: db "6F@"
._7F: db "7F@"
._8F: db "8F@"
._9F: db "9F@"
._10F: db "10F@"
._11F: db "11F@"
.ROOF: db "ROOF@"