Add assertions to some more tables

This commit is contained in:
Rangi 2021-10-24 18:25:44 -04:00
parent d4a6a1b2bc
commit 187b120007
5 changed files with 9 additions and 1 deletions

View File

@ -125,6 +125,7 @@ SCGB_DEFAULT EQU $ff
const PREDEFPAL_UNOWN_PUZZLE const PREDEFPAL_UNOWN_PUZZLE
const PREDEFPAL_GAMEFREAK_LOGO_OB const PREDEFPAL_GAMEFREAK_LOGO_OB
const PREDEFPAL_GAMEFREAK_LOGO_BG const PREDEFPAL_GAMEFREAK_LOGO_BG
NUM_PREDEF_PALS EQU const_value
; SGB system command codes ; SGB system command codes
; http://gbdev.gg8.se/wiki/articles/SGB_Functions#SGB_System_Command_Table ; http://gbdev.gg8.se/wiki/articles/SGB_Functions#SGB_System_Command_Table

View File

@ -1170,7 +1170,9 @@ INCLUDE "gfx/sgb/pal_packets.asm"
INCLUDE "data/sgb_ctrl_packets.asm" INCLUDE "data/sgb_ctrl_packets.asm"
PredefPals: PredefPals:
table_width PALETTE_SIZE, PredefPals
INCLUDE "gfx/sgb/predef.pal" INCLUDE "gfx/sgb/predef.pal"
assert_table_length NUM_PREDEF_PALS
SGBBorderMapAndPalettes: SGBBorderMapAndPalettes:
; interleaved tile ids and palette ids, without the center 20x18 screen area ; interleaved tile ids and palette ids, without the center 20x18 screen area

View File

@ -11,6 +11,7 @@
const BLUESKY_MAIL_INDEX ; 7 const BLUESKY_MAIL_INDEX ; 7
const MUSIC_MAIL_INDEX ; 8 const MUSIC_MAIL_INDEX ; 8
const MIRAGE_MAIL_INDEX ; 9 const MIRAGE_MAIL_INDEX ; 9
NUM_MAIL EQU const_value
ReadPartyMonMail: ReadPartyMonMail:
ld a, [wCurPartyMon] ld a, [wCurPartyMon]
@ -126,6 +127,7 @@ ReadAnyMail:
MailGFXPointers: MailGFXPointers:
; entries correspond to *MAIL_INDEX constants ; entries correspond to *MAIL_INDEX constants
table_width 3, MailGFXPointers
dbw FLOWER_MAIL, LoadFlowerMailGFX dbw FLOWER_MAIL, LoadFlowerMailGFX
dbw SURF_MAIL, LoadSurfMailGFX dbw SURF_MAIL, LoadSurfMailGFX
dbw LITEBLUEMAIL, LoadLiteBlueMailGFX dbw LITEBLUEMAIL, LoadLiteBlueMailGFX
@ -136,6 +138,7 @@ MailGFXPointers:
dbw BLUESKY_MAIL, LoadBlueSkyMailGFX dbw BLUESKY_MAIL, LoadBlueSkyMailGFX
dbw MUSIC_MAIL, LoadMusicMailGFX dbw MUSIC_MAIL, LoadMusicMailGFX
dbw MIRAGE_MAIL, LoadMirageMailGFX dbw MIRAGE_MAIL, LoadMirageMailGFX
assert_table_length NUM_MAIL
db -1 ; end db -1 ; end
LoadSurfMailGFX: LoadSurfMailGFX:

View File

@ -570,9 +570,11 @@ StatsScreen_LoadGFX:
.Jumptable: .Jumptable:
; entries correspond to *_PAGE constants ; entries correspond to *_PAGE constants
table_width 2, StatsScreen_LoadGFX.Jumptable
dw LoadPinkPage dw LoadPinkPage
dw LoadGreenPage dw LoadGreenPage
dw LoadBluePage dw LoadBluePage
assert_table_length NUM_STAT_PAGES
LoadPinkPage: LoadPinkPage:
hlcoord 0, 9 hlcoord 0, 9

View File

@ -1,4 +1,4 @@
RGB 31,31,31, 22,25,19, 16,21,30, 00,00,00 ; PREDEFPAL_00 RGB 31,31,31, 22,25,19, 16,21,30, 00,00,00 ; PREDEFPAL_ROUTES
RGB 31,31,31, 27,28,31, 15,20,31, 00,00,00 ; PREDEFPAL_PALLET RGB 31,31,31, 27,28,31, 15,20,31, 00,00,00 ; PREDEFPAL_PALLET
RGB 31,31,31, 24,28,19, 15,20,31, 00,00,00 ; PREDEFPAL_VIRIDIAN RGB 31,31,31, 24,28,19, 15,20,31, 00,00,00 ; PREDEFPAL_VIRIDIAN
RGB 31,31,31, 24,24,24, 15,20,31, 00,00,00 ; PREDEFPAL_PEWTER RGB 31,31,31, 24,24,24, 15,20,31, 00,00,00 ; PREDEFPAL_PEWTER