You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-04-09 05:44:44 -07:00
Identify more labels, and use the jumptable macro when possible
This commit is contained in:
@@ -384,16 +384,7 @@ CrystalIntro:
|
||||
ret
|
||||
|
||||
IntroSceneJumper:
|
||||
ld a, [wJumptableIndex]
|
||||
ld e, a
|
||||
ld d, 0
|
||||
ld hl, IntroScenes
|
||||
add hl, de
|
||||
add hl, de
|
||||
ld a, [hli]
|
||||
ld h, [hl]
|
||||
ld l, a
|
||||
jp hl
|
||||
jumptable IntroScenes, wJumptableIndex
|
||||
|
||||
IntroScenes:
|
||||
dw IntroScene1
|
||||
|
@@ -228,16 +228,7 @@ DoTradeAnimation:
|
||||
ret
|
||||
|
||||
.DoTradeAnimCommand:
|
||||
ld a, [wJumptableIndex]
|
||||
ld e, a
|
||||
ld d, 0
|
||||
ld hl, .JumpTable
|
||||
add hl, de
|
||||
add hl, de
|
||||
ld a, [hli]
|
||||
ld h, [hl]
|
||||
ld l, a
|
||||
jp hl
|
||||
jumptable .JumpTable, wJumptableIndex
|
||||
|
||||
.JumpTable:
|
||||
; entries correspond to macros/scripts/trade_anims.asm enumeration
|
||||
|
Reference in New Issue
Block a user