diff --git a/Items/bottle_net.asm b/Items/bottle_net.asm index 3efcf69..94462c7 100644 --- a/Items/bottle_net.asm +++ b/Items/bottle_net.asm @@ -214,3 +214,4 @@ LinkGoBeep: LDA.b #$3C : JSR Player_DoSfx2 BRA LinkItem_Bottles_bottle_exit } +pushpc \ No newline at end of file diff --git a/Items/fishing_rod.asm b/Items/fishing_rod.asm index 423fa97..6b47b4a 100644 --- a/Items/fishing_rod.asm +++ b/Items/fishing_rod.asm @@ -1,5 +1,3 @@ -lorom - ;===================================================== ; Fishing system for alttp V1.0 ;----------------------------------------------------- diff --git a/Items/ice_rod.asm b/Items/ice_rod.asm index 7a58b93..b05da20 100644 --- a/Items/ice_rod.asm +++ b/Items/ice_rod.asm @@ -14,7 +14,7 @@ org $088A5D org $0EFBA0 ; main code LinkItem_IceRod: { - ; load native value + ; load native value STA $03E4, X : TAY ; check if you're on overworld @@ -129,7 +129,7 @@ org $0EFC80 ; bug fix to stop gliding on shallow water when leaving ice tile org $07DD1B JSL $0EFC90 - nop + RTS org $0EFC90 LDA $0A diff --git a/Items/ocarina.asm b/Items/ocarina.asm index 2fa4cc0..1418ab4 100644 --- a/Items/ocarina.asm +++ b/Items/ocarina.asm @@ -99,7 +99,7 @@ LinkItem_FluteHook: ; ========================================================= ; Free Space Bank07 -org $07DCD7 +pullpc ReturnFromFluteHook: RTS @@ -108,10 +108,9 @@ ReturnFromFluteHook: LinkItem_NewFlute: { ; Code for the flute item (with or without the bird activated) - - BIT $3A : BVC .y_button_not_held - DEC $03F0 : LDA $03F0 : BNE ReturnFromFluteHook - LDA $3A : AND.b #$BF : STA $3A + BIT.b $3A : BVC .y_button_not_held + DEC.w $03F0 : LDA.w $03F0 : BNE ReturnFromFluteHook + LDA.b $3A : AND.b #$BF : STA.b $3A .y_button_not_held @@ -120,7 +119,7 @@ LinkItem_NewFlute: JSR Link_CheckNewY_ButtonPress : BCC ReturnFromFluteHook ; Success... play the flute. - LDA.b #$80 : STA $03F0 + LDA.b #$80 : STA.w $03F0 LDA $030F CMP.b #$01 : BEQ .song_of_soaring @@ -129,12 +128,11 @@ LinkItem_NewFlute: .song_of_healing LDA.b #$13 : JSR Player_DoSfx2 - LDA #$01 : STA $FE + LDA.b #$01 : STA $FE RTS .song_of_storms ; Play the Song of Storms SFX - ; LDA.b #$12 : JSR Player_DoSfx2 LDA.b #$18 : JSR Player_DoSfx1 JSL OcarinaEffect_SummonStorms RTS @@ -143,13 +141,13 @@ LinkItem_NewFlute: LDA.b #$3E : JSR Player_DoSfx2 ; Are we indoors? - LDA $1B : BNE .return + LDA.b $1B : BNE .return ; Are we in the dark world? The flute doesn't work there. - LDA $8A : AND.b #$40 : BNE .return + LDA.b $8A : AND.b #$40 : BNE .return ; Also doesn't work in special areas like Master Sword area. - LDA $10 : CMP.b #$0B : BEQ .return + LDA.b $10 : CMP.b #$0B : BEQ .return LDX.b #$04 diff --git a/Masks/bunny_hood.asm b/Masks/bunny_hood.asm index f86d37e..4872560 100644 --- a/Masks/bunny_hood.asm +++ b/Masks/bunny_hood.asm @@ -46,13 +46,16 @@ print "End of Bunny Hood GFX ", pc ; ============================================================================= ; Bunny Hood Speed Modification -org $87E330 -JSR $FD66 +org $07E330 +JSR Link_CheckForBunnyRun CLC -org $87FD66 +; org $87FD66 +pullpc +Link_CheckForBunnyRun: JSL LinkState_BunnyHoodRun RTS +pushpc org $20AF20 LinkState_BunnyHoodRun: