Revise some constant definitions

This commit is contained in:
Rangi
2021-03-16 17:53:42 -04:00
parent 52bcd78290
commit 3684296583
27 changed files with 91 additions and 80 deletions

View File

@@ -12,7 +12,7 @@ LoadSGBLayout:
ld l, a
ld h, 0
add hl, hl
ld de, .Jumptable
ld de, SGBLayoutJumptable
add hl, de
ld a, [hli]
ld h, [hl]
@@ -21,7 +21,8 @@ LoadSGBLayout:
push de
jp hl
.Jumptable:
SGBLayoutJumptable:
table_width 2, SGBLayoutJumptable
dw .SGB_BattleGrayscale
dw .SGB_BattleColors
dw .SGB_PokegearPals
@@ -53,6 +54,7 @@ LoadSGBLayout:
dw .SGB_TrainerOrMonFrontpicPals
dw .SGB_MysteryGift
dw .SGB_Unused1E
assert_table_length NUM_SCGB_LAYOUTS
.SGB_BattleGrayscale:
ld hl, PalPacket_BattleGrayscale