diff options
| author | Rangi <remy.oukaour+rangi42@gmail.com> | 2021-03-21 17:47:53 -0400 |
|---|---|---|
| committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2021-03-21 17:47:53 -0400 |
| commit | 0506e5b1b9d755aad006a52d9f9c9c9baea710fb (patch) | |
| tree | e2c3b904e0aee92cf8438e42e3775982ec65cf73 /mobile | |
| parent | 7fd23ae918f132772e9282830b6aaa353e9e5244 (diff) | |
Assert the sBox1-14 tables have NUM_BOXES entries
Diffstat (limited to 'mobile')
| -rw-r--r-- | mobile/mobile_12_2.asm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mobile/mobile_12_2.asm b/mobile/mobile_12_2.asm index 097621889..51463718b 100644 --- a/mobile/mobile_12_2.asm +++ b/mobile/mobile_12_2.asm @@ -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 |
