+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Feb 2008
    Location
    New York
    Posts
    3,114
    Points
    3,023,330.34
    Rep Power
    229

    Default subroutine help?

    ok, so i tryed subroutine-ing a gun mod it fails lol

    thats my code:
    Lui t0, $0083
    Lw t0, $FBE8(t0)
    Lui t1, $0079
    Lui t2, $0083
    Lw t2, $FBF0(t2)
    Lui t3, $0079

    and this is it in nitePR form(if thats wut its called =p)

    #Flamethrower subroutine
    0x00449BD0 0x0E2001C0
    0x00000700 0x3c080083
    0x00000704 0x8d08fbe8
    0x00000708 0x3c090079
    0x0000070C 0x3c0a0083
    0x00000710 0x8d4afbf0
    0x00000714 0x3c0b0079
    0x00000718 0x03e00008

    ------
    EDIT:

    Lui t0, $0083
    Lui t1, $FBE8
    Sw t1, $0079(t0)
    Lui t2, $0083
    Lui t3, $FBF0
    Sw t3, $0079(t2)

    #flamethrower subroutine
    0x00565f30 0x0E2001C0
    0x00000700 0x3c080083
    0x00000704 0x3c09fbe8
    0x00000708 0xad090079
    0x0000070C 0x3c0a0083
    0x00000710 0x3c0bfbf0
    0x00000714 0xad4b0079
    0x00000718 0x03e00008
    Last edited by Scruffy120; 08-22-2008 at 10:35 PM.

  2. #2
    Join Date
    Jan 2008
    Location
    Your mom's fresh shaven Cun+.
    Posts
    2,598
    Points
    3,736,096.43
    Rep Power
    226

    Default

    for one doesn't look like u used real where u should have, a few wrong opcodes as well :s and u also failed to relink to your hook





  3. #3
    Join Date
    Feb 2008
    Location
    New York
    Posts
    3,114
    Points
    3,023,330.34
    Rep Power
    229

    Default

    Quote Originally Posted by xWhite_Shadowx View Post
    for one doesn't look like u used real where u should have, a few wrong opcodes as well :s and u also failed to relink to your hook
    fixed the opcode, but the hook is fine?

    EDIT: i didnt get it =[
    Last edited by Scruffy120; 08-22-2008 at 10:34 PM.

  4. #4
    Join Date
    Jan 2008
    Location
    PA
    Posts
    1,164
    Points
    4,217,167.25
    Rep Power
    222

    Default

    what wussy means is u didnt use real addressing u used nitepr format


    Get Vip: »Here«
    Donate: »Here«
    >>List of Compilers<<
    >>SFDM Name Generator<<
    [Owner Of FluidCoding]

  5. #5
    Join Date
    Feb 2008
    Location
    New York
    Posts
    3,114
    Points
    3,023,330.34
    Rep Power
    229

    Default

    o, ok ill fix it!

+ Reply to Thread

Posting Permissions

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