Command-line Options

Every option bizmuth takes, grouped by what it is for. bizmuth --help prints the same list with the parser’s own wording, and bizmuth --version the version and build.

bizmuth --machine next --sd next.img --load game.nex

An option that has a config key overrides it for that run without changing the file. --roms-dir is the exception: it is written back. See Config File.

Machine and media

OptionEffect
FILEopen a file by its extension: a program as --load does, a .tap or .tzx as --tape, a .dsk or .edsk in drive A, a .bzst as --loadstate. Without --machine, the file chooses the machine, as File ▸ Open does; see Loading Software
--machine KIND16k, 48k, 128k, plus2a, plus3 or next. Without it, a .z80 or .sna given to --load runs on the machine it was taken on; otherwise default_machine from the config decides
--roms-dir DIRthe folder holding the ROMs and the SD image; written to the config
--board ks1|ks2|ks3the Next board for this run: KS1 (issue 2), KS2 (issue 4) or KS3 (issue 5)
--ks1-ram 1|2the KS1’s RAM in MB for this run
--sd IMAGE, --sd1 IMAGEattach a card to slot 0 or slot 1 for this run. --sd0 is another name for --sd
--sd-roattach both slots read-only for this run
--flash IMAGEload the Next’s configuration flash, 32 MB or 16 MB on KS1, from IMAGE for this run; programs and erases are written back to it. A shorter image is followed by erased $FF bytes, and a longer one is refused
--flash-rokeep flash programs and erases in memory, leaving the image unchanged
--tape FILEinsert a .tap or .tzx. On the Next it plays at tape speed
--tape-mode fast|realoverride the loading mode the tape’s format picks
--load FILEload a .nex, .fxi, .snx, .sna or .z80 once the machine has booted. Given more than once, each file loads in order over the one before. --nex and --snapshot are older names
--load-with PATHplace a file or folder on the card beside a --load program. Repeat for each
--nex-route auto|inject|nexloadhow a .nex reaches the Next; see Loading Software
--no-boot-cacheboot for --load every time, and keep no saved boot
--max-boot-frames Ngive up on a --load boot that never goes idle after N frames, 1300 by default
--loadstate FILErestore a save state in place of booting; see Save States

Window

OptionEffect
--playerfull screen with no menu bar, toolbar or status bar; the controller overlay is the only chrome. Nothing it runs with is written back; see Controller Overlay
--config FILEread and write this config file in place of ~/.bizmuth/config.json
--log-file FILEwrite the log to a file as well as the terminal, from the first line

Emulation

OptionEffect
--max-speed Na ceiling on the Next’s CPU speed: 0 3.5 MHz, 1 7, 2 14, 3 28
--mem-wait, --no-mem-waitput in or leave out the 28 MHz memory wait state
--im2-daisy, --no-im2-daisyput in or leave out the IM2 hardware interrupt vector
--rtc, --no-rtcrun as a Next with or without a real-time clock fitted
--video-output vga|hdmiwhich of the Next’s connectors is watched, for this run; see Preferences
--esp null|loopback|bridge|espwhat the Next’s ESP serial line is wired to; see ESP and Serial
--esp-port Nthe TCP port --esp bridge listens on, 11002 by default

Each pair overrides the config’s setting for one run. Given both flags of a pair, the later one is used: --no-rtc --rtc runs with a clock fitted.

Debugger

OptionEffect
--debug-protocol none|adp|dzrp|boththe debug servers to start; see ADP and DeZog
--adp-port Nthe ADP port, 11001 by default
--adp-bind ADDRESSthe address ADP listens on, every IPv4 interface by default; 127.0.0.1 accepts this machine only
--sld FILEload an SLD or a symbol export. Repeat for a program built as several images
--script FILEload a Rhai script; see Rhai Scripting
--pc-trace FILEappend every instruction’s pc sp to a file. Next only
--pc-trace-from N, --pc-trace-to Nthe first and last frame --pc-trace records
--esxdos-tracelog every esxDOS and NextZXOS RST $08 call. Next only
--inspect-snapshot FILEprint a .sna, .snx or .z80 file’s contents and exit. --dump-snapshot is another name

Headless runs

These run with no window. See Headless Runs and Testing.

OptionEffect
--screenshot FILE.pngrun a number of frames, save the screen, and exit
--screenshot-frames Nthe frames a --screenshot or --video run lasts, 600 by default
--video FILE.pngrecord every frame of the run as an animated PNG
--keys SCRIPTpress keys at given frames
--mouse SCRIPTmove the mouse and press its buttons at given frames
--auto-keys [FRAME]press ENTER once from this frame, 160 if none is given, to answer the Next’s boot prompt
--selectpress ENTER once the browser is up, to launch the highlighted entry
--savestate FILEwrite a compressed save state at the end
--savestate-raw FILEwrite an uncompressed save state at the end
--state-json FILEwrite the machine state as JSON at the end
--headlessrun with the debug servers and no window until stopped
--run-tests FILErun a FantASM test description file and exit
--image-org ADDRESSwhere a flat .bin image named by --run-tests loads

Audio

OptionEffect
--wav FILEwrite what goes to the speakers to a 32-bit float WAVE file. With a window only
--wav-sources DIRwrite the beeper, AY and DAC each to its own WAVE file in DIR. Next only

← User Guide