Log in

I forgot my password

Latest topics
» Could someone point me to a sprite rotation tutorial, please?
Mon Feb 18, 2013 6:53 pm by sckuz254

» RR archive 2
Sun Dec 02, 2012 4:20 pm by losdelsur16

» [ULUS-10310]MoHH2 Uni Instant NukeBoom
Tue Jul 12, 2011 6:52 pm by m33masterBad

» Some vip releases and more
Tue Jul 12, 2011 6:47 pm by m33masterBad

» Mohh2 no fog code.
Tue Jul 12, 2011 6:42 pm by m33masterBad

» instant nade guide
Tue Jul 12, 2011 6:31 pm by m33masterBad

» m33masterBad's Here
Sat Jul 02, 2011 5:35 pm by m33masterBad

» How to teach yourself and try and make templates
Sat Nov 13, 2010 4:56 pm by Jordan

» Making Universal Weapon Mods, Find Weapon Value
Thu Oct 07, 2010 4:02 am by mafiafran

» [ULUS-10141] Jokered Flash Sprint (My first Joker)
Thu Oct 07, 2010 4:02 am by mafiafran

» INF PMNS AND CLAYMORES
Thu Oct 07, 2010 4:02 am by mafiafran

» im back
Wed Aug 18, 2010 12:42 pm by SXYxJeff

» ADMIN APPLICATION
Fri Jul 30, 2010 7:48 pm by NiekTSK

» Ps2dis begginers guide - how to make a basic subroutine
Fri Jul 23, 2010 4:02 pm by pspguy1234290

» Hey
Mon Jul 19, 2010 3:29 pm by SXYxJeff

Top posters
Nick (454)
 
MJKT (419)
 
RappY (318)
 
tHaTdiRTykID (232)
 
CrAzY Gamer (194)
 
XxMIRAGExX (135)
 
EEL007 (128)
 
NiekTSK (124)
 
Battle Star (105)
 
TYLER108 (99)
 

Who is online?
In total there is 1 user online :: 0 Registered, 0 Hidden and 1 Guest

None

[ View the whole list ]


Most users ever online was 95 on Tue Aug 01, 2017 7:44 pm

MIPS- How to make a Subroutine

Go down

MIPS- How to make a Subroutine

Post by Battle Star on Thu Aug 06, 2009 12:03 pm

this is a simple and short guide how to make a subroutine with basic mips commands.

first, you need a code you want to make a subroutine out of.
if you have the code, open ps2dis and drag in the dump of your game.
then a box comes up. change Load from:00000000 to Load from:08800000.

next, press ctrl+F.

then in the next box, press and hold 0 for 10 seconds and check the hex string.

then, select a nop line where you start from. nops are empty values (0x00000000).

double click the line.
when the box comes up, change the command to: liu t0 $[put the first half of the codes address here, without the [. ].

the address of the code you are making has to be in real addressing format. To do that, use a hex calculator and add 08800000.

then you jump to the next line. change the command to liu t0 $[put the first half of your code's hex here without the [. ].

jump to the next line. change the command to ori t1 t1$[Last half of your code's hex without the [. ].

next line, change the command to sw t1 $[last half of your code's address in real addressing here without the [. ].

last line. change the command to jr ra.

finished. all you need to do is addin the hook. look in the browser for every jr ra code. the first one which freezes (write all jr ras down!) should be your hook.
avatar
Battle Star
Senior Member

Posts : 105
Join date : 2009-07-18
Age : 24
Location : Germany

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum