S1N
07-03-2009, 10:50 AM
#Anti Bounce Nades
;credit s1n
;SELEC to turn on/off
0x000fd988 0x0a200dc0 <-------------------- Hook
0x00003700 0x3c0808e3 <-------------------- First Half of Controller Address >lui t0 $(half of controller addy +0880...)<
0x00003704 0x850886dc <-------------------- Second half of Controller Address >lh t0 $(second half of controller addy)(t0)<
0x00003708 0x3c0908a1 <-------------------- First Half of code address >lui t1$(loads first half of code address + 0880...)<
0x0000370c 0x340a0001 <-------------------- Value to activate >ori t2 zero $(value to activate )<
0x00003710 0x340b0001 <-------------------- Value deactivate >ori t3 zero $(value to deactivate)<
0x00003714 0x3c0c3F80 <-------------------- First half of hacked value >lui t4 $(loads first half of hacked value)<
0x00003718 0x358d0000 <-------------------- Second half of hacked value >ori t5 t4 $(second half of hacked value)<
0x0000371c 0x3c0e4080 <-------------------- First half of original value >lui t6 $(laods first half of original avlue)<
0x00003720 0x35ce0000 <-------------------- Second half of original value >ori t6 t6 $(second galf of original value)<
0x00003724 0x150a0002 <-------------------- Branches to the next bne >bne t0 t2 $(branches the next bne)<
0x00003728 0x00000000 <--------------------- No operation or 0x00000000 >nop<
0x0000372c 0xad2db4d8 <-------------------- Second half of code value >sw t5 $(second half of code address)(t1)<
0x00003730 0x150b0002 <-------------------- Branches to the jr ra >bne t0 t3 $(branches to the jr ra)<
0x00003734 0x00000000 <-------------------- No operation or 0x00000000 >nop<
0x00003738 0xad2e84d8 <--------------------Second half of code value again >sw t5 $(second half of code address)(t1)<
0x0000373c 0x03e00008 <-------------------- jr ra or "0x03e00008" >jr ra<
;credit s1n
;SELEC to turn on/off
0x000fd988 0x0a200dc0 <-------------------- Hook
0x00003700 0x3c0808e3 <-------------------- First Half of Controller Address >lui t0 $(half of controller addy +0880...)<
0x00003704 0x850886dc <-------------------- Second half of Controller Address >lh t0 $(second half of controller addy)(t0)<
0x00003708 0x3c0908a1 <-------------------- First Half of code address >lui t1$(loads first half of code address + 0880...)<
0x0000370c 0x340a0001 <-------------------- Value to activate >ori t2 zero $(value to activate )<
0x00003710 0x340b0001 <-------------------- Value deactivate >ori t3 zero $(value to deactivate)<
0x00003714 0x3c0c3F80 <-------------------- First half of hacked value >lui t4 $(loads first half of hacked value)<
0x00003718 0x358d0000 <-------------------- Second half of hacked value >ori t5 t4 $(second half of hacked value)<
0x0000371c 0x3c0e4080 <-------------------- First half of original value >lui t6 $(laods first half of original avlue)<
0x00003720 0x35ce0000 <-------------------- Second half of original value >ori t6 t6 $(second galf of original value)<
0x00003724 0x150a0002 <-------------------- Branches to the next bne >bne t0 t2 $(branches the next bne)<
0x00003728 0x00000000 <--------------------- No operation or 0x00000000 >nop<
0x0000372c 0xad2db4d8 <-------------------- Second half of code value >sw t5 $(second half of code address)(t1)<
0x00003730 0x150b0002 <-------------------- Branches to the jr ra >bne t0 t3 $(branches to the jr ra)<
0x00003734 0x00000000 <-------------------- No operation or 0x00000000 >nop<
0x00003738 0xad2e84d8 <--------------------Second half of code value again >sw t5 $(second half of code address)(t1)<
0x0000373c 0x03e00008 <-------------------- jr ra or "0x03e00008" >jr ra<