ROM
The Commander X16 ROM contains licensed code, so you’ll need to obtain your own copy before using the emulator. BitMagic needs ROM version R46 or later.
There are three ways to get one:
- Run
x16e --fetch-rom(orX16E --fetch-romfrom a downloaded build). It downloads the latest ROM release from the x16-rom repository and savesrom.binto your BitMagic folder:%LOCALAPPDATA%\BitMagicon Windows,~/.local/share/BitMagicon Linux. That’s all the emulator needs. The same scripts are in a downloaded build’s folder asfetch-rom.batandfetch-rom.sh; pass a folder as the first argument to saverom.binsomewhere else. - Download and install the latest version of the Official Emulator, which comes bundled with a
rom.bin. - Clone the official ROM repository and build it manually. This can be done on Windows using WSL; just remember to install a recent version of Python!
Only --fetch-rom puts rom.bin where BitMagic’s emulator will find it automatically. With the other two, you have a rom.bin but need to tell BitMagic where it is: the easiest way is to copy it into your BitMagic folder above. Otherwise, point at it with --rom, set romFile in the project file, or set the environment variable BITMAGIC_ROM to its full path.
The emulator looks for a ROM in this order:
--romrom.binin the current folderBITMAGIC_ROM, either the file or the folder containing it- your BitMagic folder
Note: the BitMagic folder is only used by the standalone emulator. The debugger doesn’t look there, so for debugging set romFile in the project file or set BITMAGIC_ROM.