Add PHX/PLX in a better spot to prevent CountBottles from overwritting X

This commit is contained in:
randall.rupper
2020-06-08 09:51:43 -06:00
committed by caitsith2
parent b5c7846c40
commit 8cf3ccb13e

View File

@@ -1150,6 +1150,7 @@ AttemptItemSubstitution:
RTS
;--------------------------------------------------------------------------------
CountBottles:
PHX
LDX.b #$00
LDA $7EF35C : BEQ ++ : INX
++ : LDA $7EF35D : BEQ ++ : INX
@@ -1157,6 +1158,7 @@ CountBottles:
++ : LDA $7EF35F : BEQ ++ : INX
++
TXA
PLX
RTS
;--------------------------------------------------------------------------------
ActivateGoal: