Continue labeling and documentation in ram.asm, main rando block
Deleted several unused modules and some commented code Reorganized some routines to clean up modules Moved some memory into mirrored WRAM Refactored NMI hook aux routine Removed old fake flipper fix
This commit is contained in:
@@ -3,45 +3,45 @@
|
||||
;--------------------------------------------------------------------------------
|
||||
TryOpenMire:
|
||||
; Checks if we're in the Swamp of Evil.
|
||||
LDA $8A : CMP.b #$70 : BNE .untriggered
|
||||
LDA.b $8A : CMP.b #$70 : BNE .untriggered
|
||||
|
||||
; Checks whether the Misery Mire dungeon is already revealed.
|
||||
LDA OverworldEventDataWRAM+$70 : AND.b #$20 : BNE .untriggered
|
||||
LDA.l OverworldEventDataWRAM+$70 : AND.b #$20 : BNE .untriggered
|
||||
|
||||
; You have to be in the trigger window.
|
||||
LDY.b #$02 : JSL.l Ancilla_CheckIfEntranceTriggered : BCC .untriggered
|
||||
|
||||
; Do the 3rd animation for opening entrances
|
||||
LDA.b #$03 : STA $04C6
|
||||
LDA.b #$03 : STA.w $04C6
|
||||
|
||||
STZ $B0 ; reset the sub-submodule index
|
||||
STZ $C8 ; reset this other index.
|
||||
STZ.b $B0 ; reset the sub-submodule index
|
||||
STZ.b $C8 ; reset this other index.
|
||||
|
||||
.untriggered
|
||||
RTL
|
||||
;--------------------------------------------------------------------------------
|
||||
TryOpenTRock:
|
||||
; Checks if we're at Turtle Rock.
|
||||
LDA $8A : CMP.b #$47 : BNE .untriggered
|
||||
LDA.b $8A : CMP.b #$47 : BNE .untriggered
|
||||
|
||||
; Checks whether the Turtle Rock dungeon is already revealed.
|
||||
LDA OverworldEventDataWRAM+$47 : AND.b #$20 : BNE .untriggered
|
||||
LDA.l OverworldEventDataWRAM+$47 : AND.b #$20 : BNE .untriggered
|
||||
|
||||
; You have to be in the trigger window.
|
||||
LDY.b #$03 : JSL.l Ancilla_CheckIfEntranceTriggered : BCC .untriggered
|
||||
|
||||
; Do the 4rd animation for opening entrances
|
||||
LDA.b #$04 : STA $04C6
|
||||
LDA.b #$04 : STA.w $04C6
|
||||
|
||||
STZ $B0 ; reset the sub-submodule index
|
||||
STZ $C8 ; reset this other index.
|
||||
STZ.b $B0 ; reset the sub-submodule index
|
||||
STZ.b $C8 ; reset this other index.
|
||||
|
||||
.untriggered
|
||||
RTL
|
||||
;--------------------------------------------------------------------------------
|
||||
MedallionTrigger_Bombos:
|
||||
STZ $50 ; stuff we wrote over
|
||||
STZ $0FC1
|
||||
STZ.b $50 ; stuff we wrote over
|
||||
STZ.w $0FC1
|
||||
|
||||
PHA
|
||||
LDA.l MireRequiredMedallion : BNE +
|
||||
|
||||
Reference in New Issue
Block a user