# Commander X16 Emulator

> 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/x16emu/

Commander X16 Emulator emulates Commander X16.

**About this profile**

| Detail | Value |
|---|---|
| Type | standalone |
| Source | [https://github.com/X16Community/x16-emulator](https://github.com/X16Community/x16-emulator) |
| Version | r49, the tag at this revision |
| Revision | [X16Community/x16-emulator@af1024080ced](https://github.com/X16Community/x16-emulator/commit/af1024080ced455ea098b007aed43142c99e93da) |
| Run by | [Batocera](https://abdess.github.io/retrobios/platforms/batocera/), [KNULLI](https://abdess.github.io/retrobios/platforms/knulli/) |
| Profiled | 2026-10-20 |
| Profile | [YAML](https://github.com/Abdess/retrobios/blob/main/emulators/x16emu.yml), [JSON](https://abdess.github.io/retrobios/api/v1/emulators/x16emu.json) |
| Cores | x16emu |
| Systems | Commander X16 |

**Technical notes**

Standalone emulator for the Commander X16 retro computer by Michael Steil. 65C02/65C816 CPU, VERA video, YM2151+PSG audio, SD card, cartridge support.

System ROM built separately from the x16-rom repo (KERNAL + BASIC + DOS, 32 banks x 16 KB = 512 KB). Emulator and ROM versions must match.

Batocera configgen (x16emuGenerator.py) passes -rom /userdata/bios/commanderx16/rom.bin. Also sets -ram 2048, -rtc, and scale/quality/widescreen per user config.

The pin is the r49 release tag (src/version.h VER "49"). The tree after it carries VER "50" with no emulator or ROM release behind it.

## Files

**0 files**: 0 required, 0 optional. 1 more file comes with the app.

## Comes with the app

### `rom.bin` comes with the app

Commander X16 system ROM (KERNAL, BASIC, DOS, charset)

- Path: `commanderx16/rom.bin`
- Default filename "rom.bin", loaded from executable directory or via -rom flag. ROM_SIZE = NUM_ROM_BANKS(32) * 16384 = 524288 bytes. exit(1) if file not found. Built from x16-rom repo (open source, derived from C64 KERNAL/BASIC). Shipped beside the executable in every release zip. The hashes are those of the rom.bin in the r49 release zips, 262144 bytes: the loader reads up to ROM_SIZE and does not check the length.

- Size: max 512.0 KB, SHA1 eaa7b491d412

**Hashes and source**

- SHA1: `eaa7b491d412c735a03952405a1112c079948950`
- MD5: `c3b8d740e5d0260ebc35ff9f28d81cd0`
- Source: [`src/main.c:602`](https://github.com/X16Community/x16-emulator/blob/af1024080ced455ea098b007aed43142c99e93da/src/main.c#L602), [`src/main.c:626`](https://github.com/X16Community/x16-emulator/blob/af1024080ced455ea098b007aed43142c99e93da/src/main.c#L626), [`src/main.c:1163`](https://github.com/X16Community/x16-emulator/blob/af1024080ced455ea098b007aed43142c99e93da/src/main.c#L1163), [`src/glue.h:24`](https://github.com/X16Community/x16-emulator/blob/af1024080ced455ea098b007aed43142c99e93da/src/glue.h#L24)

## 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.
