diff options
author | Rangi <remy.oukaour+rangi42@gmail.com> | 2021-03-16 18:08:25 -0400 |
---|---|---|
committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2021-03-16 18:08:25 -0400 |
commit | 2bc8cf5fc11d4ef84022840ad10cd05eaab12ae9 (patch) | |
tree | a51a504112ef948c1ddcb0b7e31c2f285f3b84a9 /engine/gfx/cgb_layouts.asm | |
parent | 8b5dde16c3e7f7ad87a095f71cc6b61cf00b2bb8 (diff) |
Revise some constant definitions
Diffstat (limited to 'engine/gfx/cgb_layouts.asm')
-rw-r--r-- | engine/gfx/cgb_layouts.asm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/engine/gfx/cgb_layouts.asm b/engine/gfx/cgb_layouts.asm index a830e45a..c0f0dbf5 100644 --- a/engine/gfx/cgb_layouts.asm +++ b/engine/gfx/cgb_layouts.asm @@ -17,7 +17,7 @@ LoadSGBLayoutCGB: ld l, a ld h, 0 add hl, hl - ld de, .Jumptable + ld de, CGBLayoutJumptable add hl, de ld a, [hli] ld h, [hl] @@ -28,7 +28,8 @@ LoadSGBLayoutCGB: .done: ret -.Jumptable: +CGBLayoutJumptable: + table_width 2, CGBLayoutJumptable dw _CGB_BattleGrayscale dw _CGB_BattleColors dw _CGB_PokegearPals @@ -61,6 +62,7 @@ LoadSGBLayoutCGB: dw _CGB_MysteryGift dw _CGB_Unused1E dw _CGB_Pokedex_5x5 + assert_table_length NUM_SCGB_LAYOUTS _CGB_BattleGrayscale: ld hl, PalPacket_BattleGrayscale + 1 |