# Picocomputer 6502

> Built from commit 3effc4a043e0 on 2026-11-24. The current build: https://abdess.github.io/retrobios/version.json

Source: https://abdess.github.io/retrobios/emulators/rp6502/

Picocomputer 6502 emulates Picocomputer 6502 programs.

**About this profile**

| Detail | Value |
|---|---|
| Type | standalone + libretro |
| Classification | Official port |
| Source | [https://github.com/picocomputer/rp6502](https://github.com/picocomputer/rp6502) |
| Version | v0.33, the tag at this revision |
| Revision | [picocomputer/rp6502@02bfc3cbc9b2](https://github.com/picocomputer/rp6502/commit/02bfc3cbc9b2700795ce0a40fb49b413784cb832), branch `libretro` |
| Run by | [EmuDeck](https://abdess.github.io/retrobios/platforms/emudeck/), [Lakka](https://abdess.github.io/retrobios/platforms/lakka/), [RetroArch](https://abdess.github.io/retrobios/platforms/retroarch/), [RetroDECK](https://abdess.github.io/retrobios/platforms/retrodeck/), [RetroPie](https://abdess.github.io/retrobios/platforms/retropie/) |
| Profiled | 2026-09-17 |
| Profile | [YAML](https://github.com/Abdess/retrobios/blob/main/emulators/rp6502.yml), [JSON](https://abdess.github.io/retrobios/api/v1/emulators/rp6502.json) |
| Cores | rp6502 |
| Systems | Picocomputer 6502 programs |

**Technical notes**

Rumbledethumps' Picocomputer 6502, a WDC 65C02 driven by two Raspberry Pi Picos acting as RIA and VGA. The libretro core, the desktop emulator and the Pico firmware live in one repository: src/host/libretro is the core and src/host/sokol the standalone, both linked over the same emu_core library ([`src/core/emu.cmake:31-105`](https://github.com/picocomputer/rp6502/blob/02bfc3cbc9b2700795ce0a40fb49b413784cb832/src/core/emu.cmake#L31-L105)). A release fast-forwards the libretro branch to the tag, which is what the buildbot builds (version.cmake:14-19), and the core reports that tag as its version ([`src/core/sys/version.c:16-19`](https://github.com/picocomputer/rp6502/blob/02bfc3cbc9b2700795ce0a40fb49b413784cb832/src/core/sys/version.c#L16-L19)).

The content is a .rp6502 program image and nothing else is loaded. retro_load_game refuses a null path ([`src/host/libretro/retro.c:520-526`](https://github.com/picocomputer/rp6502/blob/02bfc3cbc9b2700795ce0a40fb49b413784cb832/src/host/libretro/retro.c#L520-L526)), makes it absolute and hands it to proc_boot ([`src/host/libretro/retro.c:545-563`](https://github.com/picocomputer/rp6502/blob/02bfc3cbc9b2700795ce0a40fb49b413784cb832/src/host/libretro/retro.c#L545-L563), [`src/host/libretro/retro.c:498-518`](https://github.com/picocomputer/rp6502/blob/02bfc3cbc9b2700795ce0a40fb49b413784cb832/src/host/libretro/retro.c#L498-L518)), which fills SRAM and XRAM from the file's records through rom_load ([`src/core/sys/proc.c:83-104`](https://github.com/picocomputer/rp6502/blob/02bfc3cbc9b2700795ce0a40fb49b413784cb832/src/core/sys/proc.c#L83-L104), [`src/core/rom/rom.c:46-82`](https://github.com/picocomputer/rp6502/blob/02bfc3cbc9b2700795ce0a40fb49b413784cb832/src/core/rom/rom.c#L46-L82)). The file is opened with fs_rom_open and must begin with #!RP6502 ([`src/core/rom/pump.c:96-115`](https://github.com/picocomputer/rp6502/blob/02bfc3cbc9b2700795ce0a40fb49b413784cb832/src/core/rom/pump.c#L96-L115)). Assets a program bundles are read on demand from the same file, hence need_fullpath ([`src/host/libretro/retro.c:344-354`](https://github.com/picocomputer/rp6502/blob/02bfc3cbc9b2700795ce0a40fb49b413784cb832/src/host/libretro/retro.c#L344-L354)).

The RIA and VGA firmware are reimplemented inside emu_core, not read from disk: the terminal fonts are hex arrays ([`src/core/term/font.c:13-25`](https://github.com/picocomputer/rp6502/blob/02bfc3cbc9b2700795ce0a40fb49b413784cb832/src/core/term/font.c#L13-L25)) and the OEM code page tables are generated at build time from fatfs ([`src/core/gen.cmake:46-61`](https://github.com/picocomputer/rp6502/blob/02bfc3cbc9b2700795ce0a40fb49b413784cb832/src/core/gen.cmake#L46-L61), [`src/core/emu.cmake:28`](https://github.com/picocomputer/rp6502/blob/02bfc3cbc9b2700795ce0a40fb49b413784cb832/src/core/emu.cmake#L28),[`83`](https://github.com/picocomputer/rp6502/blob/02bfc3cbc9b2700795ce0a40fb49b413784cb832/src/core/emu.cmake#L83)). The core never asks for the system directory. The frontend's save directory, or failing that the content's own directory, becomes the program's working directory on the host filesystem ([`src/host/libretro/retro.c:444-494`](https://github.com/picocomputer/rp6502/blob/02bfc3cbc9b2700795ce0a40fb49b413784cb832/src/host/libretro/retro.c#L444-L494)), and the machine's stdio drivers are the ROM and that filesystem ([`src/host/libretro/drivers.h:60`](https://github.com/picocomputer/rp6502/blob/02bfc3cbc9b2700795ce0a40fb49b413784cb832/src/host/libretro/drivers.h#L60)). The libretro machine declares no CONFIG_SAVE driver, so its settings are never written to disk ([`src/host/libretro/drivers.h:48-58`](https://github.com/picocomputer/rp6502/blob/02bfc3cbc9b2700795ce0a40fb49b413784cb832/src/host/libretro/drivers.h#L48-L58), [`src/core/sys/config.c:62-64`](https://github.com/picocomputer/rp6502/blob/02bfc3cbc9b2700795ce0a40fb49b413784cb832/src/core/sys/config.c#L62-L64)).

The standalone takes the program on the command line, installs --rom files as :basename aliases on a null drive and, given no program, waits for one to be dropped on the window ([`src/host/sokol/cli/cli.c:122-137`](https://github.com/picocomputer/rp6502/blob/02bfc3cbc9b2700795ce0a40fb49b413784cb832/src/host/sokol/cli/cli.c#L122-L137), [`src/host/sokol/cli/main.c:210`](https://github.com/picocomputer/rp6502/blob/02bfc3cbc9b2700795ce0a40fb49b413784cb832/src/host/sokol/cli/main.c#L210), [`src/host/sokol/cli/main.c:292-311`](https://github.com/picocomputer/rp6502/blob/02bfc3cbc9b2700795ce0a40fb49b413784cb832/src/host/sokol/cli/main.c#L292-L311)). The debugger's ImGui layout file and the cc65 .dbg or llvm-mos ELF a DAP session names are the program's own build outputs ([`src/host/sokol/cli/cli.c:154`](https://github.com/picocomputer/rp6502/blob/02bfc3cbc9b2700795ce0a40fb49b413784cb832/src/host/sokol/cli/cli.c#L154), [`src/core/dap/cc65dbg.c:315`](https://github.com/picocomputer/rp6502/blob/02bfc3cbc9b2700795ce0a40fb49b413784cb832/src/core/dap/cc65dbg.c#L315), [`src/core/dap/dwarf_elf.c:44`](https://github.com/picocomputer/rp6502/blob/02bfc3cbc9b2700795ce0a40fb49b413784cb832/src/core/dap/dwarf_elf.c#L44)).

No BIOS or firmware files required.

## Next steps

- [Get the files](https://abdess.github.io/retrobios/which-pack/), for the setup in use
- [Every system](https://abdess.github.io/retrobios/systems/), and the files each one needs
- [When a game does not start](https://abdess.github.io/retrobios/wiki/troubleshooting/)

Data as of 24 November 2026.
