Pushable blocks hookshot fix by Conn

View previous topic View next topic Go down

20160729

Post 

Pushable blocks hookshot fix by Conn




Puzzledude wrote:Here is the Hex "decode" of the pushable blocks hookshot fix by Conn if anyone is interested in fastly implementing this with the Hex editor into any Rom:

49CEB, new pointer
22 A0 F1 A2

49D76, new pointer
22 A0 F1 A2

1171A0, new code
A8 C9 1F F0 04 9D 4A 0C 6B AD FD 05 F0 01 6B AD FC 05 F0 01 6B 98 9D 4A 0C 6B

Conn wrote:Ok, made a asm out of that code, and updated all-in as well as
https://www.zeldix.net/t405-blocks-moveable-multiple-times#3882

Code:


; it is possible to hookshot through the in-move blocks - which may result in unwanted effects
; this asm code will block this.

lorom


org $899CEB
JSL $A2F1A0 ; somewhere in expanded region 1MB< 0x1171A0<1.5MB

org $899D76
JSL $A2F1A0 ; change it if you want it somewhere else

org $A2F1A0 ; pc address 0x1171A0
TAY
CMP #$1F  ; is hookshot in use?
BEQ $04
STA $0C4A,x ; if not let the hookshot routine proceed
RTL
LDA $05FD ; check first byte whether block is currently in-move
BEQ $01
RTL      ; if yes return
LDA $05FC ; check other byte whether block is currently in-move
BEQ $01
RTL
TYA      ; restore overwritten byte
STA $0C4A,x ;continue hookshot routine
RTL


Administrator
Administrator

Since : 2012-06-19

Back to top Go down

Share this post on: Excite BookmarksDiggRedditDel.icio.usGoogleLiveSlashdotNetscapeTechnoratiStumbleUponNewsvineFurlYahooSmarking

 
Permissions in this forum:
You cannot reply to topics in this forum