Repository navigation
m0boy 0.10.30 — a shared code/data sweep on both CPU families, Sega firmwares build again
A static code/data sweep completes the play-guided recompilation on the Game Boy and the Sega cores, and the Sega firmware template builds again. Version française : README.fr.md.
- Shared code/data sweep (
code_scan): one driver classifies every byte of a ROM — padding, repeated patterns, pointer tables — then tries speculative courses of instructions: a course is code only when it reaches an unconditional terminator without an illegal opcode or an access to a nonexistent area; an access to known hardware counts the other way, as evidence of code (Game Boy MMIO/HRAM/RAM, the Sega PSG/VDP/controller ports). The SM83 adapter becomes the analyzer's single validator (pointer scan, cross-bank branch targets, the aggressive scan); the Z80 one runs in the Sega emitter through the runtime's ownz80_decode. - The Sega cores gain the aggressive scan: sweep-validated courses the recorded sessions never played compile while the flash budget lasts. Ristar (attract mode, no profile, large budget): 2,372 compiled instructions before, 156,225 now — 43,948 laid down by the sweep, the rest reached from them, 141 data zones (192 KB) kept out. Over a 600-frame session, interpreted instructions drop from 2.48 M to 0.43 M. With a player profile the budget still fills with the played code first; the sweep covers what the sessions never took.
- Game Boy: the per-window heuristic is gone, the sweep validates everywhere, and large never-decoded stretches become soft data zones (
data_zonediagnostics,--no-infer-data). Across five cartridges, analysisundefined instructionerrors drop 21–44 % (Pokémon 7,066 → 3,981) and the aggressive scan's phantom functions collapse (534,592 → 69,302 on Pokémon). - Fixed: the 0.10.29 Sega template carried an unterminated
#if(gg_main.cpp) — every streaming or card-backed Sega firmware failed to build since yesterday (Tails Adventure was the first report). - Correctness as the repo demands:
--meta-precisenative = interpreter (samerun_hash) on Super Mario Land and five real Sega cartridges; the Game Gear e2e (packed pool included) and the full test suite pass. - META runtime 0.10.30, Pokitto 0.10.24: rebuild your games (compile.sh does it on the next run).
The archivem0boy-0.10.30.zipis the repository tree at this tag (no ROMs, no built firmwares); it was validated by extracting it, building it withBUILD_TESTS=ONand running ctest.