Skip to content

v0.12 — PICO-8 comes to Moybyte

Choose a tag to compare

@nikola-j nikola-j released this 03 Sep 21:20
· 2640 commits to master since this release

Moybyte v0.12 — PICO-8 comes to the console.

PICO-8 import

  • Drop a .p8 or .p8.png into the browser console and it converts and plays — the importer reads the cart, ports its Lua under a generated shim, and reports up front which side of the line a cart is on.
  • Ported carts run on a real PICO-8 machine — the 64 KB memory map, the screen palette, the fill pattern, the flags, coroutines, and the 3×5 system font — so peek/poke, memcpy fades and the table-form pal() all behave, and the hot verbs run as C rather than Lua.
  • The 12-cart corpus (Celeste, Poom, Pico Off Road, Dungeons & Diagrams, …) runs; the ones that don't are named, not silent.

moy core 0.3

  • The 3D verbs tri / trib / sspr / tline are core now, not provisional.
  • New on every tier: oval / ovalb, the fillp dither, sget / sset sheet-pixel read/write, and the screen palette (pal(c0, c1, 1)).
  • The screen palette composes into the draw table instead of a flush-time pass — the pass measured ~half a frame on every board, so a cart sets it before cls and it costs nothing per pixel.
  • One cart, every tier: the SPEC.md §11 conformance suite is pixel-identical on the host and all three boards (verified on glass).

Performance (the S3 boards)

  • The Lua VM's hot loop and lookups live in IRAM; a {}, a printed integer, and a float result each stopped costing a malloc; the small-object pool gives chunks back; and the PSRAM reserve keeps a full card of carts loadable.

Fixes

  • The screen palette and the table-form pal() show PICO-8's real colours (D&D's floor is navy, Off Road's title is white again).
  • A cart's palette and its tile flags reach the raster.
  • The PICO-8 machine's memory is reserved at boot, so Lua carts run on every board even after a long session fragments the heap.
  • A census use-after-free the newer toolchain caught.

Tooling

  • One push_cart for every board (transport is board.toml data).
  • The conformance harness reaches the S3 boards (--board), and a scene push no longer rescans the whole store (130 s → 9 s on the Guition).
  • A heap-fragmentation probe reports the largest free block at each cart exit (MEMX, measurement mode).

Firmware build 9. Flash from the site, or take it over the air on the stable channel.