MAX DUO Pokémon Toolkit GitHub

Home / How it works

The link port and the games' link layers

Every link feature has the DUO's GBA play the other side of a link the game already knows. The game sees nothing unusual: the same bytes, at the same moments, as a friend's GBA, an e-Reader or an adapter would send.

Layer What it is Used by
Serial modes Normal (SI/SO, clocked), Multi-Player (up to four GBAs, SD line), JOY Bus (GameCube), general-purpose everything
link.c the games' cable link: link players, blocks of up to 200 bytes, command words each frame, the lockstep trades, Record Mixing, battles, Blender, Contest
The e-Reader protocol Mystery Event's handshake and data, as Ruby expects it Mystery Event
librfu the Wireless Adapter library: Sio32ID, adapter commands at 2 MHz, NI and UNI data Mystery Gift, Union Room, over the air
link_rfu_2.c the games' wireless link on top of librfu: player IDs, blocks, standby, close Union Room, friend gift, distributor
Multiboot the BIOS's transfer, driven by Nintendo's multiboot library Berry Fix, GameCube gifts, save explorer

Every program is written from pret's decompilations (pokeruby, pokeemerald, pokefirered) and GBATEK, function for function where it matters, and tests/source_anchors.py checks the citations. The rule since 18 November: do it exactly as the original hardware did, no guessing - anything the sources don't settle is measured first.

Sources by feature: docs/CONNECTIVITY_SOURCES.md.