User Tag List

Page 1 of 3 123 LastLast
Results 1 to 10 of 25

Thread: [Re-Written] How-To Make A Sub-Routine

  1. #1
    [Re-Written] How-To Make A Sub-Routine

    User Info Menu

    [Re-Written] How-To Make A Sub-Routine

    NOTE: I have re-written this guide because the other was full of errors. So please close the other one.

    Code:
    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
    To get a better understanding of what to do with the MIPS above, continue reading this guide.

    You will need the following:
    PS2DIS
    Latest Patch Dump (We will be using Socom FTB2 1.60)
    A Code
    A Hook

    Socom FTB2 1.60 Dump:
    http://www.consolediscussions.com/fo...78/#post133715

    Codes:
    Go to the Socom FTB2 No Banning Codes Archive.
    http://www.consolediscussions.com/fo...d-4-19-t11532/

    Safe (No Ban/35) Hooks:
    0000004C
    00000024
    00000004
    00000098

    Alright! Let's start making a sub routine!!!

    We will be using Infinite Health for this tutorial.

    #Infinite Health
    ;One shot kill will kill you
    0x004C9628 0x00000000

    Open PS2DIS. And drag your 1.60 dump into PS2DIS.

    If you get the box in the corner that asks you about 'Address From' or 'Load Address'.
    Change 'Load Address' to 08800000.

    Now choose one of the safe hooks above and add 08800000.
    We will use 00000098.

    So now, open up the Windows Calculator.
    Start>All Programs>Accessories>Calculator

    Once you have the calculator open, change it to a scientific calculator
    View>Scientific

    Make sure you have 'Hex' and 'QWord' marked/bubbled.

    So add:
    08800000 + 00000098 = 08800098

    After you added safe hook 08800000 to make it real addressing, press 'G' and type:
    08800098

    You should get a jr ra. Now double click on the safe hook in PS2DIS. Go down to the command line where it says jr ra. And change it to:
    j $09000000

    The reason we use 09000000 is because that is where we are writing our sub. If you are writing your sub with a different address, then use that address instead of 09000000.

    Now write down the address + hex.

    Now you have your hook.

    This is the beginning of your sub.

    #Inf Health Sub
    0x08800098 0x0A400000 (Your hook)

    The Infinite Health address, which is 004C9628, is what you call a shortcut address. You want to change it into the real address.

    Now add:
    004C9628(Infinite Health address) + 08800000 (To make it real addressing)

    You should get 08CC9628. That is Infinite Health's REAL address.

    Write it down. You will need it later.

    Now we need to find a place full of nops to write our sub. We will use 09000000.
    So press 'G' and type in 09000000.

    Now you want to load the first half of your address.

    So double click on the first line and change the nop to:
    lui t0 $(First half your REAL address)

    But before you load the first half of your address, you need to know the 7FFF rule.

    If the last half of your address is higher than 7FFF, then you add 0001 to the first half of your REAL address.
    So since Inf Health's last half of the address is 9628. Then you add 0001 to the first half of the REAL address with is 08CC. So add 08C + 0001 = 08CD.

    So instead of typing:
    lui t0 $08CC

    Type:
    lui t0 $08CD

    Now press 'OK'.

    Now you have the second line to your sub routine. So write down the address and hex.

    Now you have:

    #Infinite Health Sub
    0x08800098 0x0A400000 (Your hook)
    0x09000000 0x3C0808CC (Your loaded address[first half])

    Now we need to load the first half of the hex.

    So go down one line, double click on it and change the nop to:
    lui t1 $(First half of your hex)

    Since the first half of the hex is 0000, type:
    lui t1 $0000

    And press 'OK'.

    Now you have the third line to your sub routine. So write down the address and hex.

    Now you have:

    #Infinite Health Sub
    0x08800098 0x0A400000 (Your hook)
    0x09000000 0x3C0808CC (Your loaded address[first half])
    0x09000004 0x3c090000 (Your loaded hex[first half])

    Now we need to load the second half of your hex.

    So go down another line, double click on it and change the nop to:
    ori t1 t1 $(Second half of your hex)
    OR
    addiu t1 t1 $(Second half of your hex)

    Since the second half of your hex is 0000, type:
    ori t1 t1 $0000
    OR
    addiu t1 t1 $0000

    And press 'OK'.

    Now you have the fourth line to your sub routine. So write down the address and hex.

    Now you have:

    #Infinite Health Sub
    0x08800098 0x0A400000 (Your hook)
    0x09000000 0x3C0808CC (Your loaded address[first half])
    0x09000004 0x3C090000 (Your loaded hex[first half])
    0x09000008 0x35290000 (Your loaded hex[second half])

    Now we need to load the second half of your address.

    So go down another line, double click on it and change the nop to:
    sw t1 $(Second half of your address)(t0)

    Since the second half of your address is 9628, type:
    sw t1 $9628(t0)

    And press 'OK'.

    Now you have the fifth line to your sub routine. So write down the address and hex.

    Now you have:

    #Infinite Health Sub
    0x08800098 0x0A400000 (Your hook)
    0x09000000 0x3C0808CC (Your loaded address[first half])
    0x09000004 0x3C090000 (Your loaded hex[first half])
    0x09000008 0x35290000 (Your loaded hex[second half])
    0x0900000C 0xAD099628 (Your loaded address[second half])

    Now we need to finish off the sub routine.

    So go down another line, double click on it and change the nop to:
    jr ra

    Now you should have:

    #Infinite Health Sub
    0x08800098 0x0A400000 (Your hook)
    0x09000000 0x3C0808CC (Your loaded address[first half])
    0x09000004 0x3C090000 (Your loaded hex[first half])
    0x09000008 0x35290000 (Your loaded hex[second half])
    0x0900000C 0xAD099628 (Your loaded address[second half])
    0x09000010 0x03E00008 (Jump and register)

    WooHoo!!! We aren't done yet. But we only need to apply one more step!!!

    Now you need to subtract from all the addresses.

    So go back to the Windows Calculator.
    Start>All Programs>Accessories>Calculator

    Now you want to subtract the addresses.

    08800098 - 08800000
    09000000 - 08800000 = 0x00800000
    09000004 - 08800000 = 0x00800004
    09000008 - 08800000 = 0x00800008
    0900000C - 08800000 = 0x0080000C
    09000010 - 08800000 = 0x00800010

    So now you have:

    #Infinite Health Sub
    0x00000098 0x0A400000
    0x00800000 0x3C0808CD
    0x00800004 0x3C090000
    0x00800008 0x35290000
    0x0080000C 0xAD099628
    0x00800010 0x03E00008

    AND YOU ARE FINISHED!!!!
    Last edited by Prestige; 08-09-2009 at 03:20 PM.
    .: PSN iD - KaoTiiK_ReFLeX :.


  2. #2
    [Re-Written] How-To Make A Sub-Routine

    User Info Menu

    Re: [Re-Written] How-To Make A Sub-Routine

    Yeah I don't get what the point of Sub Routine's is. What does it accomplish that a normal code doesn't?
    Every man for himself. You trust no one but yourself, if you want something done you do it your self don't rely on others. You watch your own back, you fight your own fights its you against the world.

    Quote Originally Posted by Some phag
    -.BUS.-'s mommy says to Cannon, "I love you,
    I love you, I love you"
    The Cannon on the bus says, "I love you, too"
    All through the town.

  3. #3
    [Re-Written] How-To Make A Sub-Routine

    User Info Menu

    Re: [Re-Written] How-To Make A Sub-Routine

    Quote Originally Posted by Zeus View Post
    Yeah I don't get what the point of Sub Routine's is. What does it accomplish that a normal code doesn't?
    Maybe it makes it 35-Error proof.
    .:: DO YOUR PART - Remember to press the Report Button for posts that need moderation. ::.
    .::Forum Rules | List of Demands Part II ::.

    Rep :<Current>(230) + <Previous>(207)= <Total>(437)
    AdamAndersen aka Pink Floyd
    [12-03, 18:47] taking it in the ass IS...
    [12-03, 18:47] giving sex to another man isn't exactly gay...
    [12-03, 18:45] ill suck your dick if you suck mine. dealio?

    Adam Andersen: I give him a hug every night after we make love.

    Rigalic Reign: I too had a sexual encounter with a female in kindergarten
    CoDeX: Don't talk about last week.

    [Today 03:56 PM] Sneaky Poptart: They haven't dropped yet?
    [Today 03:24 PM] BioHazardouz: My nuts
    [Today 01:42 PM] RageRaft: Whats up guys.

    When in doubt. Get the f*ck out!

    CoDeX is like buttsecks. Some people like him. Most think he is a pain in the ass.

  4. #4
    [Re-Written] How-To Make A Sub-Routine

    User Info Menu

    Re: [Re-Written] How-To Make A Sub-Routine

    Quote Originally Posted by CoDeX View Post
    Maybe it makes it 35-Error proof.
    if it does i mite try it wit a code that bans...thanks prestige
    Get At Me Bl4Ck.KiD... Aka BK
    Future Rapper - Spits Fire
    Psp Coder - Mips, C
    Web Designer - HTML, Javascript, Some PHP
    Computer Programmer - Currently Learning C/C++, Visual Basic, Pascal, Brainfuck, Python, Ruby

  5. #5
    [Re-Written] How-To Make A Sub-Routine

    User Info Menu

    Re: [Re-Written] How-To Make A Sub-Routine

    hey umm how do i add the hook?

  6. #6
    [Re-Written] How-To Make A Sub-Routine

    User Info Menu

    Re: [Re-Written] How-To Make A Sub-Routine

    You add it. Read the guide from the beginning.
    .: PSN iD - KaoTiiK_ReFLeX :.


  7. #7
    NyC.xXBRONX.NyC
    Guest

    Re: [Re-Written] How-To Make A Sub-Routine

    Damn Kidd stop making tuts unless you know what you are doing. I agree Nice tut but it's missing the most important thing and you will teach everyone wrong you learn how to do something you don't go running to make tuts. I guarantee you 100% that your code won't work without me testing. WHY your code won't work let me tell you because you are using the hex addresses you get in ps2dis it doesn't work like that you have to find the code's hooks in Nitepr so you should get this #Infinite Health Sub


    0x00000004 0x0A3A0000 it's ok i believe since it's for safe hook
    0x00800000 0xFind constant hook(Nitepr or CW)
    0x00800004 0xFind constant hook(Nitepr or CW)
    0x00800008 0xFind constant hook(Nitepr or CW)
    0x0080000C 0xFind constant hook(Nitepr or CW)
    0x00800010 0x03E00008 last one is ok since it is JR RA

  8. #8
    [Re-Written] How-To Make A Sub-Routine

    User Info Menu

    Re: [Re-Written] How-To Make A Sub-Routine

    can you make this in to a video?

  9. #9
    Bl4Ck.KiD...'s B!tch

    User Info Menu

    Re: [Re-Written] How-To Make A Sub-Routine

    ok some anserw by qt k


    now i goto use like a 0A000000 Memeroy thing
    and every time i use like 0F0... or 0C00...
    u get the point i freeze but when i use 09000000
    i dont freeze
    tell me why why:unsure:

    #Spiderman
    ;Tested 100% FROZZE
    0x00000098 0x0BC00000
    0x06800000 0x3C0808D5
    0x06800004 0x3C09FFFF
    0x06800008 0x3529FFFF
    0x0680000c 0xAD09F5F8
    0x06800010 0x03E00008

    ------Added---------
    NyC then u make a ''tut''
    cause your not sposte to flame on him hes learning so F*** off dude whats your prob
    your sposte to help not destroy
    Last edited by bbrr; 05-19-2009 at 03:23 PM. Reason: added stuff
    :puke::bs:
    :wheelchair::whip:

  10. #10
    [Re-Written] How-To Make A Sub-Routine

    User Info Menu

    Re: [Re-Written] How-To Make A Sub-Routine

    [QUOTE=bbrr;134266]ok some anserw by qt k


    now i goto use like a 0A000000 Memeroy thing
    and every time i use like 0F0... or 0C00...
    u get the point i freeze but when i use 09000000
    i dont freeze
    tell me why why:unsure:

    #Spiderman
    ;Tested 100% FROZZE
    0x00000098 0x0BC00000
    0x06800000 0x3C0808D5
    0x06800004 0x3C09FFFF
    0x06800008 0x3529FFFF
    0x0680000c 0xAD09F5F8
    0x06800010 0x03E00008

    my guess would be tht the hex is to hi?

Page 1 of 3 123 LastLast

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
  •