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
parent a3a35ad4ba
commit 50ff7683ab

View File

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