The Basics of Wii Cheat Codes & the Gecko Code Handler
#11
(08-11-2018, 03:23 AM)420 Matt Wrote: I have a question regarding the C2 codetype. So do I need to end every C2 code with "60000000 00000000"? Or can I put the default RAM value for the first part of the last line? I know most C2 codes end in 60000000, but I have seen some ASM codes that don't end like that. EG: Bully's Invincibility hack.

All C2 codes end in 00000000. If there are an odd number of instructions, the final line of the code will be the last instruction and 00000000.

Example:

li r0, 0

C2000000 00000001
38000000 00000000

If there are an even number of instructions in the code, the final line of the code will be 60000000 00000000.

Example:

li r0, 0
li r0, 1

C2000000 00000002
38000000 38000001
60000000 00000000

This is done because the code handler replaces the 00000000 with a branch instruction going back to the next instruction you left off at. The nop is just a filler to properly align everything in memory, all it does is wait one CPU cycle (do nothing).

However, the ASM <-> WiiRD Converter will handle all of this for you.
Reply


Messages In This Thread
RE: Simplified MKW Cheat Code Documentation - by Star - 08-11-2018, 03:44 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)