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
Read more:
http://www.bullywiihacks.com/t3588-ps2-code-types#ixzz3abjLaq8F