EverEffects
Administrator
Posts : 805 1337ness : 25 Join date : 2010-10-31 Age : 31 Location : Oklahoma CIty
| Subject: Advance Packet data Wed Nov 10, 2010 4:29 am | |
| Hello Guest, welcome to a Advance tutorial over psp Packet data. I wrote this awhile back when i was learning about all this ****. Big help to Hokage and Poorkingz. This tutorial is written on Socom ftb2 1.6 patch. Some packet info: - Code:
-
FNC 0x088EE67C: A function used to send some (not all) kinds of packets Params: a0, a1, a2, a3, t0, t1, t2 a0: A pointer; usually 0x08D044D8. Other values might freeze you. a1: A byte; usually 0x40. Other values will boot others. a2: A word; usually 0xFFFFFFFF or an above zero number. Might be related to priority. a3: A byte. This tells others what kind of packet you are sending (such as vote, taunt, or shoot). t0: A half-word. Size of packet data. Incorrect values for size will boot others. (Probably to prevent overflows.) t1: A pointer. Points to the data that will be sent to others. t2: A boolean. Not sure what this is for. Correct params to send Spectator Ejected packet: - Code:
-
a0: 0x08D044D8 a1: 0x00000040 a2: 0xFFFFFFFF a3: 0x00000008 t0: 0x00000004 t1: A pointer. Nothing seems to be read from it. Can point to anything. t2: True. Any non-zero number. FNC 0x0890223C: Receiving Template: - Code:
-
#Spectator Ejected packet 0x07d00000 0x27bdfff0 ; addiu sp, sp, -0x10 //we only need 0x8 bytes but it's protocol to round up to nearest 0x10 0x07d00004 0xafb00000; sw s0, $0000(sp) //we save any s registers we use 0x07d00008 0xafbf0004; sw ra, $0004(sp) //we save ra when we use a jal in the function 0x07d0000c 0x3c0408d0; lui a0, $08d0 0x07d00010 0x248444d8; addiu a0, a0, $44d8 //a0 set for sending 0x07d00014 0x34050040; ori a1, zero, $0040 //a1 set for sending 0x07d00018 0x2406ffff; addiu a2, zero, $ffff //a2 set for sending 0x07d0001c 0x34070008; ori a3, zero, $0008 //a3 set for sending 0x07d00020 0x34080004; ori t0, zero, $0004 //t0 set for sending 0x07d00024 0x3c100880; lui s0, $0880 0x07d00028 0x26100000; addiu s0, s0, $0000 //pointer for sending and receiving functions (needs to be in a saved register because it's used after a jal) 0x07d0002c 0x02004821; addu t1, s0, zero //t1 set for sending 0x07d00030 0x0e23b99f; jal $088ee67c // Send packet function 0x07d00034 0x340a0001; ori t2, zero, $0001 //t2 set for sending (takes advantage of jump delay) 0x07d00038 0x0e24088f; jal $0890223c // Receive Spectator Ejected function (so we can see spectator ejected too) 0x07d0003c 0x02003821; addu a3, s0, zero //not needed for spectator, but needed for most other packets 0x07d00040 0x8fb00000; lw s0, $0000(sp) 0x07d00044 0x8fbf0004; lw ra, $0004(sp) 0x07d00048 0x03e00008; jr ra //end 0x07d0004c 0x27bd0010; addiu sp, sp, $0010 //pop stack Hook goes here
I hope this helps anyone working with functions or stacks. Don't post this ANYWHERE else without my permission. I never did test the code, but it should work. -Tutorial brought to you by MiLk coders- -WarCrazy-
|
|
Architect Site Poster
Posts : 139 1337ness : 12 Join date : 2010-10-15 Age : 29
| Subject: Re: Advance Packet data Wed Nov 10, 2010 5:28 am | |
| i basically gave up on MIPS i found it useless, i learned some stuff but i gave up. idk if its worth continuing.i stopped on learning stack |
|
EverEffects
Administrator
Posts : 805 1337ness : 25 Join date : 2010-10-31 Age : 31 Location : Oklahoma CIty
| Subject: Re: Advance Packet data Wed Nov 10, 2010 1:46 pm | |
| Its not worth it. It took me about 3 years to become '1337' and that was just a waist of breathe. |
|
SwoRNLeaDejZ
Administrator
Posts : 2120 1337ness : 140 Join date : 2010-09-17 Age : 38 Location : Massachusetts
| Subject: Re: Advance Packet data Wed Nov 10, 2010 3:08 pm | |
| lol, but in reality WC is a genius when it comes to MIPS, this is acutally extremely helpful, rep+ for this one.
im about to try out the code, ill post the results. |
|
DeToX Newbie
Posts : 26 1337ness : 1 Join date : 2011-08-06
| Subject: Re: Advance Packet data Tue Aug 09, 2011 9:18 pm | |
| |
|
JZydex Finest
Posts : 495 1337ness : 3 Join date : 2011-03-19 Age : 28 Location : salinas ca.
| Subject: Re: Advance Packet data Tue Aug 09, 2011 9:31 pm | |
| Hello JZydex and nice rep + |
|
Sponsored content
| Subject: Re: Advance Packet data | |
| |
|