Rendered from lab/sessions/session41/README.md in the repository.
With Fred's yes.
- Read the block back. Stage B, read-only. The block Datel's routine wrote in session 40 matched the reconstruction exactly:
- trampoline at +0x20 (Datel's first one);
- Datel's engine at +0x400;
- the master code (C4000430 00008401) and both codes at +0x9C0, with the rest blank.
- Launched the live engine.
duo_live.py launch --game AXVE --rev 2 --write-block --yeswrote the block with the live engine at +0x400, then started Ruby USA rev 2. - First try (19:59):
peekread the game's header ("POKEMON RUBYAXVE01") from the running game. That was the first read of a running game's memory over USB. The next command's first request then timed out on write, and so did a retry. Fred switched off before we could see the game's state. - Back in server mode: HELLO also timed out, until the lab runner cleared one packet left over from the stuck session. The launch commands (duo_live, duo_codes) now clear leftovers the same way (MaxDuo.connect).
- Second try (20:05):
linktest 90made one 8-byte read every 0.2 s through the intro, the title screen and loading the save. Result: 404 out of 404. - Read the party.
duo_live.py partyread it from the running game in 1.4 s: 2 Pokémon, with species, level, HP, nature, IVs and EVs.
Still open: what stopped the first try. Candidates are a reply left over from peek that blocked the
chip, or the engine's state after a PC read timed out. Next time, run a long linktest while doing things
in the game (battle, menus, saving).
While Fred played (20:10-20:23)
- Link test: about 8 minutes at one read every 0.2 s, with no failures.
- Battle read:
duo_live.py battlein a trainer battle showed the opponent's Zigzagoon: Lv 4, Lax, IVs all 0 (right for early trainers). This confirms Ruby's gEnemyParty at 0x030045C0. - Soak: 5 minutes of party reads every 3 s.
- 71 reads out of 71, 5,491 requests, no failures. Median read time 1.29 s, the longest 1.67 s.
- It logged HP changes, Jirachi reaching Lv 8, a newly caught Zigzagoon, and Treecko being revived.
- At 20:21:01 one read showed a Lv 7 Zigzagoon in slot 1, and the next read had Jirachi back. Fred says this was the Wally battle. In that tutorial the game lends the player Wally's Zigzagoon (Lv 7) by putting it in the party for the fight. So the read was correct.