MAX DUO Pokémon Toolkit GitHub

Home / Features

The GameCube side, recreated

In progress

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

(virtual) GameCubeJOY Bus master:always speaks first GBAthe disc's program+ your Pokémon game 1 reset 2 read: the GBA's ID ("TEST", or the game code) 3 write: the key 4 write: a command (0xAA, 0x99, 0x55...) 5 the answer, then data a word per read

Every exchange is a session: a JOY reset, the GameCube reads the GBA's ID, writes a key, then a command.

  • XD's trade: 0xAA status, 0x99 streams a 632-byte snapshot (trainer, ID, six Pokémon), 0x55 writes a Pokémon into a party slot, 0x44 lets the game's own save routine run in two halves.
  • Pokémon Box: one reset, the game code, a key; 0xAA streams the save (SaveBlock2, SaveBlock1, the PC boxes), 0xCC writes into it, 0xEE saves into the other half of the flash and 0x99 commits the last signature byte - the game's two-phase link save. Without the commit, the game treats the new save as damaged.
  • The battles: 0x77 rules, 0x88 a 1920-byte block that opens "Please select 3 POKéMON", the order kept as six nibbles, 0x66/0x55 the 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.