Make silver arrows double fast

View previous topic View next topic Go down

20150514

Post 

Make silver arrows double fast





Code:

; asm to make silver arrows double fast
; alttp expanded, no Header
; if it is too fast add/substract a smaller value from each
; 30 respectively d0

lorom

org $0990D3
JSL $20AEA0
nop
nop

org $20AEA0
LDA $9088,y
STA $0C22,x    ; native code
LDA $0202      ; bow equipped?
cmp #$01
beq $01
RTL
LDA $7ef340 
cmp #$04      ; silver bow and arrows?
beq $01
RTL
LDA $0C22,x
cmp #$30
BNE left
LDA #$60      ; add $30 to $30
STA $0C22,x
RTL
left:
cmp #$d0
BNE end
LDA #$a0      ; substract 30 from d0
STA $0C22,x
end:
RTL


org $0990D9
JSL $20AEd0
nop
nop

org $20AEd0
LDA $908C,y
STA $0C2C,x    ; native code
LDA $0202      ; bow equipped?
cmp #$01
beq $01
RTL
LDA $7ef340 
cmp #$04      ; silver bow and arrows?
beq $01
RTL
LDA $0C2c,x
cmp #$30
BNE left1
LDA #$60      ; add $30 to $30
STA $0C2c,x
RTL
left1:
cmp #$d0
BNE end1
LDA #$a0      ; substract 30 from d0
STA $0C2c,x
end1:
RTL

avatar
Conn



Since : 2013-06-30

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