Where is the CWCheat documentation?
I found this:raing3.gshi.org/psp-utilities/page/PSP/CodeTypes
Explains:
0x0 Constant byte write
0x1 Constant halfword write
0x2 Constant word write
0x3 Increment/decrement
0x4 32-bit multi-write
0x5 Copy
0x7 Boolean operation
0xB Pause
0xC 32-bit conditional
0xD Conditional or button code
0xE Conditional multiskip
-------------------------
It seems like some are missing. The key missing one is the pointer code, I think it's 0x6. How does that one work?
-------------------------
Okay, I don't really understand the advanced 0x6 codes.
But as for the basic one, I found out about it here:
http://wikiwiki.jp/cwcheat/?CODE%A4%CE%B8%FA%B2%CC
Pointer codes w positive offset
8-bit
0x6aaaaaaa 0x000000vv
0x00000001 0xiiiiiiii
アドレスaaaaaaaに入ってる値を基準アドレスとし、値vvを基準アドレス-0x8800000+iiiiiiiiに書き込む
Using the value at address aaaaaaa as the base address, write value vv at base address - 0x8800000 PLUS [offset] iiiiiiii
16-bit
0x6aaaaaaa 0x0000vvvv
0x00010001 0xiiiiiiii
アドレスaaaaaaaに入ってる値を基準アドレスとし、値vvvvを基準アドレス-0x8800000+iiiiiiiiに書き込む
Using the value at address aaaaaaa as the base address, write value vvvv at base address - 0x8800000 PLUS [offset] iiiiiiii
32-bit
0x6aaaaaaa 0xvvvvvvvv
0x00020001 0xiiiiiiii
アドレスaaaaaaaに入ってる値を基準アドレスとし、値vvvvvvvvを基準アドレス-0x8800000+iiiiiiiiに書き込む
Using the value at address aaaaaaa as the base address, write value vvvvvvvv at base address - 0x8800000 PLUS [offset] iiiiiiii
Pointer codes w negative offset (in my experience these are less common)
8-bit
0x6aaaaaaa 0x000000vv
0x00030001 0xiiiiiiii
アドレスaaaaaaaに入ってる値を基準アドレスとし、値vvを基準アドレス-0x8800000-iiiiiiiiに書き込む
Using the value at address aaaaaaa as the base address, write value vv at base address - 0x8800000 MINUS [offset] iiiiiiii
16-bit
0x6aaaaaaa 0x0000vvvv
0x00040001 0xiiiiiiii
アドレスaaaaaaaに入ってる値を基準アドレスとし、値vvvvを基準アドレス-0x8800000-iiiiiiiiに書き込む
Using the value at address aaaaaaa as the base address, write value vvvv at base address - 0x8800000 MINUS [offset] iiiiiiii
32-bit
0x6aaaaaaa 0xvvvvvvvv
0x00050001 0xiiiiiiii
アドレスaaaaaaaに入ってる値を基準アドレスとし、値vvvvvvvvを基準アドレス-0x8800000-iiiiiiiiに書き込む
Using the value at address aaaaaaa as the base address, write value vvvvvvvv at base address - 0x8800000 MINUS [offset] iiiiiiii
--------------------------------------------
I found the 0x8 one too. 0x4 is 32-bit multi-write, well 0x8 is 8- or 16-bit multi write. It goes like
0x4aaaaaaa 0xnnnniiii
0xF000vvvv 0x0000jjjj
a = address
n = number of multi-write
i = see "F" explanation
F = flag. 0 for 8-bit multi-write, 1 for 16-bit. For 8-bit multi-write, i is the offset in bytes to add to the address for each subsequent multi-write
v = the first value to write
j = the increment to add to the value for each subsequent multi-write
-----------------------------------
For CWCheat, Is it possible to do multi-copy with just one code?