I'll try to read this code even though I don't know PSP Hacking.
As far as I see, CWCheat lacks an end and end if instruction because if it had them, there would be no reason to write two separate codes. But even so, the activator line is telling it how many lines to run, so in a way it is using some kind of "end". What if you wrote the code like this?:
Could you test that? In a way it is doing as the code type said, which is "Checks if (ctrl & XXXXXXX) == XXXXXXX. If not, the next YY+1 lines are not executed (ie. execution status is set to false for YY+1 lines)." And 0xD0000000+1 will give us only one line to write on when that button is pressed which is good, no? So everything after that 2nd line would not get effected when Triangle+Up is pressed (or that's at least how I interpreted it, heh).
Sadly, I don't even have PSP hacking tools. Registers as in ASM? "jalr" is probably an ASM instruction. Not so sure about that one since I've never seen it in the ARM Assembly Instruction Set. 
Edit: Merged post 14 and 15 since post 14 was a bit short.
Code:
//I'll take it that the '3' at the end of the 0x0D code type means this code will run for YY+1 (03+1 (those 4 lines)) when those button combos are pressed _C1 Infinite Movement [Select + Left = On] _L 0xD0000003 0x10000081 //that 1 is just there because of how the code type is set up, and 0x81 = (Select=1 + Left=80), so if Select+Left is pressed _L 0x806755D0 0x003E0068 //it'll run the following lines _L [B][COLOR=#FF0000]0x0000000C 0x00000000[/COLOR][/B] //but what is this third line doing? Looks different than the other line in the other code to turn it off _L 0x80675600 0x003E0068 _L [B][COLOR=#FF0000]0x00000000 0x00000000[/COLOR][/B] //and those last lines seem to stick out _C1 Infinite Movement [Select + Right = Off] _L 0xD0000003 0x10000021 _L 0x806755D0 0x003E0068 _L [B][COLOR=#FF0000]0x00000004 0x00000000[/COLOR][/B] _L 0x80675600 0x003E0068 _L [B][COLOR=#FF0000]0x00000001 0x00000000[/COLOR][/B]
Code:
_C0 Game Speed Modifier Triangle+Up=Enable, Triangle+Down=Disable _L 0xD0000000 0x10001010 //run one line of coding after this line if Triangle+Up is pressed _L 0x003F2BD0 0x00000000 //the value you used to enable the code _L 0xD0000000 0x10001040 //run one more line if Triangle+Down is pressed _L 0x003F2BD0 0xYYYYYYYY //original value (value to disable the code)
Originally posted by St3ph
View Post

Edit: Merged post 14 and 15 since post 14 was a bit short.


Comment