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

@@ -61,7 +61,7 @@ _CardFlip:
call PlayMusic
.MasterLoop:
ld a, [wJumptableIndex]
bit 7, a
bit JUMPTABLE_EXIT_F, a
jr nz, .leavethegame
call .CardFlip
jr .MasterLoop
@@ -323,7 +323,7 @@ _CardFlip:
.Quit:
ld hl, wJumptableIndex
set 7, [hl]
set JUMPTABLE_EXIT_F, [hl]
ret
CardFlip_ShuffleDeck:

View File

@@ -44,7 +44,7 @@ _MemoryGame:
.JumptableLoop:
ld a, [wJumptableIndex]
bit 7, a
bit JUMPTABLE_EXIT_F, a
jr nz, .quit
call .ExecuteJumptable
callfar PlaySpriteAnimations
@@ -80,7 +80,7 @@ _MemoryGame:
call UnusedCursor_InterpretJoypad_AnimateCursor
jr nc, .proceed
ld hl, wJumptableIndex
set 7, [hl]
set JUMPTABLE_EXIT_F, [hl]
ret
.proceed
@@ -235,7 +235,7 @@ endr
call UnusedCursor_InterpretJoypad_AnimateCursor
jr nc, .restart
ld hl, wJumptableIndex
set 7, [hl]
set JUMPTABLE_EXIT_F, [hl]
ret
.restart

View File

@@ -60,7 +60,7 @@ _UnownPuzzle:
.loop
call JoyTextDelay
ld a, [wJumptableIndex]
bit 7, a
bit JUMPTABLE_EXIT_F, a
jr nz, .quit
call UnownPuzzleJumptable
ld a, [wHoldingUnownPuzzlePiece]
@@ -332,7 +332,7 @@ UnownPuzzle_A:
ld [wSolvedUnownPuzzle], a
UnownPuzzle_Quit:
ld hl, wJumptableIndex
set 7, [hl]
set JUMPTABLE_EXIT_F, [hl]
ret
UnownPuzzle_InvalidAction: