eg. patching gx.a ver of GXSetCopyFilter (9123800098838000
9143800041820068) at a certain mem address:
28XXXXXX 0000
9143 //
if half-word at mem address 0x80
XXXXXX =
9143
06XXXXXX 000000
08 //
write to mem address 0x80
XXXXXX the following
8 bytes
91438000 48000068 // replacement GXSetCopyFilter 8 bytes
e0000000 80008000 // end of code
eg. patching a vfilter string
08080A0C0A0808 at a certain address
28XXXXXX 0000
0808 //
if half-word at mem address 0x80
XXXXXX =
0808
06XXXXXX 000000
07 //
write to mem address 0x80
XXXXXX the following
7 bytes
00001516 15000000 // replacement vfilter 7 bytes (no filter)
e0000000 80008000 // end of code
For some games you might also need to add a second copy of the code with a different
mask for the first line:
eg. replace
28XXXXXX 0000
0808
with
28XXXXXX F7F7
0808
where F7F7 is the mathematical result of FFFF -
0808 (eg. use Windows calculator in hex mode).
The mem address 0x80
XXXXXX can be discovered using Dolphin emulator in debug mode:
- Config > interface tab > show debugging UI
- View > memory
- Launch game (play button)
- Pause game
- Memory window > Hex radio button
- Memory window > paste eg. 9143800041820068 into Value > find next
- Keep clicking find next until finding the one at mem address starting with 80 (physical memory range is 0x80XXXXXX).
Paste your completed code(s) into
https://mkwii.com/gct/ to generate .gct file.
Copy .gct file to:
SD:\codes\XXXXXX.gct
USB:\codes\XXXXXX.gct
Where XXXXXX = game ID (
https://www.gametdb.com/titles.txt)
In ULGX / Nintendont, enable Ocarina / Cheats.