Repository navigation
Releases
P8 for MiSTer 1.1
P8 is 1Retro's fantasy console core for MiSTer. It plays PICO-8 carts: a soft RISC-V CPU at 100 MHz with a hardware blitter and a hardware audio unit runs carts that its BIOS compiles to native code on the core itself. Put your .p8 and .p8.png carts on the SD card and play them on your TV, with your controllers.
PICO-8 is a fantasy console by Lexaloffle Games. 1Retro's P8 is not affiliated with or endorsed by Lexaloffle Games. If you enjoy PICO-8 carts, buy PICO-8 and support the people who make them.
What's new in 1.1
- CRT scale for the analog output (VGA, RGB, component with
vga_scaler=0): 1x, 1.5x, 1.75x and 2x (cropped) at 15 kHz, 3x at 31 kHz and 4x at 37.5 kHz, all at ~59.94 Hz with square pixels. The picture fills a CRT instead of sitting in the middle as a small square, and the OSD is readable from 1.5x up. HDMI is unchanged. The README says which to pick for your display. We have measured these modes in simulation but not yet on a real CRT: if you have one, please tell us how it looks (issue #1). - Faster: new CPU instructions for PICO-8's division, for pixels (
pset/pget) and for storing Lua values; the blitter now draws lines and does largememcpy/memset; and many compiler and runtime improvements to tables, function calls, coroutines and drawing. - Closer to PICO-8: we compared P8 against PICO-8 0.2.7 itself on a set of test carts, and fixed what they showed:
line,ovalandssprpixels,x^y, text styles andprint's frame waits,stat(),time(),flip()inside_update/_draw,_ENV,__peekmetamethods,cartdata()switching ids, and more. reload()andcstore()from another cart: a cart that reads data from another cart file gets it. The BIOS asks for that cart once (as it does for multi-cart games), then remembers it for the session.stop("message")shows the cart's message instead of an error.- Carts that work now: among others kiloman, hakai, cutebunnies / avoidthebread and cattlecrisis.
- Sound: no more crackling in carts that wait for their sound to end in a loop.
- The BIOS shows its version on its start screen (1.1.0).
Install
The easy way: add P8 to the MiSTer Downloader once, and every Update All keeps the core and the BIOS up to date. Over SSH:
wget -O /media/fat/downloader_p8.ini \
https://raw.githubusercontent.com/one-retro/P8_MiSTer/db/downloader_p8.inithen run Update All (or Downloader) from the Scripts menu. If you already have it, Update All brings you 1.1.
By hand: copy P8_<date>.rbf from this release to /media/fat/_Console/ (and move 1.0's P8_20261122.rbf away), and boot.rom to /media/fat/games/P8/. Both files are needed, and they go together: the 1.1 BIOS uses the 1.1 core's new instructions and blitter operations.
Playing
- Start P8 from the Console folder of the main menu.
- Put carts in
/media/fat/games/P8/. - Open the OSD (F12) and choose Load Cart. The BIOS compiles the cart (a few seconds, with a progress bar) and starts it.
- Controls: d-pad, O, X and Pause on a controller (Pause is Start by default), or the PICO-8 keyboard layout (player 2 too). Carts that use a mouse or keyboard get them.
- Pause menu: Pause opens the cart's menu: continue, the cart's own entries, reset cart. Cart menu in the OSD opens it too.
- Save states: Save state / Load state in the OSD, four slots (State slot), or Alt+F1-F4 to save and F1-F4 to load on a keyboard. States are kept in
savestates/P8/. - Cart saves (high scores, progress) are written to
saves/P8/as the cart saves them. - Multi-cart games: when a cart loads another cart, the BIOS tells you which one; load it from the OSD and the game goes on.
- Reset starts the cart again without compiling it again.
- Show FPS in the OSD shows the cart's frame rate.
Known limitations
- Save states from 1.0 can't be loaded in 1.1: states load only into the same cart with the same core and BIOS version (cart saves are not affected). Saving or loading pauses the game for a moment (up to about a third of a second).
- Sound: the 0x5f40 slowdown effect and waveform instruments are not implemented yet. The buzz filter on the tilted saw and organ waveforms differs slightly from PICO-8 in its highest harmonics.
- Launchers that start other BBS carts ask for each cart from the OSD: the core has no network access. Download those carts from the BBS onto the SD card first.
- Some carts stop with an error that PICO-8 doesn't show, or run slowly; we're working through them.
Reporting a problem
Open an issue at github.com/one-retro/P8_MiSTer/issues with the cart's name and BBS link, what you did, and what happened (a photo of the screen helps). For speed problems, turn on Show FPS and tell us the number.
Licences
The core (.rbf) is GPL-3.0; it is built from this repository, which includes the MiSTer framework. boot.rom, the BIOS, is a separate program distributed as a binary with each release under the Apache License 2.0 (LICENSE-APACHE-2.0 in the repository); it is not covered by the GPL.
P8 for MiSTer 1.0
P8 is 1Retro's fantasy console core for MiSTer. It plays PICO-8 carts: a soft RISC-V CPU at 100 MHz with a hardware blitter and a hardware audio unit runs carts that its BIOS compiles to native code on the core itself. Put your .p8 and .p8.png carts on the SD card and play them on your TV, with your controllers.
PICO-8 is a fantasy console by Lexaloffle Games. 1Retro's P8 is not affiliated with or endorsed by Lexaloffle Games. If you enjoy PICO-8 carts, buy PICO-8 and support the people who make them.
Most carts play at full speed; some don't run yet, and some run slower than they should. Reports are welcome (see below).
Install
The easy way: add P8 to the MiSTer Downloader once, and every Update All keeps the core and the BIOS up to date. Over SSH:
wget -O /media/fat/downloader_p8.ini https://raw.githubusercontent.com/one-retro/P8_MiSTer/db/downloader_p8.inithen run Update All (or Downloader) from the Scripts menu.
By hand: copy P8_<date>.rbf from this release to /media/fat/_Console/, and boot.rom to /media/fat/games/P8/. Both files are needed: the core loads the BIOS when it starts.
Playing
- Start P8 from the Console folder of the main menu.
- Put carts in
/media/fat/games/P8/. - Open the OSD (F12) and choose Load Cart. The BIOS compiles the cart
(a few seconds, with a progress bar) and starts it.
- Controls: d-pad, O, X and Pause on a controller (Pause is Start by default), or the PICO-8 keyboard layout (player 2 too). Carts that use a mouse or keyboard get them.
- Pause menu: Pause opens the cart's menu: continue, the cart's own entries, reset cart. Cart menu in the OSD opens it too.
- Save states: Save state / Load state in the OSD, four slots (State slot), or Alt+F1-F4 to save and F1-F4 to load on a keyboard. States are kept in
savestates/P8/. - Cart saves (high scores, progress) are written to
saves/P8/as the cart saves them. - Multi-cart games: when a cart loads another cart, the BIOS tells you which one; load it from the OSD and the game goes on.
- Reset starts the cart again without compiling it again.
- Show FPS in the OSD shows the cart's frame rate.
Sound
The audio is synthesised in the FPGA: the oscillators, noise, the sfx filters (noiz, buzz, detune, reverb, dampen) and the effects run in a dedicated audio unit, so sound costs a cart almost no CPU time. We recorded PICO-8 itself playing a set of test notes and fitted P8's waveforms, noise and filters to it: they match within about 1 dB across the spectrum.
What to expect
We tested P8 on about 700 carts from the PICO-8 BBS:
- Every cart compiles. Most play: about nine in ten ran 600 frames of random input without an error.
- Speed: about two thirds of the carts never drop a frame, and four in five drop fewer than one frame in twenty. Some demanding carts run below full speed.
Known limitations
- Save states load only into the same cart with the same core and BIOS version. After an update, states saved with the previous version can't be loaded (cart saves are not affected). Saving or loading pauses the game for a moment (up to about a third of a second). Loading an empty or incompatible slot does nothing.
- Sound: the 0x5f40 slowdown effect and waveform instruments are not implemented yet. The buzz filter on the tilted saw and organ waveforms differs slightly from PICO-8 in its highest harmonics.
- Launchers that start other BBS carts ask for each cart from the OSD: the core has no network access.
- Some carts stop with an error that PICO-8 doesn't show, or run slowly; we're working through them.
Reporting a problem
Open an issue at github.com/one-retro/P8_MiSTer/issues with the cart's name and BBS link, what you did, and what happened (a photo of the screen helps). For speed problems, turn on Show FPS and tell us the number.
Licences
The core (.rbf) is GPL-3.0; it is built from this repository, which includes the MiSTer framework. boot.rom, the BIOS, is a separate program distributed as a binary with each release under the Apache License 2.0 (LICENSE-APACHE-2.0 in the repository); it is not covered by the GPL.