Dolphin, the GameCube and Wii emulator - Forums

Full Version: Dolphin doesn't properly handle the 82 and 84 Gecko Code Types
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,
been creating some Gecko Codes for Wii Sports Resort PAL/EUR.
All codes that utilize the "Load into Gecko Register [82]" and "Store Gecko Register at [84]" don't seem to work properly. 
For some reason the 84 Code Type ALWAYS stores the 32-bit value from 0x80000000 (game serial) at where it should write the value inside of Gecko Register 0.
The following code teleports the Mii's head on the golf ball by loading each coordinate from the golf ball and storing it at the head's coordinates.
Works flawlessly on a real Wii. But with Dolphin I only see the head is gone (the game handles the Serial as float).


82200000 80CFC0A0 //loads ball's x-coordinate into Gecko Register 0
84200000 80D1E8C8 //stores ball's x-coordinate at head's x-coordinate. Game Serial becomes written instead
82200000 80CFC0A4 //loads ball's y-coordinate into Gecko Register 0[/font][/size]
84200000 80D1E8D8 //stores ball's y-coordinate at head's y-coordinate. Game Serial becomes written instead
82200000 80CFC0A8 //loads ball's z-coordinate into Gecko Register 0[/font][/size]
84200000 80D1E8E8 //stores ball's z-coordinate at head's z-coordinate. Game Serial becomes written instead


[attachment=18127]
1: The Serial
2: Which values should be loaded
3: Where the values should be stored at (but the serial becomes stored there)

Could it be the Gecko Codehandler is improperly implemented?