SneakyCodes Gaming Forum
Welcome to SneakyCodes. Contrary to what some may want you to think, SneakyWorld.forumotion is IN NO WAY affiliated with SneakyCodez. Anyone who tries to tell you different, is a lying piece of shit.

SneakyCodes is in the process of an entire site reboot, with no sections, topics, forums, and users. Feel free to sign up, and check back regularly for updates.

Thank you,
SwoRNLeaDejZ

SneakyCodes Gaming Forum
Welcome to SneakyCodes. Contrary to what some may want you to think, SneakyWorld.forumotion is IN NO WAY affiliated with SneakyCodez. Anyone who tries to tell you different, is a lying piece of shit.

SneakyCodes is in the process of an entire site reboot, with no sections, topics, forums, and users. Feel free to sign up, and check back regularly for updates.

Thank you,
SwoRNLeaDejZ

SneakyCodes Gaming Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.

SneakyCodes Gaming Forum

The Evolution Begins...
 
HomePortalLatest imagesRegisterLog inSneakyCodes RSS Feed
Everyone go to SneakyWorld! Link on the home page!
Sneaky Generators

Sneaky Image Editor
The Walking Dead Game

All Generators By SwoRNLeaDejZ


FTB3 Room Generator
FTB3 Name Generator
FTB2 Tag Generator
FTB2 Name Generator
FTB2 Room Generator


Donate to SneakyCodes Today!
Affiliates
Please Join and Visit the SneakyCodes Affiliates




We Love A-G!!!!

Join TheUnseenCoders.com Today!!


Free Forumotion Designs


kHaoZ is a frickin beast :)

Tech Support Guy
Latest topics
» Deepest regards to the Sneaky Community
Subroutines EmptyFri Apr 10, 2020 11:27 pm by sabian49

» damn sneaky, RiP. It was fun
Subroutines EmptySat Oct 11, 2014 1:25 am by Sylen7Nato

» Just Another Blonde Joke xD FUNNY AS FAWK
Subroutines EmptyMon Mar 03, 2014 5:37 pm by Rossy Redness

» Hey it's Skinny107
Subroutines EmptyTue Dec 03, 2013 8:24 pm by o5Gz

» ps3 hacking!
Subroutines EmptyMon Jun 10, 2013 9:42 pm by Sylen7Nato

» PSP ISO List
Subroutines EmptyMon Jun 10, 2013 9:28 pm by Sylen7Nato

» tiger render
Subroutines EmptyFri May 10, 2013 3:11 pm by mk7

» SWORN.
Subroutines EmptySun Dec 09, 2012 6:25 am by EverEffects

» homefront redeem code
Subroutines EmptyFri Nov 30, 2012 1:32 am by EverEffects

» Calling Sworn
Subroutines EmptyTue Nov 20, 2012 4:34 pm by EverEffects

» Thought Id Stop By And Say Hi
Subroutines EmptyThu Nov 15, 2012 3:40 am by HappySnacks69

» An Introduction
Subroutines EmptyTue Nov 13, 2012 2:33 am by Ace700

Views
Subroutines Image
Powered by web analytics software.
Statistics
We have 4719 registered users
The newest registered user is CraftPR

Our users have posted a total of 13086 messages in 2891 subjects
Who is online?
In total there are 4 users online :: 0 Registered, 0 Hidden and 4 Guests

None

Most users ever online was 328 on Sun Jul 04, 2021 8:20 am
Facebook Stream
Top posters
SwoRNLeaDejZ
Subroutines Vote_lcapSubroutines Voting_barSubroutines Vote_rcap 
blckhwksfan
Subroutines Vote_lcapSubroutines Voting_barSubroutines Vote_rcap 
-Ch33zy-
Subroutines Vote_lcapSubroutines Voting_barSubroutines Vote_rcap 
EverEffects
Subroutines Vote_lcapSubroutines Voting_barSubroutines Vote_rcap 
l7annylvlex
Subroutines Vote_lcapSubroutines Voting_barSubroutines Vote_rcap 
+Elegance
Subroutines Vote_lcapSubroutines Voting_barSubroutines Vote_rcap 
Whiteyy
Subroutines Vote_lcapSubroutines Voting_barSubroutines Vote_rcap 
JZydex
Subroutines Vote_lcapSubroutines Voting_barSubroutines Vote_rcap 
PumaSnIpejZ
Subroutines Vote_lcapSubroutines Voting_barSubroutines Vote_rcap 
kHaoZ
Subroutines Vote_lcapSubroutines Voting_barSubroutines Vote_rcap 






Share | 
 

 Subroutines

View previous topic View next topic Go down 
AuthorMessage
HatersHate
Beast Poster
Beast Poster
HatersHate

Posts : 184
1337ness : 7
Join date : 2010-09-18
Age : 27
Location : New Jersey

Subroutines _
PostSubject: Subroutines   Subroutines EmptySun Sep 19, 2010 4:16 pm


Wont Get Any Clearer Then This, And If You Wanna Start Coding This Is A Must Read, Not Only Does It Explain How To Sub But It Also Explains The Command's, If You Wanna Start Coding I Suggest You Start Here!

-------------------------------------------
How To Write A Sub Routine
Tutorial Written By DeToX Very Happy Very Happy Very Happy
Use Ps2 Dis
-------------------------------------------


Ok For People That Already Know What They Are Doing Heres The Template We Will Be Using

