Bit 7 of wJumptableIndex is often JUMPTABLE_EXIT_F
This commit is contained in:
@@ -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:
|
||||
|
@@ -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
|
||||
|
@@ -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:
|
||||
|
Reference in New Issue
Block a user