fix to include MM spike room for OHKO

* dl is 3 bytes so split out date to 4 separate bytes.
This commit is contained in:
sporchia
2017-08-06 00:17:50 -04:00
parent e845e41378
commit a5f9d715a4
2 changed files with 16 additions and 10 deletions

View File

@@ -25,8 +25,8 @@ db #$05 ; mark sram as 32k
org $3FFFFF ; <- 1FFFFF
db #$00 ; expand file to 2mb
org $1FFFF8 ; timestamp rom
dl #$20170801
org $1FFFF8 ; <- FFFF8 timestamp rom
db #$20, #$17, #$08, #$06 ; year/month/day
;================================================================================

View File

@@ -16,30 +16,36 @@ CalculateSpikeFloorDamage:
RTL
;--------------------------------------------------------------------------------
CalculateByrnaUsage:
LDA $1B : BEQ +
LDA $1B : BEQ ++
REP #$20 ; set 16-bit accumulator
LDA $A0 ; these are all decimal because i got them that way
CMP.w #279
CMP.w #279 : BEQ + ; Spike Cave
CMP.w #179 : BEQ + ; Room in Misery Mire
SEP #$20 ; set 8-bit accumulator
BNE +
BRA ++
+
SEP #$20 ; set 8-bit accumulator
PHX : TYX
LDA.l ByrnaCaveCaneOfByrnaUsage, X : STA $00
PLX
+
++
LDA $7EF36E ; thing we wrote over
RTL
;--------------------------------------------------------------------------------
CalculateCapeUsage:
LDA $1B : BEQ +
LDA $1B : BEQ ++
REP #$20 ; set 16-bit accumulator
LDA $A0 ; these are all decimal because i got them that way
CMP.w #279
CMP.w #279 : BEQ + ; Spike Cave
CMP.w #179 : BEQ + ; Room in Misery Mire
SEP #$20 ; set 8-bit accumulator
BNE +
BRA ++
+
SEP #$20 ; set 8-bit accumulator
PHX : TYX
LDA.l ByrnaCaveCapeUsage, X : STA $4C
PLX
+
++
LDA $7EF36E ; thing we wrote over
RTL
;--------------------------------------------------------------------------------