User Tag List

Results 1 to 5 of 5

Thread: A Simple Subing Tut (Nub Proof) - A Fox1091 Original Guide!

  1. #1
    MiLk = Da BoMb

    User Info Menu

    A Simple Subing Tut (Nub Proof) - A Fox1091 Original Guide!

    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
    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)

    Notice
    If you do not have Ps2 Dis Download it here:


    Ps2 Dis

    Password
    Code:
    binarycodes****

    ------------------------------------------------------------------------------------


    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:



    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



    Now we need the flash code :) this is where it gets a little tricky :P

    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 f
    Also 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 $08d6
    what 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 0x3c0808d6
    Now 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 $4000
    what 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 0x3c094000
    Guess 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 $0000
    If 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



    Heres our code now

    Code:
    #Flash SuB Routine
    ;Fox1091 Tut
    0x08800098 0x0a400000
    0x09000000 0x3c0808d6
    0x09000004 0x3c094000
    0x09000008 ox35290000
    Ok 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 RA
    thats 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 0x03e00008
    now 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 0x03e00008
    Credits for tut : Fox1091

    any questions? im here to anwser... post away
    Last edited by DeToX; 06-30-2010 at 04:13 PM.

  2. #2
    A Simple Subing Tut (Nub Proof) - A Fox1091 Original Guide!

    User Info Menu

    Re: A Simple Subing Tut (Nub Proof) - A Fox1091 Original Guide!

    remove a zero on the last address of the very last code in ur tut. but gj very noob proof.

    If you have an idea on a PSP related program that is ran on Windows PM me with some information on your idea please.

  3. #3
    A Simple Subing Tut (Nub Proof) - A Fox1091 Original Guide!

    User Info Menu

    Re: A Simple Subing Tut (Nub Proof) - A Fox1091 Original Guide!

    idk if it works i did it watching this tut test it if it works i have my psp fixing tell me if it works

    real code
    #inf ammo
    ;ported by jony1/D1rty-Hacker
    ;dont run out of ammo
    0x0006b554 0x00C52821

    SUB:

    #INF AMMO SuB Routine
    ;D1rty-Hacker/jony1
    0x00000098 0x0a400000
    0x00800000 0x3c080887
    0x00800004 0x3c0900c5
    0x00800008 0x35292821
    0x0080000c 0xad09b554
    0x00800010 0x03e00008

  4. #4
    MiLk = Da BoMb

    User Info Menu

    Re: A Simple Subing Tut (Nub Proof) - A Fox1091 Original Guide!

    try it and find out ;)

  5. #5
    A Simple Subing Tut (Nub Proof) - A Fox1091 Original Guide!

    User Info Menu

    Re: A Simple Subing Tut (Nub Proof) - A Fox1091 Original Guide!

    Thanks DeToX. :)
    [Today 08:09 PM] _L96AW_RUSTY_: pwned!
    [Today 08:08 PM] whatwentwrong: yes sir.
    [Today 08:04 PM] HDC: How about you shut the fuck up
    *HDC has just PWNED the Shitbox*

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •