PSP Elites
Would you like to react to this message? Create an account in a few clicks or log in to continue.


PsP hacking and gaming site
 
HomePortalLatest imagesSearchRegisterLog in

 

 How To Write A Code Into A Subroutine

Go down 
AuthorMessage
TheEliteOne

TheEliteOne


Posts : 72
Join date : 2009-10-25
Age : 31
Location : Earth

How To Write A Code Into A Subroutine Empty
PostSubject: How To Write A Code Into A Subroutine   How To Write A Code Into A Subroutine Icon_minitimeWed Oct 28, 2009 9:42 pm

To Understand How a Subroutine Works Please Read This: How a Subroutine Works

NOTE: Once you ahve read this once watch this video (Not my video): Video Subroutine Guide

Ok here is a subroutine template (Please read my post in the above link to understand this)
Lui t0 $First half of the real address, +1 if the second half is 7F80 or more
Lui t1 $First half of the hex value
Ori t1 t1 $Second half of the hex value
Sw t1 $Second half of the real address (t0)
Jr ra

Here is a step by step guide:
1] Select a code you want to write into a sub, launch the game that code is for
2] Dump the RAM in slot 0 in the PRX/Options menu
3] Hook up your PSP to your computer and cut and paste the dump to your computer
4] Open PS2DIS.exe and oprn your ram dump, set the 'address from' to 08800000 and keep the load from at zero
5] Now press 'Ctrl" + 'F' and check the box 'as hex string' then type in a bunch of zeros at the long box
6] You should now be at 08800610 and the MIPS comand should be 'nop'
7] Replace the first nop with Lui t0 and then enter the first half of the real address, to find the real address open your calculator and click view then click scientific and check 'Hex' paste your address in the calculator and add 8800000 to get your real address, add a 0 to the begining to make it 8 digets long
8] Now go to the next nop and enter Lui t1 $ then the first half of the hex, you dont need to do anything to the hex value
9] Now go to the next nop and anter Ori t1 t1 $ then the second half of the hex value
10] Go to the next nop and enter Sw t1 $ and the second half of the real address, you will need to enter (t0) right after the second half of the real address without any spaces
11] Now go to the next nop and enter 'Jr ra'
12] Open a blank notepad document and go to the lui t0 $ line and click on it, copy the address and the data (aka hex) to the notepas then go the the next line and copy the address and data to the notepad, contnue this untell you have copied the jr ra
13] Now you need a hook, you can search for a hook yourself or you can use universal hhoks that work for all games:
08800098
08800024
0880004C
In PS2DIS press 'G' and enter one of those, then change the nop to one of these:
j $The Real address of the top code in your subroutine
jal $The Real address of the top code in your subroutine
and enter the top address you entered in step 12 into the hook and then copy the hook's address and data to your notepad document, you can put the hook at the bottom or the top of your subrotuine
14] Now go to your notepad doc and press 'ctrl' + 'H' and relace '0880' with 0000 and thats your subrotuine

Refer to the youtube video link at the top after reading this once to fully understand
Back to top Go down
 
How To Write A Code Into A Subroutine
Back to top 
Page 1 of 1
 Similar topics
-
» Hot to write a DMA code into a subroutine
» How a Subroutine Works
» *NOOB PROOF* Subroutine Guide by TheEliteOne aka Crioshinx aka Jinzo X
» *NOOB PROOF* Advanced Subroutine Guide by TheEliteOne aka Crioshinx aka Jinzo X
» TheEliteOne's Code Searching Guide

Permissions in this forum:You cannot reply to topics in this forum
PSP Elites :: PSP Section :: PSP Guides :: MIPS/PS2DIS Guides-
Jump to: