Scruffy120
03-06-2009, 08:47 PM
lui t0, $(loads first half of controller address +0880)
lh t0, $(loads second half of controller address)(t0)
lui t1, $(loads first half of code address + 0880)
ori t2, zero, $(value to activate)
ori t3, zero, $(value to deactivate)
lui t4, $(loads first half of hacked/on value)
ori t5, t4, $(loads second half of hacked/on value)
lui t6, $(loads first half of original/off value)
ori t6, t6, $(loads second half of original/off value)
bne t0, t2, $(branches the next bne)
nop
sw t5, $(loads second half of code address)(t1)
bne t0, t3, $(branches to the jr ra)
nop
sw t6, $(loads second half of code address)(t1)
jr ra
now your going to need a hook too, that will be later.
put that in PS2DIS, and copy what it makes, thats your new code! ill post some button codes later
/!\ NOT MINE CREDIT TO "pspmodandcfw" /!\
lh t0, $(loads second half of controller address)(t0)
lui t1, $(loads first half of code address + 0880)
ori t2, zero, $(value to activate)
ori t3, zero, $(value to deactivate)
lui t4, $(loads first half of hacked/on value)
ori t5, t4, $(loads second half of hacked/on value)
lui t6, $(loads first half of original/off value)
ori t6, t6, $(loads second half of original/off value)
bne t0, t2, $(branches the next bne)
nop
sw t5, $(loads second half of code address)(t1)
bne t0, t3, $(branches to the jr ra)
nop
sw t6, $(loads second half of code address)(t1)
jr ra
now your going to need a hook too, that will be later.
put that in PS2DIS, and copy what it makes, thats your new code! ill post some button codes later
/!\ NOT MINE CREDIT TO "pspmodandcfw" /!\