Identify more labels, and use the jumptable macro when possible
This commit is contained in:
@@ -91,16 +91,7 @@ StringOptions:
|
||||
db "CANCEL@"
|
||||
|
||||
GetOptionPointer:
|
||||
ld a, [wJumptableIndex]
|
||||
ld e, a
|
||||
ld d, 0
|
||||
ld hl, .Pointers
|
||||
add hl, de
|
||||
add hl, de
|
||||
ld a, [hli]
|
||||
ld h, [hl]
|
||||
ld l, a
|
||||
jp hl
|
||||
jumptable .Pointers, wJumptableIndex
|
||||
|
||||
.Pointers:
|
||||
; entries correspond to OPT_* constants
|
||||
|
Reference in New Issue
Block a user