11-10-2024, 05:39 AM
Got any code format CBv7 and others?
|
I found this in an old PS2 hacking guide:
Playstation 2 Code Types - Courtesy hellion Note that all the code types below are in RAW form. RAW codes must be encrypted to work on the Gameshark™ for Playstation 2. 8-bit Constant Write This command will constantly write the value specified by dd to the address specified by aaaaaaa. 0aaaaaaa 000000dd 16-bit Constant Write This command will constantly write the value specified by dddd to the address specified by aaaaaaa. 1aaaaaaa 0000dddd 32-bit Constant Write This command will constantly write the value specified by dddddddd to the address specified by aaaaaaa. 2aaaaaaa dddddddd Increment/Decrement Commands 8-bit Increment This command adds the value specified by nn to the value stored at the address aaaaaaaa. 301000nn aaaaaaaa 8-bit Decrement This command subtracts the value specified by nn to the value stored at the address aaaaaaaa. 302000nn aaaaaaaa 16-bit Increment This command adds the value specified by nnnn to the value stored at the address aaaaaaaa. 3030nnnn aaaaaaaa 16-bit Decrement This command subtracts the value specified by nnnn to the value stored at the address aaaaaaaa. 3040nnnn aaaaaaaa 32-bit Increment This command adds the value specified by nnnnnnnn to the value stored at the address aaaaaaaa. 30500000 aaaaaaaa nnnnnnnn 00000000 32-bit Decrement This command subtracts the value specified by nnnnnnnn to the value stored at the address aaaaaaaa. 30600000 aaaaaaaa nnnnnnnn 00000000 Test Commands 16-bit Equal Only when the value at the address specified by aaaaaaa is equal to the value specified by dddd will the next line of code be executed. Daaaaaaa 0000dddd 16-bit Not Equal Only when the value at the address specified by aaaaaaa is not equal to the value specified by dddd will the next line of code be executed. Daaaaaaa 0010dddd 16-bit Less Than Only when the value at the address specified by aaaaaaa is less than the value specified by dddd will the next line of code be executed. Daaaaaaa 0020dddd 16-bit Greater Than Only when the value at the address specified by aaaaaaa is greater than the value specified by dddd will the next line of code be executed. Daaaaaaa 0030dddd 16-bit Equal : Multiple Skip Only when the value at the address specified by aaaaaaa is equal to the value specified by dddd will the next nnn lines of code be executed. Otherwise, they will be skipped. Ennndddd 0aaaaaaa 16-bit Not Equal : Multiple Skip Only when the value at the address specified by aaaaaaa is not equal to the value specified by dddd will the next nnn lines of code be executed. Otherwise, they will be skipped. Ennndddd 1aaaaaaa 16-bit Less Than : Multiple Skip Only when the value at the address specified by aaaaaaa is less than the value specified by dddd will the next nnn lines of code be executed. Otherwise, they will be skipped. Ennndddd 2aaaaaaa 16-bit Greater Than : Multiple Skip Only when the value at the address specified by aaaaaaa is greater than the value specified by dddd will the next nnn lines of code be executed. Otherwise, they will be skipped. Ennndddd 3aaaaaaa Miscellaneous Commands Copy Bytes (GS2 v2.0 or higher) a = Address to copy from b = Address to copy to n = Number of bytes to copy 5aaaaaaa nnnnnnnn bbbbbbbb 00000000 32-bit Multi-Address Write Starting with the address specified by aaaaaaa, this code will write to xxxx addresses. The next address is determined by incrementing the current address by (yyyy * 4). The value specified by dddddddd is written to each calculated address. Also known as a "Patch Code." 4aaaaaaa xxxxyyyy dddddddd 00000000
11-13-2024, 03:04 AM
(11-10-2024, 08:19 PM)Rebel521 Wrote: I found this in an old PS2 hacking guide: no 8-bit test command ?
11-13-2024, 08:45 PM
(11-13-2024, 03:04 AM)zeronirvada Wrote: no 8-bit test command ? I don't remember ever using (or seeing) 8 bit D type codes. I found this; see if it helps: "Do multi-lines if conditional" 16-bit test D-aaaaaaa nnt0vvvv 8-bit test D-aaaaaaa nnt100vv a = address (25 bits) n = number of lines to execute (8 bits) t = test condition (3 bits) 0 equal 1 not equal 2 less than 3 greater than 4 NAND 5 AND 6 NOR 7 OR v = value (8/16 bits) Compares value at address @a to value @v, and executes next @n code lines only if the test condition @t is true. Note: If @n is 0, it is internally set to 1 for compatibility. |
« Next Oldest | Next Newest »
|
Users browsing this thread: 1 Guest(s)