Rapid Fire (Wheel/Chuck) [mdmwii]
NOTE: Outdated by Vega's Rapid Fire code. Vega's code works with any controller.
ZZZZ = Wheel/Chuck Button Value
RR Values:
0F = Normal Rapid Fire
01 = Ultra Rapid Fire
NTSC-U
C21978C0 00000007
3960ZZZZ 7D6C0038
7C0B6000 40A2001C
817FFED0 2C0B00RR
40800010 396B0001
7C0C0050 48000008
39600000 917FFED0
901F0000 00000000
PAL
C2197960 00000007
3960ZZZZ 7D6C0038
7C0B6000 40A2001C
817FFED0 2C0B00RR
40800010 396B0001
7C0C0050 48000008
39600000 917FFED0
901F0000 00000000
NTSC-J
C2197880 00000007
3960ZZZZ 7D6C0038
7C0B6000 40A2001C
817FFED0 2C0B00RR
40800010 396B0001
7C0C0050 48000008
39600000 917FFED0
901F0000 00000000
NTSC-K
C2197CBC 00000007
3960ZZZZ 7D6C0038
7C0B6000 40A2001C
817FFED0 2C0B00RR
40800010 396B0001
7C0C0050 48000008
39600000 917FFED0
901F0000 00000000
Source:
li r11, 0xZZZZ
and r12,r11,r0
cmpw r11,r12
bne+ zero_repeater_byte
lwz r11,-304(r31)
cmpwi r11, 0xRR
bge- zero_repeater_byte
addi r11,r11,1
sub r0,r0,r12
b store_repeater_byte
zero_repeater_byte:
li r11,0
store_repeater_byte:
stw r11,-304(r31)
stw r0,0(r31)
Code creator: mdmwii
NOTE: Outdated by Vega's Rapid Fire code. Vega's code works with any controller.
ZZZZ = Wheel/Chuck Button Value
RR Values:
0F = Normal Rapid Fire
01 = Ultra Rapid Fire
NTSC-U
C21978C0 00000007
3960ZZZZ 7D6C0038
7C0B6000 40A2001C
817FFED0 2C0B00RR
40800010 396B0001
7C0C0050 48000008
39600000 917FFED0
901F0000 00000000
PAL
C2197960 00000007
3960ZZZZ 7D6C0038
7C0B6000 40A2001C
817FFED0 2C0B00RR
40800010 396B0001
7C0C0050 48000008
39600000 917FFED0
901F0000 00000000
NTSC-J
C2197880 00000007
3960ZZZZ 7D6C0038
7C0B6000 40A2001C
817FFED0 2C0B00RR
40800010 396B0001
7C0C0050 48000008
39600000 917FFED0
901F0000 00000000
NTSC-K
C2197CBC 00000007
3960ZZZZ 7D6C0038
7C0B6000 40A2001C
817FFED0 2C0B00RR
40800010 396B0001
7C0C0050 48000008
39600000 917FFED0
901F0000 00000000
Source:
li r11, 0xZZZZ
and r12,r11,r0
cmpw r11,r12
bne+ zero_repeater_byte
lwz r11,-304(r31)
cmpwi r11, 0xRR
bge- zero_repeater_byte
addi r11,r11,1
sub r0,r0,r12
b store_repeater_byte
zero_repeater_byte:
li r11,0
store_repeater_byte:
stw r11,-304(r31)
stw r0,0(r31)
Code creator: mdmwii