PDA

View Full Version : subroutine help?



Scruffy120
08-22-2008, 10:08 PM
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

xWhite_Shadowx
08-22-2008, 10:13 PM
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

Scruffy120
08-22-2008, 10:15 PM
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 =[

SonniE
08-26-2008, 06:34 AM
what wussy means is u didnt use real addressing u used nitepr format

Scruffy120
08-26-2008, 12:24 PM
o, ok ill fix it!