Merge pull request #4 from LLCoolDave/aga2checkforganon

Add check if agahnim 2 has been defeated for ganon invincibility.
This commit is contained in:
Karkat
2017-07-17 17:04:41 -04:00
committed by GitHub

View File

@@ -50,10 +50,12 @@ CheckGanonVulnerability:
LDA $7EF374 : AND.b #$07 : CMP #$07 : BNE .fail ; require all pendants
LDA $7EF37A : AND.b #$7F : CMP #$7F : BNE .fail ; require all crystals
LDA $7EF3C5 : CMP.b #$03 : !BLT .fail ; require post-aga world state
LDA $7EF2DB : AND.b #$20 : BNE .fail ; require aga2 defeated (pyramid hole open)
BRA .success
+ ; CMP #$03 : BNE + this is a comment
;#$03 = Require All Crystals
LDA $7EF37A : AND.b #$7F : CMP #$7F : BNE .fail ; require all crystals
LDA $7EF2DB : AND.b #$20 : BNE .fail ; require aga2 defeated (pyramid hole open)
BRA .success
+
.fail : CLC : RTL