From ede55dee855e3f69da312b3b5c2d8a1d9a2ff716 Mon Sep 17 00:00:00 2001 From: Kevin Cathcart Date: Fri, 16 Mar 2018 10:36:55 -0400 Subject: [PATCH] Fix 2nd silver arrow issue in easy mode Don't use X/4 to index into `ItemSubstitutionRules`. --- newitems.asm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/newitems.asm b/newitems.asm index 963744b..34b938d 100755 --- a/newitems.asm +++ b/newitems.asm @@ -1003,10 +1003,11 @@ AttemptItemSubstitution: PHX TXA : LSR #2 : TAX LDA !ITEM_LIMIT_COUNTS, X - CMP.l ItemSubstitutionRules+1, X : !BLT + - LDA.l ItemSubstitutionRules+2, X : STA 2,s - + PLX + CMP.l ItemSubstitutionRules+1, X : !BLT + + LDA.l ItemSubstitutionRules+2, X : STA 2,s + + + BEQ .exit .noMatch INX #4