Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Adding rumble support
05-01-2015, 10:59 AM (This post was last modified: 05-01-2015 10:59 AM by Bigpet.)
Post: #3
RE: Adding rumble support
Well the way you would add functions via overwriting memory is pretty simple

if you have something like this in a function that you want to trigger the rumble

Code:
0x0880B000 addi a0, 5
0x0880B004 sw a0, 0x4(s0)

then you need to find some memory that is unused first (or some memory that you can safely overwrite, like unused online functionality, padding or whatever).

Let's suppose there's some unused space in 0x0881A0C0 then you can change the code to

Code:
0x0880B000   j 0x0881A0C0
0x0880B004   addi a0, 5
....
....
0x0881A0C0   sw a0, 0x4(s0)
0x0881A0C4   jal zz_sceRumble
0x0881A0C8   j 0x0880B008  
0x0881A0CC   nop

So basically, you overwrite one instruction to jump to a place where you then do that one instruction and everything additional that you want to do
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Adding rumble support - Anarky - 04-29-2015, 06:36 AM
RE: Adding rumble support - GamerzHell9137 - 05-01-2015, 10:01 AM
RE: Adding rumble support - Bigpet - 05-01-2015 10:59 AM
RE: Adding rumble support - Anarky - 05-04-2015, 01:44 AM
RE: Adding rumble support - [Unknown] - 05-04-2015, 06:32 AM

Forum Jump: