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
--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
--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
--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
--no-mem-waitleave out the 28 MHz memory wait state
--no-im2-daisyleave out the IM2 hardware interrupt vector
--no-rtcrun as a Next with no real-time clock fitted
--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

Debugger

OptionEffect
--debug-protocol none|adp|dzrp|boththe debug servers to start; see ADP and DeZog
--adp-port Nthe ADP port, 11001 by default
--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