Skip to content

Releases

m0boy 0.10.53 — Mega Drive : YM2612 deux fois moins cher, SRAM cartouche, Sonic 3 sur PC

Choose a tag to compare

@r043v r043v released this 26 Oct 22:51

Cette version accélère deux fois la synthèse YM2612 du cœur Mega Drive (valeurs préparées à l'écriture des registres, opérateurs silencieux sautés, pas de phase mutualisé par bloc/F-num — bit-exact : audio_hash et WAV identiques, oracle ymfm inchangé, cœur ~24 % plus rapide sur Sonic) et ajoute ce qui manquait à Sonic 3 : pointeur de pile initial nul accepté au parseur et SRAM cartouche ($A130F1, fenêtre $200000-$20FFFF, volatile au reset). Les quatre cartouches locales (Sonic 1, Sonic 3, Castle of Illusion, QuackShot) se livrent en exécutables Linux/Windows natifs par tools/megadrive/build_pc_binaries.sh, en natif pur sur leurs séquences profilées.

Vérifications : suite Mega Drive complète (5/5, dont ymfm et e2e natif/interpréteur), hashes et WAV Sonic identiques à la version précédente, builds Linux et MinGW des quatre jeux. Les sauvegardes Sonic 3 ne persistent pas encore ; plan fenêtre, ombre/surbrillance et entrelacement du VDP manquent toujours.

m0boy 0.10.51 — NES, cibles PC et états

Choose a tag to compare

@r043v r043v released this 26 Oct 11:46

Cette version ajoute les projets PC SDL2 pour MSX, NES et PICO-8, les états de sauvegarde NES (META/Pokitto) et Vectrex (META), ainsi que la reprise d'exploration depuis les états NES/Vectrex. Elle corrige aussi l'audio stéréo PC Engine et la configuration de cible META.

Vérifications : build CMake/Ninja depuis l'archive publiée ; tests e2e NES, Vectrex, PC et META ; builds PICO-8 META/Pokitto. Les sauvegardes NES/Vectrex sur appareil restent à vérifier.

m0boy 0.10.44 — NES : cœur complet sur META et hôte ; PC, ODROID-GO, AKA

Choose a tag to compare

@r043v r043v released this 24 Oct 22:46

NES (NROM) : le cœur complet, interprété — 6502 au cycle, 2C02 ligne à ligne (sprite-0, loopy v/t, split de la barre d'état par sprite-0), APU échantillonnée, projets pour la META et le harness hôte. Le PPU développe ses tuiles par paires de pixels (tables de 64 entrées reconstruites autour des écritures $2007), la ligne rendue est le flux fetché et le fin X est appliqué par le consommateur ; le 6502 garde son état chaud en registres. Descripteur m0input : une session jouée dans gm0 se rejoue sur le harness (--input).

Mesure : estimateur Cortex-M0+ sur Super Mario Bros, 4,55 M -> 2,75 M cycles/frame à 48 MHz (estimation, pas une mesure matérielle) ; l'image est correcte (pages de motifs de $2000, ordre des octets du panneau par m0_panel) et le harness rend l'image identique avant/après optimisation (hashes et captures PPM). Les 60 fps ne sont pas atteints : la suite est le code recompilé (nes_gen.c), pas encore écrit.

Consoles de destination : pc (fenêtre SDL2), odroid (ODROID-GO) et aka (ESP32-S3, pins à confirmer) partagent le noyau ESP32 ; le registre des systèmes décrit chaque console par ses faits matériels (TargetFacts vs min_ram_bytes) et refuse les génération hors matériel. PC Engine passe par le décodeur HuC6280 (--info, --disasm), pipeline non câblé.

Aucune ROM ni firmware dans cette release.

m0boy 0.10.40 — MSX1 : rendu asm partagé, son AY/SCC, 60 fps sur Gradius 2

Choose a tag to compare

@r043v r043v released this 23 Oct 16:46

MSX1 (ASCII8/16, Konami, Konami SCC) : BIOS fidèle (variables de tables, registres de sortie), son AY-3-8910 + SCC, rendu en assembleur partagé avec le SG-1000 (pool de mélanges), écriture VDP directe, cœur Z80 rapide partagé.

Mesure : Gradius 2 sur META, 60 images de jeu par seconde sur 90 s de jeu (images affichées non mesurées). gm0 (48 MHz) : ~93 %, estimation.

Aucune ROM ni firmware dans cette release.

m0boy 0.10.36 — one profile store for every console, storage chosen from the cost of each access

Choose a tag to compare

@r043v r043v released this 22 Oct 18:58

Profiling rebuilt around one store shared by every target console, every ROM and cartridge RAM access traced, and a storage plan chosen from measured access costs. Version française : README.fr.md; details in docs/PROFILING_STOCKAGE_2026-10-22.fr.md.

  • One profile store: profiles/<gb|sg|gg|sms>/<Game>/, shared by the META, the Pokitto and the ESPboy: recorded sessions, profile.json (sessions, map of the ROM's code and data, last build of each console, gm0 cycle profiles), storage.json, rom.plan, rom.rank, and play.sh, which runs the built firmware in gm0. Every gm0 session is recorded (the buttons the game receives, frame by frame) and replayed in the host harness for the next conversion.
  • Every access counted: traces (m0boy.romtrace.v2) hold every ROM read, code and data, in 16-byte granules, repeats included, and every cartridge RAM access. The hook sits in the common read path, and traces come from the generated project's own host build, so the traffic matches the firmware's.
  • tools/profile/m0romsim replays them through an exact model of the card cache (cartridge RAM and its write-back included) with a cost per access class, and chooses what stays raw or packed in flash. Variants studied on a held-out human session (sub-blocks, small LZSS blocks, zero elision, separate code/data caches, 16/32/128-byte blocks): none beats the unified cache of 64-byte blocks with 512-byte sectors; the hottest sectors are never packed.
  • Runtime: naked-asm Game Gear stream read, the cache refill split from the miss path, fixed-size unrolled Thumb-1 copies (m0_copy: 16 to 512 bytes, every source alignment) shared by the Game Boy and Sega cores on all consoles; 16- and 32-byte cache blocks allowed. Costs now measured in gm0: a card sector about 17,250 cycles, an LZSS decode about 11,400 (estimates). Game Boy builds take the simulated plan (--rom-plan) from compile.sh.
  • Measured on a META (Ristar, the same 5,500 frames replayed unpaced, device clock): 133.37 s → 130.82 s (−1.9 %), frames over 25 ms 1,657 → 1,149, over 33 ms 48 → 26, LZSS decodes 2,119 → 21, blocks loaded 2,718 → 580. Repeat run of the old firmware within 0.01 %. The simulated plan does no better than ranking sectors by read count on that run (130.84 s): the gain comes from the access path and the measured costs.
  • gm0 finds exactly the console's card reads, decodes and loads; its time is 8.3–8.7 % pessimistic.
  • Not measured: the Pokitto on device; other games on device.
  • META runtime 0.10.36, Pokitto 0.10.30, ESPboy 0.3.6: rebuild your games (UPDATE=1 when not interactive).

The archive m0boy-0.10.36.zip is the repository tree at this tag (no ROMs, no built firmwares); it was validated by extracting it, building it with BUILD_TESTS=ON and running ctest (58/58, two skipped as usual; the PICO-8 end-to-end test needs FEMTO8_DIR).

m0boy 0.10.34-1 — the README rewritten

Choose a tag to compare

@r043v r043v released this 21 Oct 20:33

Documentation release: the README is rewritten from scratch, in English and in French. Version française : README.fr.md.

  • One page for the current state: the three consoles (Gamebuino META, Pokitto, ESPboy), the five source systems (Game Boy, SG-1000, Game Gear, Master System, PICO-8), a table of what each platform offers (option menu, save states, battery saves, ROMs larger than the flash, compressed sectors, the adaptive card cache), the compile.sh switches (RELEASE, UPDATE/FORCE, SOURCE, SRC_SYSTEM, PACK, CACHE_DYN, …) and the limits as they stand.
  • Every figure carries where it comes from: checked (automatic comparison or test), gm0 (emulator), device (measured on a console), estimate (Cortex-M0+ cycle model).
  • Stale statements are gone (old version numbers, the 0.10.11 SPI warning, an ESPboy "without states or menu"); development detail now lives in targets/meta/README.md and docs/.
  • No firmware change: runtimes stay META 0.10.34, Pokitto 0.10.28, ESPboy 0.3.4, and games built with 0.10.34 need no rebuild.
    The archive m0boy-0.10.34-1.zip is the repository tree at this tag (no ROMs, no built firmwares); it was validated by extracting it, building it with BUILD_TESTS=ON and running ctest.

m0boy 0.10.34 — save states on every core and every console

Choose a tag to compare

@r043v r043v released this 21 Oct 20:28

Save states on every core and every console: all Sega games (Game Gear, Master System, SG-1000) and PICO-8 cartridges join the Game Boy. Version française : README.fr.md.

  • Sega, META and Pokitto: Game Gear and Master System games whose ROM sits wholly in flash now open the SD card for the state file alone (fully LZSS-packed ROMs too, which never opened it, so their state lines never appeared); a missing card only stops games whose ROM or cartridge RAM live there. The SG-1000 gains sg_state_io (the machine's bytes, its pointers kept, the renderer's caches rebuilt), its .ST8 file, the game-folder lookup and, on the META, the Bootloader USB line; its screen is cleared when the menu closes (the game draws 120 of the 128 rows, the menu's leftovers stayed).
  • ESPboy, Sega: states in the flash after the cartridge RAM's two copies, espboy_flash.cpp now serving every core: 8 slots for a Game Gear game, 5 with cartridge RAM, 10 for an SG-1000 one. The mock-flash test covers save, empty slot, load, the RAM copies left intact and a reboot.
  • ESPboy stack vs heap: the 12 KiB continuation stack gives the heap what it lacks to keep 4 KiB free (never below 6 KiB), decided by compile.sh from the build's RAM report (Ristar 11.5 KiB, The Castle 10 KiB).
  • PICO-8, META and ESPboy: p8_state_io streams the heap and its indexes, drawing state and screen, buttons, random numbers, audio channels and every global the cartridge can change (natives it reassigns included). The heap holds absolute pointers, so a state only loads into the firmware that wrote it, recognised by a hash of its code. The host harness gains --save-state / --load-state (built without PIE): a state saved at frame 300 and loaded by another run ends frame 600 on femto8's recorded picture, also with a collection at every allocation.
  • PICO-8 menu: on the META it drew 160-pixel rows through the picture's 128-column panel window and came out scrambled (since 0.10.28); it now opens the full window while shown and draws one row at a time in the picture's buffers (640 bytes back to a C stack that was down to about 1.2 KiB). On the ESPboy its rows are narrowed instead of cut.
  • compile.sh builds PICO-8 cartridges (.p8, .p8.png; META and ESPboy; SRC_SYSTEM=pico8) with their state file.
  • Checked in gm0 on each console (emulator, not hardware): save, play on, load, the menu says "Etat charge" and the picture is the saved one — Columns, Flicky and The Castle on the META and the Pokitto, Sonic and Flicky on the ESPboy, Celeste on the META and the ESPboy. Not yet tried on the devices.
  • Not covered yet: PICO-8 has no Pokitto target.
  • META runtime 0.10.34, Pokitto 0.10.28, ESPboy 0.3.4: rebuild your games (UPDATE=1 when not interactive).
    The archive m0boy-0.10.34.zip is the repository tree at this tag (no ROMs, no built firmwares); it was validated by extracting it, building it with BUILD_TESTS=ON and running ctest.

m0boy 0.10.33 — an adaptive ROM cache sharing RAM with the stack, Sega save states on device

Choose a tag to compare

@r043v r043v released this 21 Oct 19:36

The ROM cache now shares its RAM with the C stack at run time, Game Boy profiles of games with cartridge RAM are right again, and Sega save states finally reach the consoles. Version française : README.fr.md.

  • Adaptive ROM cache (GBL_CACHE_DYN, GG_CACHE_DYN, META): a fixed part (.cachepool, the one the menu uses) plus blocks taken at boot from the free RAM under the stack (m0_stack_pool.h). The stack keeps priority: a refused native call gives a block back at once (down to the boot size); a block is only taken again after about 8 s without pressure and with 256 bytes of margin, from the dispatcher's entry point, so the split does not flicker.
  • 64-byte cache blocks by default on the META (Game Boy unified pool, Game Gear and Master System). Measured on a console, Super Mario Land 2 demo over 150 s: 10,985 frames with the fixed 128-byte cache, 13,326 with the adaptive 64-byte one; Ristar card loads 9,001 → 4,131.
  • Game Boy profiling fixed: the host harness (and metaview, m0bench) failed reads of cartridge RAM never written, so the games' writes were lost and games with saves ran wrong while profiling (Super Mario Land 2 demo: 948 → 6,744 covered instructions). Redo the sessions of games with cartridge RAM.
  • Sega save states on the consoles: since 0.10.29 meta_state.cpp built its empty stubs on device (it never saw sg_config.h), so the menu never showed the state lines; the host harness had them.
  • ESPboy 0.3.3: the Sega entry tables live in flash (Ristar no longer linked: +3.5 KiB of RAM over), and the continuation stack is 12 KiB in .bss instead of 6 KiB on the SDK's SYS stack.
  • compile.sh SOURCE=1: delivers the generated project, ready to build (pio run, the build's options written into platformio.ini, BUILD.txt), instead of the firmware; the extracted sources rebuild byte-identical firmwares.
  • META runtime 0.10.33, Pokitto 0.10.27, ESPboy 0.3.3: rebuild your games (compile.sh does it on the next run, UPDATE=1 when not interactive).
    The archive m0boy-0.10.33.zip is the repository tree at this tag (no ROMs, no built firmwares); it was validated by extracting it, building it with BUILD_TESTS=ON and running ctest.

m0boy 0.10.30 — a shared code/data sweep on both CPU families, Sega firmwares build again

Choose a tag to compare

@r043v r043v released this 21 Oct 08:58

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 own z80_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_zone diagnostics, --no-infer-data). Across five cartridges, analysis undefined instruction errors 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-precise native = interpreter (same run_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 archive m0boy-0.10.30.zip is the repository tree at this tag (no ROMs, no built firmwares); it was validated by extracting it, building it with BUILD_TESTS=ON and running ctest.

m0boy 0.10.29 — save states on the Sega cores, USB bootloader entry, a real fast-forward

Choose a tag to compare

@r043v r043v released this 20 Oct 23:58

The Sega cores gain save states, the menus gain a direct USB bootloader entry, the fast-forward actually gets faster, and the audio path becomes a build-time choice. Version française : README.fr.md.

  • Save states on the Sega cores (meta_state.cpp generalised, gg_state_io): the machine as raw bytes plus in-RAM cartridge RAM, pointers re-anchored and slots rebuilt on load (gg_remap). Menu lines Etat / Sauver l'etat / Charger l'etat over the card's <NAME>.ST8 file (compile.sh creates it, 10 slots). Host validation: a 600+600 resumed run is byte-exact against 1200 straight (same cycles, pc and run_hash; one stats counter moves by one). The host harness takes --save-state / --load-state — a save state plus --coverage turns your own play into the flash pool's profile (the first device report: a laggy spot ran at 49 fps with 9 card sectors read per frame; those sectors now enter the arbitration).
  • Bootloader USB in every menu: the sam-ba magic at 0x20007FFC and a software reset — reach the bootloader from a RELEASE=1 firmware, without META_USB and without the loader detour (double reset opens the loader, not sam-ba).
  • Vitesse fixed: fast mode drew every frame, putting the LCD bus in each one — slower than the paced mode. It now runs free and draws one frame in thirty.
  • Audio: META_AUDIO_DMA selects the path at build time (0, the TC4 interrupt, is the default); the run-time switch and the menus' Audio line are gone (0.5 % of the CPU, DMAC erratum history). The menus' SPI ecran line is gone too: the display SPI always runs at the most the clock tree gives.
  • META runtime 0.10.29, Pokitto 0.10.23: rebuild your games (compile.sh does it on the next run). tests/test_gg_e2e.py green end to end; a Game Boy firmware build checked.
    The archive m0boy-0.10.29.zip is the repository tree at this tag (no ROMs, no built firmwares); it was validated by extracting it, building it with BUILD_TESTS=ON and running ctest.