Bit 7 of wJumptableIndex is often JUMPTABLE_EXIT_F

This commit is contained in:
Rangi42
2024-12-02 11:12:58 -05:00
committed by Sylvie
parent 644bd42fb0
commit e1e7cbd838
24 changed files with 114 additions and 110 deletions

View File

@@ -19,7 +19,7 @@ Pack:
.loop
call JoyTextDelay
ld a, [wJumptableIndex]
bit 7, a
bit JUMPTABLE_EXIT_F, a
jr nz, .done
call .RunJumptable
call DelayFrame
@@ -631,7 +631,7 @@ BattlePack:
.loop
call JoyTextDelay
ld a, [wJumptableIndex]
bit 7, a
bit JUMPTABLE_EXIT_F, a
jr nz, .end
call .RunJumptable
call DelayFrame
@@ -1186,14 +1186,14 @@ Pack_GetJumptablePointer:
Pack_QuitNoScript:
ld hl, wJumptableIndex
set 7, [hl]
set JUMPTABLE_EXIT_F, [hl]
xor a ; FALSE
ld [wPackUsedItem], a
ret
Pack_QuitRunScript:
ld hl, wJumptableIndex
set 7, [hl]
set JUMPTABLE_EXIT_F, [hl]
ld a, TRUE
ld [wPackUsedItem], a
ret