Write macro for SRAM assertions

Change some label names to be clearer
Fix some of the progress flags and dungeon bitfields
This commit is contained in:
cassidy
2021-12-14 12:59:05 -05:00
parent 15d88b19a3
commit 6c9b33ed93
11 changed files with 243 additions and 240 deletions

View File

@@ -296,7 +296,7 @@ RTL
;--------------------------------------------------------------------------------
IncrementSpentRupees:
DEC A : BPL .subtractRupees
LDA.w #$0000 : STA TargetRupees
LDA.w #$0000 : STA CurrentRupees
RTL
.subtractRupees
PHA : PHP
@@ -347,8 +347,8 @@ StatsFinalPrep:
LDA NMIFrames+2 : SBC LoopFrames+2 : STA !LAG_TIME+2
LDA NMIFrames+3 : SBC LoopFrames+3 : STA !LAG_TIME+3
LDA RupeesSpent : !ADD CurrentRupees : STA !RUPEES_COLLECTED
LDA RupeesSpent+1 : ADC CurrentRupees+1 : STA !RUPEES_COLLECTED+1
LDA RupeesSpent : !ADD DisplayRupees : STA !RUPEES_COLLECTED
LDA RupeesSpent+1 : ADC DisplayRupees+1 : STA !RUPEES_COLLECTED+1
LDA TotalItemCounter : !SUB ChestsOpened : STA !NONCHEST_COUNTER