Make silver arrows double fast
Zeldix :: Zelda III Hacking :: Patches :: ASM
Page 1 of 1
20150514
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
Conn- Since : 2013-06-30
Similar topics
» Give silver arrows and/or L4 Sword a message when getting them out of chest
» Fast Punchout
» Pokémon Gold & Silver
» [Super Game Boy] Pokemon Gold & Silver MSU1
» Rearranged Orchestral Pokemon Gold/Silver for ALTTP Randomizer
» Fast Punchout
» Pokémon Gold & Silver
» [Super Game Boy] Pokemon Gold & Silver MSU1
» Rearranged Orchestral Pokemon Gold/Silver for ALTTP Randomizer
Permissions in this forum:
You cannot reply to topics in this forum