Rendered from lab/sessions/session40/README.md in the repository.
- Kept the code block. Read-only, with session 38's script. The DUO's 8 KB code block at 0x08020000 was saved to lab_results/ (gitignored). Its code list was empty: no codes had been stored there before.
- Launched. With Fred's yes:
python duo_codes.py launch codes_ruby.txt --game AXVE --rev 2 --write-block --yes. The codes were the master code (hook 0x08000430, from session 39), max money and max coins, in a 1,676-byte launch program. The DUO acknowledged command 0x23. - Result. Ruby (USA rev 2) started with the codes running. Fred checked in the game: money read 999,999. Datel's start-with-codes routine works when called from a Reckless RAM program, after Datel's engine has been copied into IWRAM by the launcher. That matches the emulator.
Next: read the block back (session 38's stage B script) to check it against the reconstruction in docs/AR_ENGINE.md.