Assert the sBox1-14 tables have NUM_BOXES entries

This commit is contained in:
Rangi
2021-03-21 17:47:53 -04:00
parent 7fd23ae918
commit 0506e5b1b9
7 changed files with 28 additions and 19 deletions

View File

@@ -51,7 +51,7 @@ MobileCheckOwnMonAnywhere:
and $f
cp c
jr z, .asm_4a8d1
ld hl, .BoxAddrs
ld hl, .BoxAddresses
ld b, 0
add hl, bc
add hl, bc
@@ -130,7 +130,8 @@ MobileCheckOwnMonAnywhere:
scf
ret
.BoxAddrs:
.BoxAddresses:
table_width 3, MobileCheckOwnMonAnywhere.BoxAddresses
dba sBox1
dba sBox2
dba sBox3
@@ -145,6 +146,7 @@ MobileCheckOwnMonAnywhere:
dba sBox12
dba sBox13
dba sBox14
assert_table_length NUM_BOXES
.AdvanceOTName:
push hl