How to make Nintendo GameCube and Wii emulator option – example 1.
For example, consider Dolphin 3.5-419 EmuCR
http://www.emucr.com/2013/02/dolphin-git-35-419.html
Memory map: http://wiibrew.org/wiki/Memory_Map
We'll find a zero address using the built-in memory editor (memory viewer).
80000000-817FFFFFF (24Mb) is GameCube WorkRAM, also is first Wii memory block
90000000-93FFFFFFF (64Mb) is second Wii memory block
Attention! Emulator "Dolphin" uses reverse bytes order
Also following emulators uses reversed bytes order:
3DO – FreeDO, FourDO
Sega Saturn - SSF
Genesis/Megadrive – Kega Fusion, Gens Movie 11a/11b, and multisystem emulator Mednafen in Genesis/SMD emulation mode
ArtMoney can select emulator options automatically when loading of ArtMoney table. You can view MD5 file hash in "Process Information" window.
Start the Dolphin emulator. Next, open the Process Information and check MD5 hash

Now close the Dolphin emulator, and create a shortcut to the startup file (Dolphin.exe), run by a key -d (with debugger)

Now run the emulator through this shortcut, and start emulation of any GameCube/Wii game.
Open up your memory window in debugger.

We are interested in address 80000000. Set value 1AAB2F2B to this address. Exact value search (value at address 08000000 is 1AAB2F2Bh), type reverse integer 4 byte.

This result is a zero address of emulation (in this case it is 10020000h). Next, run the search for pointer to the zero address with a module addressing - note “Use module addressing” and “Scan only static addressess in modules”when searching.:

We get pointer in the Dolphin.EXE module. We need address in module:

As a result, we obtain the GameCube emulator option:
Dolphin 3.5-419 EmuCR;Dolphin.exe;R;93824fba9aede09c72134d5d4b7d4f b2
;RAM 24Mb;80000000;DOLPHIN.EXE+P045D2DEC;1800000
If we add to this module address offset -8 bytes, we get a module address for second memory block (90000000)
045D2DEC-8h=045D2DE4
As a result, we obtain the Wii emulator option:
Dolphin 3.5-419 EmuCR;Dolphin.exe;R;93824fba9aede09c72134d5d4b7d4f b2
;MEM1 24Mb;80000000;DOLPHIN.EXE+P045D2DEC;1800000
;MEM2 64Mb;90000000;DOLPHIN.EXE+P045D2DE4;4000000
Sonic the Hedgehog 4 Episode 1 (PAL) Wii:
For example, consider Dolphin 3.5-419 EmuCR
http://www.emucr.com/2013/02/dolphin-git-35-419.html
Memory map: http://wiibrew.org/wiki/Memory_Map
We'll find a zero address using the built-in memory editor (memory viewer).
80000000-817FFFFFF (24Mb) is GameCube WorkRAM, also is first Wii memory block
90000000-93FFFFFFF (64Mb) is second Wii memory block
Attention! Emulator "Dolphin" uses reverse bytes order
Also following emulators uses reversed bytes order:
3DO – FreeDO, FourDO
Sega Saturn - SSF
Genesis/Megadrive – Kega Fusion, Gens Movie 11a/11b, and multisystem emulator Mednafen in Genesis/SMD emulation mode
ArtMoney can select emulator options automatically when loading of ArtMoney table. You can view MD5 file hash in "Process Information" window.
Start the Dolphin emulator. Next, open the Process Information and check MD5 hash

Now close the Dolphin emulator, and create a shortcut to the startup file (Dolphin.exe), run by a key -d (with debugger)

Now run the emulator through this shortcut, and start emulation of any GameCube/Wii game.
Open up your memory window in debugger.

We are interested in address 80000000. Set value 1AAB2F2B to this address. Exact value search (value at address 08000000 is 1AAB2F2Bh), type reverse integer 4 byte.

This result is a zero address of emulation (in this case it is 10020000h). Next, run the search for pointer to the zero address with a module addressing - note “Use module addressing” and “Scan only static addressess in modules”when searching.:

We get pointer in the Dolphin.EXE module. We need address in module:

As a result, we obtain the GameCube emulator option:
Dolphin 3.5-419 EmuCR;Dolphin.exe;R;93824fba9aede09c72134d5d4b7d4f b2
;RAM 24Mb;80000000;DOLPHIN.EXE+P045D2DEC;1800000
If we add to this module address offset -8 bytes, we get a module address for second memory block (90000000)
045D2DEC-8h=045D2DE4
As a result, we obtain the Wii emulator option:
Dolphin 3.5-419 EmuCR;Dolphin.exe;R;93824fba9aede09c72134d5d4b7d4f b2
;MEM1 24Mb;80000000;DOLPHIN.EXE+P045D2DEC;1800000
;MEM2 64Mb;90000000;DOLPHIN.EXE+P045D2DE4;4000000
Sonic the Hedgehog 4 Episode 1 (PAL) Wii:

dood
Comment