Identify more labels, and use the jumptable macro when possible
This commit is contained in:
@@ -75,16 +75,7 @@ _CardFlip:
|
||||
ret
|
||||
|
||||
.CardFlip:
|
||||
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:
|
||||
dw .AskPlayWithThree
|
||||
|
@@ -169,16 +169,7 @@ PlaceStartCancelBoxBorder:
|
||||
ret
|
||||
|
||||
UnownPuzzleJumptable:
|
||||
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:
|
||||
dw .Function
|
||||
|
Reference in New Issue
Block a user