Add bombs-placed counter to stat screen
This commit is contained in:
13
stats.asm
13
stats.asm
@@ -118,7 +118,7 @@
|
||||
;--------------------------------------------------------------------------------
|
||||
; $7EF46D - chest turn counter
|
||||
;--------------------------------------------------------------------------------
|
||||
; $7EF46E - 7EF49F - Free space
|
||||
; $7EF46Ew[2] - bombs placed counter
|
||||
;--------------------------------------------------------------------------------
|
||||
; $7EF4A0 - 7EF4A7 - Service Request
|
||||
;--------------------------------------------------------------------------------
|
||||
@@ -334,6 +334,17 @@ IncrementChestTurnCounter:
|
||||
PLA
|
||||
RTL
|
||||
;--------------------------------------------------------------------------------
|
||||
!BOMBS_PLACED_COUNTER = "$7EF46E"
|
||||
IncrementBombsPlacedCounter:
|
||||
PHA
|
||||
LDA !LOCK_STATS : BNE +
|
||||
PHP : REP #$20
|
||||
LDA !BOMBS_PLACED_COUNTER : INC : STA !BOMBS_PLACED_COUNTER
|
||||
PLP
|
||||
+
|
||||
PLA
|
||||
RTL
|
||||
;--------------------------------------------------------------------------------
|
||||
!CHEST_COUNTER = "$7EF442"
|
||||
IncrementChestCounter:
|
||||
LDA.b #$01 : STA $02E9 ; thing we wrote over
|
||||
|
||||
Reference in New Issue
Block a user