+ Reply to Thread
Results 1 to 6 of 6

Thread: Help Writing a Custom Subroutine

  1. #1
    Join Date
    May 2007
    Posts
    4

    Default Help Writing a Custom Subroutine

    Any help as to making a sub for jokers
    Last edited by Epik; 05-29-2007 at 05:12:55 AM.

  2. #2
    Join Date
    Oct 2006
    Posts
    97

    Default

    i dont quite understand what you want to do if you tell me i can write you one and comment it for you

  3. #3
    Join Date
    May 2007
    Posts
    4

    Default

    nm
    Last edited by Epik; 05-29-2007 at 05:13:55 AM.

  4. #4
    Join Date
    Oct 2006
    Posts
    97

    Default

    ok you must use reverse joker values almost every game uses them

    and 0x09b64014 is waaaaaaaay outside usermemory so thats not right joker address.
    Code:
    # we can start arround the address 0x000a5000 for this
    # these next 2 lines load the value from the joker address
    000a5000:
    lui at, $0012
    lh a0, $3456(at)
    # next we use a value to compare it to
    addiu a1, zero, $FFEF
    # next we compare if equal
    beq a0, a1,  XXXXXXX
    nop #branch delay slot
    # DO what you want to here when the buttons pressed
    #take this line and change the address of XXXXXXX to the line after you have finished your Equals code
    #maybe do more comparisons
    #exit
    jr ra
    nop
    you may have to preserve registers
    and for a hook just create a J(not a jal) to 0x000a5000 and add it to the jr ra of padread or pad2read. if you make any inside function calls you must subtract from the stack and stoer the RA to the stack then load the RA at the end then add to the stack and return

  5. #5
    Join Date
    May 2007
    Posts
    4

    Default

    thanks that helped a Lot.
    Basically i need to find the joker address, correct? Ive been using 0xD0000000 for jokers for all my games (for the psp) which seems to work so far, except for the recent games that have come out. They either take a long time to take effect or they dont work at all

  6. #6
    Join Date
    Oct 2006
    Posts
    97

    Default

    well if this is for the psp well then maybe it is in the right memory range i dont hack for psps and maybe the buttons values will work

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Custom Engine Loader Tool
    By Gtlcpimp in forum Research & Development
    Replies: 11
    Last Post: 11-21-2010, 07:22:35 PM
  2. Do It Yourself GAMEBOY Flash Cartridge - Custom Electronics
    By Gerry_MAN in forum Research & Development
    Replies: 2
    Last Post: 10-12-2010, 09:40:08 PM
  3. PS2: Create Custom Subroutines
    By GameMasterZer0 in forum School of Hacking
    Replies: 2
    Last Post: 09-19-2006, 12:55:21 AM
Collapse this box.

Visitors found this page by searching for:

ps2 subroutine lh

ps2 custom subroutines

subroutine joker

Posting Permissions

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