Announcement

Collapse
No announcement yet.

Help Writing a Custom Subroutine

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Help Writing a Custom Subroutine

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

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

    Comment


    • #3
      nm
      Last edited by Epik; 05-29-2007, 04:13:55 AM.

      Comment


      • #4
        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

        Comment


        • #5
          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

          Comment


          • #6
            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

            Comment

            Working...
            X