MAX DUO Pokémon Toolkit GitHub

Home / Library

Technical library

The toolkit's working notes, exactly as they live in the repository's docs/ folder, rendered here so they are searchable and linkable. They are the primary record: when a feature page and a note disagree, the note (and the lab session it cites) wins. For the short version, start with Findings, addresses and methods.

Note What it covers
Repository README The MAX DUO was only ever able to back up DS saves, and Datel's drivers stopped working long ago. This project gives it a second life. One small firmware update for the DUO works w…
Virtual DUO (design) The emulated DUO: its C core, the mGBA hooks and the rehearsals against real games.
Save generator Making a fresh save and test states from a ROM alone, written by the game's own code.
Test suite What the test suite covers and how to run it.
Probes and analysers The tools for studying the DUO itself: register and firmware scanners, a USB capture decoder, and session 32's probes.
Reverse-engineering helpers The offline disassembly helpers used on Datel's firmware and PC program.
Firmware builds How the Reckless firmware is built from Datel's update, stage by stage, and what the tests check.
How It Works This is the plain-English tour. The details live in HARDWARE.md, PROTOCOL.md and FINDINGS.md.
Hardware As far as we could find, this is the first published teardown of the Action Replay MAX DUO. The board is marked REF1662. The chip identities come from photos; the behaviour comes f…
Registers What the MAX DUO's control area holds, worked out offline from the way Datel's own firmware 1.06 uses it, and where things live inside that firmware. It complements HARDWARE.md (th…
Ar Engine Worked out offline from Datel's firmware 1.06 (your own copy; addresses only, no code reproduced) with tools/probes/fwregscan.py, fwmap.py and disassembly, and checked against what…
Codes The DUO's own menu can start a game with codes, but typing them in on the GBA is slow and the DUO arrives with none. duocodes.py does the same job from the PC: paste codes into a t…
Ruby Codes These five codes came out of mapping the MAX DUO and Datel's code engine, using pret's decompilation for the exact addresses. The big public code lists have Day-Care codes, and ROM…
Live View Plan
Simulator Accuracy The simulator (virtual/core/duocore.c, driven by tests/hwsim.py and the Virtual DUO) is only as good as the hardware facts behind it. This page keeps score: every behaviour, where …
Protocol This was worked out from Datel's 2005 PC program (NintendoDSMaxDrive.exe) and from Datel's firmware, read offline. Nothing was learned by sending unknown commands to the device.
Findings Everything here was measured on one real DUO in October 2026, using read-only lab scripts (maxduosaves.py --lab script ...) and photos of the board. The scripts and the complete ou…
DUO Resources This page answers one question: are we using everything the Action Replay MAX DUO offers? It covers the GBA's RAM, the DUO's own flash, the USB link, and the parts the toolkit does…
Multiboot 1. Link-cable multiboot, GBA to GBA (Normal or Multi-Player mode). The sending GBA runs Nintendo's multiboot library: a handshake written in C, then the BIOS's own transfer, SWI 25…
Multiboot Catalogue Hashes only, no Nintendo data. Use this to check your own extraction. Regenerate it with python tools/gcdisc/catalogue.py extracted > docs/MULTIBOOTCATALOGUE.md (see GAMECUBE_MULTI…
Wireless When the main menu opens, the game calls IsWirelessAdapterConnected(). That resets the adapter and runs librfu's Sio32ID exchange:
Wireless Host Plan: docs/WIRELESSHOST.md.
Gamecube Multiboot This page is for anyone who wants to know what the Pokémon GameCube discs send to a Game Boy Advance over the GameCube–GBA cable, how they send it, and how to run those programs wi…
CISO Multiboot Progress (Whether the disc reads it, and what it then shows - "Look at the TV screen." is in the image but unused here - is for the main.dol step.) - What this means for the DUO (conclusion…
Colosseum Bonus Disc Both are .ciso images (the Dolphin/WIT compact format, 2 MiB blocks). tools/gamecubedisc.py (21 November) reads them on Fred's PC: it lists files, opens the embedded .tgc disc and …
Trade Decided on 31 October: every Gen 3 Pokémon goes by trade (docs/PK3EVENTS.md). The DUO's GBA plays the second player in a Pokémon Center's Cable Club Trade Center, over the GBA link…
Battle Asked for on 5 November as part of using every service upstairs in the Pokémon Centre (ROADMAP Stage 11). The user's choices: the DUO's team is a set of .pk3 files; it plays at thr…
Multi The last kinds of link battle: battles with four battlers on the field. They split by how many GBAs the game expects on the cable, which decides how hard each is. Sources: pret's p…
Four Players Fred asked for a wide look. Here are the approaches, each judged on what it needs, what we know, and how likely it is to work.
Union Room The Mystery Gift distributor (firmware/programs/adapter.c, WIRELESS.md, DISTRIBUTOR.md) already does most of the wireless plumbing, working on hardware with Japanese Emerald and Le…
Record Mixing This reads pokeruby and pokeemerald to see how the DUO can sit in a Record Corner as the other player and hand the game Secret Bases, so that the game merges them and saves them it…
Record Formats Sources: pokeemerald src/recordmixing.c (the record and the order the game takes its parts in), include/global.h, include/global.tv.h, include/constants/tv.h, include/battletower.h…
Record Workshop The Secret Base Workshop (secretbaseworkshop.html) grows into a Record Workshop: one page, still a single file that works offline and on GitHub Pages, with a tab for each part of a…
SB3 Format .pk3, .wc3 and .me3 files all hold the game's own structure, byte for byte, with no header or wrapper of their own. A .pk3 is the 80 or 100 bytes of a Pokémon as the game stores it…
PK3 Events Stage 9's first step (31 October 2026). The goal (docs/ROADMAP.md) asks for each file to go by the route it originally came by, wherever that route leaves the game to save it itsel…
Gifts This page goes from "I have these discs and cartridges" to "the Jirachi is on my Ruby", using the Action Replay MAX DUO as the sending GBA. The research behind it is in GAMECUBE_MU…
Distributor This is a working plan, written from the Emerald decompilation (pret/pokeemerald) and the notes of others who have taken GBA wireless apart. It's for the step after the adapter's c…
e-Reader Roadmap Stage 3. This describes, in our own words, how Ruby and Sapphire (and Japanese Emerald) receive a Mystery Event, as read from pret/pokeruby (src/link.c, src/mysteryeventmen…
Blender The DUO blends berries with you at a link Berry Blender in Ruby, Sapphire or Emerald: it puts in a berry of its own, presses A as its arrow passes, answers "blend another berry?", …
Contest The DUO enters a Pokémon of its own (a .pk3) in Emerald's link Contest against yours. The game works out the contest, as the leader of a link contest always does; the DUO's Pokémon…
Direct Corner 1. The group. One player becomes the leader (pret:pokeemerald/src/unionroom.c:389 TaskTryBecomeLinkLeader: hosting, ACTIVITYTRADE etc. in its broadcast, not INUNIONROOM); the other…
Unlocking A game won't offer MYSTERY GIFT or MYSTERY EVENT on its title menu until you've told someone in the game a secret phrase. The phrase is four words from the game's easy chat word li…
Compatibility Status words:
Connectivity Sources The rule (17 November, Fred): every connectivity routine starts from the games' own source, and that source is built into the simulator. This page lists each routine, the source it…
Hardware Queue Everything the simulator has passed but a real GBA hasn't seen yet, in one list (11 November 2026). There's also a page to tick them off at the console: the "DUO Hardware Checklist…
Roadmap Each stage builds on the last. The cheapest and most useful steps come first. Every stage goes through the simulator (with a planted bug for each new behaviour) before it touches r…
History The whole project took five days, 21–25 October 2026. Here's the story, including the parts that went wrong, because those taught the most.