------------------------------------------------------------------------------------
Hook
lui t0 $(First half of your address)
lui t1 $(First half of your hex)
ori t1 t1 $(Second half of your hex) OR addiu t1 t1 $(Second half of your hex)
sw t1 $(Second half of your address)(t0)
jr ra
------------------------------------------------------------------------------------


Ok Back To The Tut. (if you are new just dotn look up there)

Open up PS2 DIS
Then When This Pops up:



Change the Address the Load From 00000000 to 08800000




]Now You Should Have A Screen Like This:

This image has been resized. Click this bar to view the full image. The original image is sized 1279x804 and weights 135KB.


Hit The G key on you keyboard

This Should Pop up:



Now, the first thing we need to set up is a SAFE Hook

So We Type in 08800098 (0880 because we are in real addressing)
Hit enter after typing what is written above



No Hit enter again And You will See this blank



click on command and type in j $09000000

what this is doing and making our hook jump to the address 09000000 and we are hooking it to 09000000 because it is where we will be writing out routine.
Also note : To Write A Routine You Must Be In A Feild Of Nop's O Suggest 09000000 Because it is Big and Easy

After You Do that copy the addy and the hex (this is the first line of your code)

Which will be

#Flash SuB Routine
;Fox1091 Tut
0x08800098 0x0a400000

Leave this now and we will be back for it later


hit G again and this time go to 09000000



This will bring you to a lot of nop's

This image has been resized. Click this bar to view the full image. The original image is sized 726x359 and weights 48KB.


Now we need the flash code this is where it gets a little tricky Razz

Here it is
#Flash
0x0055fa2c 0x40000000;By the way this Hex controls the speed if add more to it to make you faster or make you walk backwards etc

Back to the topic / Tut

We need to take 0055fa2c and put it in real addressing meaning we have to add

0055fa2c + 08800000 if you have a Hex Calc use it if not it's like normal addition just heres the digits


Code:
0 1 2 3 4 5 6 7 8 9 a b c d e fAlso note that if the 2nd half is grater than 7FFF u must add 0001 to the first half of your address so it would be:

08d6fa2c

Now that we have the address all figured out we can get back to easier times

Hit enter in ps2 dis and get ready to type in your command




Enter in:

Code:
Lui t0 $08d6what this is doing is loading 08d6 into t0

Then Copy down the addy + hex to your code again so you should have this so far:


Code:
#Flash SuB Routine
;Fox1091 Tut
0x08800098 0x0a400000
0x09000000 0x3c0808d6Now we have to load up the first half of the hex / value of our code so use the arrow key v / down and hit enter

Now type in


Code:
Lui t1 $4000what this is doing is loading the value / hex of our code into t1




Now You Should have this for your code:


Code:
#Flash SuB Routine
;Fox1091 Tut
0x08800098 0x0a400000
0x09000000 0x3c0808d6
0x09000004 0x3c094000Guess what guys your 75% done Your Routine

Just go down one more line in ps2 dis and hit enter and type this in:


Code:
ori t1 t1 $0000If you dont understand yet what you are now doing is loading the second half of your hex into t1 so all togather 40000000 is loaded into t1 which is our hex for flash

This image has been resized. Click this bar to view the full image. The original image is sized 829x148 and weights 39KB.


Heres our code now


Code:
#Flash SuB Routine
;Fox1091 Tut
0x08800098 0x0a400000
0x09000000 0x3c0808d6
0x09000004 0x3c094000
0x09000008 ox35290000Ok i will now be showing no more pics untill the end considering there is only 2 more lines left to write...

We now just have to store our second half of our addy to complete out code

heres the line:


Code:
sw t1 $fa2c(t0)Then copy that down and we will do the last line before i reveal the last to lines...

only because the last line just ends the routine which is JR RA

the command you will type is


Code:
JR RAthats it and your almost done just one more thing to do + heres a screeny of what ti will look like



And heres our code


Code:
#Flash SuB Routine
;Fox1091 Tut
0x08800098 0x0a400000
0x09000000 0x3c0808d6
0x09000004 0x3c094000
0x09000008 0x3529000
0x0900000c 0xad09fa2c
0x09000010 0x03e00008now note you are not done yet!@#$%^&*(&*^&%^%#$

this is in real addressing you must put it in fake addressing so you have to subtract 08800000 form every address buy guess what 09000000 is easy it becomes 00800000 so heres the code


Code:
#Flash SuB Routine
;Fox1091 Tut
0x00000098 0x0a400000
0x00800000 0x3c0808d6
0x00800004 0x3c094000
0x00800008 0x3529000
0x0080000c 0xad09fa2c
0x00800010 0x03e00008Credits for tut : Fox1091

any questions? im here to anwser... post away
__________________
ReP + iF i HeLpEd [You must be registered and logged in to see this link.]

Make quick money online
[You must be registered and logged in to see this link.]





If you Would Like the Tutorial With pics visit here [You must be registered and logged in to see this link.]
Back to top Go down
DeToX
Newbie
Newbie
DeToX

Posts : 26
1337ness : 1
Join date : 2011-08-06

Subroutines _
PostSubject: Re: Subroutines   Subroutines EmptyThu Aug 11, 2011 7:38 am


i reember writing this ages ago...
Back to top Go down
 

Subroutines

View previous topic View next topic Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
SneakyCodes Gaming Forum :: PSP Section :: PSP Tutorials-
Jump to:  





SneakyCodes.tk | Sneaky-Media.com


Free GeoHot NOW!
I support George Hotz and
the FREEDOM OF INFORMATION

Create a forum | ©phpBB | Free forum support | Report an abuse | Forumotion.com