GameCube games link to a GBA by sending it a program over the GameCube cable, then commanding it over the JOY Bus - the controller-port protocol, in which the GameCube always speaks first. The toolkit recreates the GameCube's half in the emulator: a virtual GameCube drives the real GBA programs extracted from your own discs, with your real ROMs and a copy of a save.
| Program | What the virtual GameCube does | Status |
|---|---|---|
| XD's trade program | reads the trainer and party; trades a Pokémon in, saved by the game's own code | Simulator emulator, regression test |
| Pokémon Box's program | reads all 14 boxes of a Ruby save; deposits a Pokémon, saved and committed by Box's own program | Simulator emulator, regression test |
| XD's battle program | the rules (single/double, how many to choose), the party selection screen, the chosen order, the opponent's team in three parts | In progress mapped |
| Colosseum's battle program | the same steps in the older build; the opponent's team arrives as 100-byte GBA-format Pokémon | In progress mapped; the turn exchange is open |
The protocol, as found
Every exchange is a session: a JOY reset, the GameCube reads the GBA's ID, writes a key, then a command.
- XD's trade:
0xAAstatus,0x99streams a 632-byte snapshot (trainer, ID, six Pokémon),0x55writes a Pokémon into a party slot,0x44lets the game's own save routine run in two halves. - Pokémon Box: one reset, the game code, a key;
0xAAstreams the save (SaveBlock2, SaveBlock1, the PC boxes),0xCCwrites into it,0xEEsaves into the other half of the flash and0x99commits the last signature byte - the game's two-phase link save. Without the commit, the game treats the new save as damaged. - The battles:
0x77rules,0x88a 1920-byte block that opens "Please select 3 POKéMON", the order kept as six nibbles,0x66/0x55the opponent's team.
Why not on hardware yet
The GBA's link port can only answer a GameCube in hardware, so the DUO can't play the GameCube on a cable as it is. Next: disassembling Colosseum's GameCube code for the battle exchange, recording a real Colosseum through the DUO once a GameCube-GBA cable (DOL-011) arrives, and a probe of whether timed code can make the DUO's GBA speak first on the JOY Bus.
Detail: docs/GAMECUBE_MULTIBOOT.md.