Data in initialsramtable.asm gets copied to SRAM on save file init Frontend will be responsible for setting this, requires frontend changes Changed some label names to disambiguate WRAM and SRAM labels Deleted open mode
20 lines
861 B
NASM
20 lines
861 B
NASM
;================================================================================
|
|
; Spawn Zelda (or not)
|
|
;--------------------------------------------------------------------------------
|
|
SpawnZelda:
|
|
LDA.l FollowerIndicator : CMP.b #$08 : BEQ + ; don't spawn if dwarf is present
|
|
CMP.b #$07 : BEQ + ; don't spawn if frog is present
|
|
CMP.b #$0C : BEQ + ; don't spawn if purple chest is present
|
|
CLC
|
|
+ RTL
|
|
;--------------------------------------------------------------------------------
|
|
EndRainState:
|
|
LDA.l InitProgressIndicator : BIT.b #$80 : BNE + ; check for instant post-aga
|
|
LDA.b #$02 : STA.l ProgressIndicator
|
|
RTL
|
|
+
|
|
LDA.b #$03 : STA.l ProgressIndicator
|
|
LDA.l InitLumberjackOW : STA.l OverworldEventDataWRAM+$02
|
|
RTL
|
|
;--------------------------------------------------------------------------------
|