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

@@ -16,7 +16,7 @@ RefillHealth:
LDA !BUSY_HEALTH : BNE ++
LDA.l PotionHealthRefill ; load refill amount
!ADD CurrentHealth ; add to current health
CMP HealthCapacity : !BLT +++ : LDA HealthCapacity : +++
CMP MaximumHealth : !BLT +++ : LDA MaximumHealth : +++
STA !BUSY_HEALTH
++
@@ -35,8 +35,8 @@ RefillHealth:
; Check goal health versus actual health.
; if(actual < goal) then branch.
LDA CurrentHealth : CMP HealthCapacity : BCC .refillAllHealth
LDA HealthCapacity : STA CurrentHealth
LDA CurrentHealth : CMP MaximumHealth : BCC .refillAllHealth
LDA MaximumHealth : STA CurrentHealth
LDA.b #$00 : STA HeartsFiller
; ??? not sure what purpose this branch serves.
LDA $020A : BNE .beta