housekeeping
This commit is contained in:
@@ -1,49 +1,57 @@
|
|||||||
|
; =============================================================================
|
||||||
; Zarby Feather
|
; Zarby Feather
|
||||||
|
|
||||||
org $07AFF8
|
org $07AFF8
|
||||||
BIT $3A : BVS .return ;if Y or B are already pressed
|
{
|
||||||
|
BIT $3A : BVS .return ;if Y or B are already pressed
|
||||||
|
|
||||||
LDA $6C : BNE .return ; if we are standing in a dooray or not
|
LDA $6C : BNE .return ; if we are standing in a dooray or not
|
||||||
|
|
||||||
JSR $B073 : BCC .return; Check if we just pressed Y Button ; Link_CheckNewY_ButtonPress
|
; Link_CheckNewY_ButtonPress
|
||||||
JSL NewBookCode
|
JSR $B073 : BCC .return ; Check if we just pressed Y Button
|
||||||
|
JSL NewBookCode
|
||||||
|
|
||||||
.return
|
.return
|
||||||
RTS
|
RTS
|
||||||
|
}
|
||||||
|
|
||||||
|
; =============================================================================
|
||||||
|
|
||||||
org $348000
|
org $348000
|
||||||
NewBookCode:
|
NewBookCode:
|
||||||
JSL $07983A ; Reset swim state
|
{
|
||||||
LDA $46 : BNE .cantuseit
|
JSL $07983A ; Reset swim state
|
||||||
LDA #$02 : STA $5D ; state recoil
|
LDA $46 : BNE .cantuseit
|
||||||
LDA #$01 : STA $4D ; state recoil 2
|
LDA #$02 : STA $5D ; state recoil
|
||||||
|
LDA #$01 : STA $4D ; state recoil 2
|
||||||
|
|
||||||
LDA #$20 ; Change this to change the length of the jump
|
LDA #$20 ; Change this to change the length of the jump
|
||||||
|
|
||||||
STA $46
|
STA $46
|
||||||
|
|
||||||
LDA #$24 ; Change this to change the height of the jump
|
LDA #$24 ; Change this to change the height of the jump
|
||||||
|
|
||||||
STA $29 : STA $02C7
|
STA $29 : STA $02C7
|
||||||
LDA #$08 : STA $0340 : STA $67
|
LDA #$08 : STA $0340 : STA $67
|
||||||
STZ $31
|
STZ $31
|
||||||
STZ $30
|
STZ $30
|
||||||
|
|
||||||
LDA $F4 : AND #$08 : BEQ .noUp
|
LDA $F4 : AND #$08 : BEQ .noUp
|
||||||
LDA #-8 ; Change that -8 if you want higher speed moving up
|
LDA #-8 ; Change that -8 if you want higher speed moving up
|
||||||
STA $27
|
STA $27
|
||||||
.noUp
|
.noUp
|
||||||
LDA $F4 : AND #$04 : BEQ .noDown
|
LDA $F4 : AND #$04 : BEQ .noDown
|
||||||
LDA #8 ; Change that -8 if you want higher speed moving down
|
LDA #8 ; Change that -8 if you want higher speed moving down
|
||||||
STA $27
|
STA $27
|
||||||
.noDown
|
.noDown
|
||||||
LDA $F4 : AND #$02 : BEQ .noLeft
|
LDA $F4 : AND #$02 : BEQ .noLeft
|
||||||
LDA #-8 ; Change that -8 if you want higher speed moving left
|
LDA #-8 ; Change that -8 if you want higher speed moving left
|
||||||
STA $28
|
STA $28
|
||||||
.noLeft
|
.noLeft
|
||||||
LDA $F4 : AND #$01 : BEQ .noRight
|
LDA $F4 : AND #$01 : BEQ .noRight
|
||||||
LDA #8 ; Change that 8 if you want higher speed moving right
|
LDA #8 ; Change that 8 if you want higher speed moving right
|
||||||
STA $28
|
STA $28
|
||||||
.noRight
|
.noRight
|
||||||
.cantuseit
|
.cantuseit
|
||||||
RTL
|
RTL
|
||||||
|
}
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
|
; =============================================================================
|
||||||
|
|
||||||
org $07A3DB
|
org $07A3DB
|
||||||
LinkItem_Flute:
|
LinkItem_Flute:
|
||||||
|
|
||||||
|
; =============================================================================
|
||||||
|
|
||||||
org $07A313
|
org $07A313
|
||||||
LinkItem_ShovelAndFlute:
|
LinkItem_ShovelAndFlute:
|
||||||
{
|
{
|
||||||
@@ -9,6 +13,8 @@ LinkItem_ShovelAndFlute:
|
|||||||
BRL LinkItem_Flute
|
BRL LinkItem_Flute
|
||||||
}
|
}
|
||||||
|
|
||||||
|
; =============================================================================
|
||||||
|
|
||||||
; TODO: Make sure there's no inaccessible code issues past here
|
; TODO: Make sure there's no inaccessible code issues past here
|
||||||
; LinkItem_Shovel
|
; LinkItem_Shovel
|
||||||
org $07A32C
|
org $07A32C
|
||||||
|
|||||||
Reference in New Issue
Block a user