updates
This commit is contained in:
15
goalitem.asm
15
goalitem.asm
@@ -12,9 +12,11 @@ DrawGoalIndicator:
|
||||
LDA.l !GOAL_COUNTER
|
||||
AND.w #$00FF
|
||||
JSL.l HexToDec
|
||||
LDA $7F5005 : AND.w #$00FF : ORA.w #$2400 : STA $7EC72C, X : INX #2 ; draw 10's digit and move the cursor
|
||||
LDA $7F5006 : AND.w #$00FF : ORA.w #$2400 : STA $7EC72C, X : INX #2 ; draw 10's digit and move the cursor
|
||||
LDA $7F5007 : AND.w #$00FF : ORA.w #$2400 : STA $7EC72C, X : INX #2 ; draw 1's and move the cursor
|
||||
|
||||
LDA.l GoalItemRequirement : AND.w #$00FF : CMP.w #$00FF : BEQ .skip
|
||||
LDA.w #$2830 : STA $7EC72C, X : INX #2 ; draw slash and move the cursor
|
||||
|
||||
LDA.l GoalItemRequirement
|
||||
@@ -22,6 +24,13 @@ DrawGoalIndicator:
|
||||
JSL.l HexToDec
|
||||
LDA $7F5006 : AND.w #$00FF : ORA.w #$2400 : STA $7EC72C, X : INX #2 ; draw 10's digit and move the cursor
|
||||
LDA $7F5007 : AND.w #$00FF : ORA.w #$2400 : STA $7EC72C, X : INX #2 ; draw 1's and move the cursor
|
||||
BRA .done
|
||||
.skip
|
||||
LDA.w #$207F
|
||||
STA $7EC72C, X : INX #
|
||||
STA $7EC72C, X : INX #
|
||||
STA $7EC72C, X : INX #
|
||||
.done
|
||||
PLX
|
||||
RTL
|
||||
;--------------------------------------------------------------------------------
|
||||
@@ -56,11 +65,15 @@ CheckGanonVulnerability:
|
||||
;#$04 = Require All Crystals
|
||||
LDA $7EF37A : AND.b #$7F : CMP #$7F : BNE .fail ; require all crystals
|
||||
BRA .success
|
||||
+ ; CMP #$03 : BNE + this is a comment
|
||||
+ CMP #$03 : BNE + this is a comment
|
||||
;#$03 = Require All Crystals and Aga 2
|
||||
LDA $7EF37A : AND.b #$7F : CMP #$7F : BNE .fail ; require all crystals
|
||||
LDA $7EF2DB : AND.b #$20 : CMP #$20 : BNE .fail ; require aga2 defeated (pyramid hole open)
|
||||
BRA .success
|
||||
+ CMP #$05 : BNE + this is a comment
|
||||
;#$05 = Require 100 Goal Items
|
||||
LDA.l !GOAL_COUNTER : CMP.w #100 : !BLT .fail ; require 100 goal items
|
||||
BRA .success
|
||||
+
|
||||
.fail : CLC : RTL
|
||||
.success : SEC : RTL
|
||||
|
||||
@@ -168,6 +168,7 @@ AddReceivedItemExpandedGetItem:
|
||||
|
||||
JSR.w ProcessEventItems : CPX.b #$00 : BEQ ++
|
||||
;JSL.l Main_ShowTextMessage
|
||||
LDA !GOAL_COUNTER : INC : STA !GOAL_COUNTER
|
||||
LDA.b #$01 : STA $7F50A0
|
||||
BRL .done
|
||||
++
|
||||
|
||||
12
tables.asm
12
tables.asm
@@ -140,8 +140,12 @@ db #$00 ; #$00 = Off (default) - #$01 = On
|
||||
org $30803E ; PC 0x18003E
|
||||
InvincibleGanon:
|
||||
db #$00
|
||||
; #$00 = Off (default) - #$01 = On - #$02 = Require All Dungeons
|
||||
; #$03 = Require Crystals and Aga2 - #$04 = Require Crystals
|
||||
; #$00 = Off (default)
|
||||
; #$01 = On
|
||||
; #$02 = Require All Dungeons
|
||||
; #$03 = Require Crystals and Aga2
|
||||
; #$04 = Require Crystals
|
||||
; #$05 = Require 100 Goal Items
|
||||
;--------------------------------------------------------------------------------
|
||||
org $30803F ; PC 0x18003F
|
||||
HammerableGanon:
|
||||
@@ -666,11 +670,11 @@ StandingKey_Hera:
|
||||
;================================================================================
|
||||
org $308165 ; PC 0x180165
|
||||
GoalItemIcon:
|
||||
dw #$280D ; #$280D = Star (default) - #$280E = Triforce Piece
|
||||
dw #$280E ; #$280D = Star (default) - #$280E = Triforce Piece
|
||||
;================================================================================
|
||||
org $308167 ; PC 0x180167
|
||||
GoalItemRequirement:
|
||||
db #$00 ; #$00 = Off (default) - #$XX = Require $XX Goal Items
|
||||
db #$FF ; #$00 = Off (default) - #$XX = Require $XX Goal Items ; #$FF = Counter-Only
|
||||
;================================================================================
|
||||
org $308168 ; PC 0x180168
|
||||
ByrnaCaveSpikeDamage:
|
||||
|
||||
Reference in New Issue
Block a user