Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Configuration reference

Copperline is configured by a TOML file: the file passed with --config, else ./copperline.toml if present, else a copperline.toml beside the Copperline executable, else the configuration saved with the configuration screen’s Save default button (see The window, status bar, and menus). Every field is optional; missing fields use the defaults documented here. copperline.example.toml in the repository root is a commented companion to this reference.

A copperline.toml in the working directory or beside the executable describes a machine to run: like --config, it skips the configuration screen, and the machine starts running at once (unless the file sets [emulation] power_on = false). The copy beside the executable works whatever directory Copperline is started from, so an installation can carry its own default machine. For a downloaded .AppImage, put it beside the .AppImage file. On macOS, put it beside Copperline.app; a copy inside the bundle’s Contents/MacOS folder also works, but the one beside the bundle wins. macOS runs a downloaded app that has not been moved out of its download folder from a temporary private copy, which cannot see the files beside it. Move Copperline.app with the Finder (to Applications, say) before relying on a file beside it. Relative paths inside it work as in any configuration file: a media path such as rom = "KICK31.ROM" that is not in the working directory is looked for in the matching media folder (see Relative media paths), so a ROM kept in ~/Documents/Copperline/roms is found whatever directory Copperline was started from.

--factory ignores the saved default and a copperline.toml beside the executable, and starts from Copperline’s own settings. It also leaves the CDTV’s default bookmark RAM file alone (see [cd] below). --config and ./copperline.toml always win over it anyway. With neither default present, the flag changes nothing.

Settings changed from the menu during a session that started without --config, a copperline.toml or --factory are written into the saved default as they change (only the changed keys; see Settings the menu remembers).

If the saved default cannot be read or parsed, Copperline logs a warning and continues with built-in settings and any command-line overrides. It leaves the saved file untouched. A saved default that parses but no longer validates -- a disk image that moved, a drive not yet mounted -- opens the configuration screen on the built-in settings with the reason on its status line, so it can be fixed before Save default replaces it. Errors in --config or a copperline.toml still report the requested configuration problem.

Configuration parsing rejects unknown keys, invalid CPU or chipset names, and out-of-range sizes. Media are opened during startup; depending on the device, an unavailable image either stops startup or leaves the unit absent with a warning in the log.

For older key spellings and unknown field errors, see configuration compatibility and the changelog. Match the manual version to the executable before copying a configuration.

Paths on Windows

This applies to every path field below (rom, disk images, hard-drive files, the SCSI ROMs, and so on). In a TOML double-quoted string the backslash is an escape character, so a Windows path written the obvious way (rom = "C:\Kickstarts\KICK31.ROM") is rejected: \K is not a valid escape. Use any one of:

rom = 'C:\Kickstarts\KICK31.ROM'    # single quotes: a literal string, no escaping
rom = "C:\\Kickstarts\\KICK31.ROM"  # double quotes: backslashes doubled
rom = "C:/Kickstarts/KICK31.ROM"    # forward slashes also work on Windows

Single-quoted literal strings are the least error-prone. macOS and Linux paths use forward slashes and need none of this. TOML paths do not expand ~ or shell variables; use an absolute path or a relative one (see below).

Relative media paths

A relative path is looked for in the working directory first. A ROM, disk or CD path that is not there is then looked for in the matching media folder from [paths]. By default these are under the host data directory, so rom = "KICK31.ROM" finds ~/Documents/Copperline/roms/KICK31.ROM and [copperhf] unit0 = "Workbench.hdf" finds ~/Documents/Copperline/harddrives/Workbench.hdf, whichever directory Copperline was started from. That matters for a copy started from the Dock, the Start menu or a desktop launcher, whose working directory is rarely one you chose.

PathsMedia folder
rom, extended_rom, fmv_rom, [scsi] rom/rom_odd, [lide] rom/rom_bank2, [sf2000sd] rom, [cartridge] romroms
[serial] mt32_control_rom, mt32_pcm_romroms/mt32, then roms
[floppy.dfN] imagesfloppies
[ide], [scsi], [lide], [copperhf] and [sf2000sd] drivesharddrives, then cds
[[filesys]] folders, a [pcmcia] CF cardharddrives
[cd] imagecds

A path with folders in it is looked up the same way (rom = "kickstarts/KICK31.ROM" finds roms/kickstarts/KICK31.ROM). A media folder that does not exist is skipped; none is created. A path found in neither place is reported as written. Absolute paths are always used as they are, and every other relative path in a configuration (bezel stickers, shaders, printer output, battery-RAM files and so on) is still relative to the working directory. Paths given to scheduled input such as --insert-disk-after are also used as written.

Command-line overrides

Long options taking a value accept either --flag VALUE or --flag=VALUE, including --config=machine.toml and --script=input.clscript. For an option with several arguments, the inline value is its first argument: --screenshot-after=10 out.png or --window-position=-40 75. Values keep any further = characters. Switches such as --factory and --noaudio take no value; --noaudio=false is an error.

--help (or -h) and --version (or -V) print to stdout and exit successfully; -c is short for --config. Invalid arguments print to stderr and exit with status 1. A mistyped long option suggests a close, unambiguous match when one is available.

The most common machine knobs can be set on the command line without writing a config file. These flags layer on top of the config file (or, when there is none, the built-in defaults) and are validated by exactly the same parsers and range checks as the equivalent TOML fields:

FlagOverridesAccepts
--model NAME[machine] profileA1000, A500, A500OCS, A500Plus, A2000, A600, A1200, A3000, A4000, CDTV, CD32
--chipset NAME[chipset] revisionOCS, ECS, AGA
--video STANDARD[chipset] videoPAL, NTSC
--cpu MODEL[cpu] model68000, 68010, 68EC020, 68020, 68EC030, 68030, 68EC040, 68040, 68EC060, 68060
--cpu-clock MHZ[cpu] clock_mhza number of MHz
--fpu / --no-fpu[cpu] fpufit / omit a 68881/68882
--jit / --no-jit[cpu] jitexperimental fast batch/trace-JIT CPU execution (68020+; not cycle-exact)
--cpu-speed MODE[cpu] speedfixed (default) or fastest: the JIT clock adapts to the host while paced (needs --jit; not reproducible)
--clipboard / --no-clipboard[clipboard] shareshare the host clipboard with the guest’s clipboard.device; fits an extra autoconfig board, so it is opt-in (default: off)
--cartridge MODEL[cartridge] modelnone (default) or hrtmon, the bundled HRTMon freezer cartridge
--chip SIZE[memory] chip512K, 1M, 2M, ...
--fast SIZE[memory] fast0, 1M, 4M, 8M, ...
--slow SIZE[memory] slow0, up to 512K
--ram-init MODE[memory] initzero (default), random[:SEED], pattern:WORD, or 0xWORD
--motherboard SIZE[memory] motherboardRamsey RAM (A3000/A4000): 0, 1M..4M, 8M, 12M, 16M; A4000 up to 64M
--accelerator SIZE[memory] acceleratorCPU-slot RAM at $08000000 (32-bit CPUs): 0 to 128M
--floppy-drives COUNT[floppy] drives0 to 4 wired drives (DF0: plus external drives)
--floppy-speed PERCENT[floppy] speed100 (real), 200, 400, 800, or 0 (turbo)
--hd-timing TIMING[ide], [scsi], [lide] timinginstant (default), period, or a drive profile id (see Drive timing)
--floppy-bridge DFN NAME[floppy.dfN] bridgedrive a physical floppy drive: greaseweazle, or off
--floppy-bridge-port DFN PORT[floppy.dfN] bridge_portthat interface’s serial port (default: auto-detect)
--floppy-bridge-cable DFN SEL[floppy.dfN] bridge_cabledrive select: a/b (IBM PC cable) or 0-3 (Shugart)
--floppy-bridge-mode DFN MODE[floppy.dfN] bridge_modehow tracks are captured: normal, compatible, stalling
--floppy-bridge-density DFN D[floppy.dfN] bridge_densityforce a density: auto, dd, hd
--floppy-replay-speed DFN SPEED[floppy.dfN] replay_speedreplay already-captured tracks at fast (the default, double speed) or normal (the platter’s own)
--floppy-bridge-writable DFN[floppy.dfN] write_protected = falseallow writing to the real disk
--joystick MODE[input] joystickgamepad (default), keyboard
--mouse-sensitivity N[input] mouse_sensitivity0-100 host mouse speed (50 default = neutral multiplier)
--mouse-capture MODE[input] mouse_capturewhen the host mouse is grabbed: click (default), auto, manual
--port1 DEVICE[input] port1mouse (default), gamepad-mouse, joystick, cd32, analogue, lightpen, none
--port2 DEVICE[input] port2the same devices except gamepad-mouse; default joystick (cd32 on the CD32 profile)
--port3 DEVICE / --port4 DEVICE[input] port3 / port4joystick or none in the parallel-port four-player adapter’s sockets (a joystick implies --parallel joystick-adapter)
--autofire HZ[input] autofire_hz0 (off, the default) to 30
--run-ahead FRAMES[emulation] run_ahead_framesrun-ahead latency reduction: 0 (off) to 4
--warp-boot[emulation] warp_bootwarp the boot until the boot storage goes idle
--warp-until SECS[emulation] warp_untilwarp the boot until an absolute emulated time
--whdload GAME[whdload] gameboot a WHDLoad package: an .lha/.zip archive or a directory holding a .slave (WHDLoad)
--coverage FILE(none; needs --run)write lcov line/function coverage of the --run program to FILE when it exits or the run ends (coverage)
--coverage-source-map FROM=TO(none; needs --coverage)rewrite a source path prefix in the coverage file; repeatable
--full-screen / --windowed[display] full_screenopen fullscreen or windowed at start (default windowed)
--maximized[display] maximizedopen a maximized window with borders and the desktop taskbar visible
--monitor SELECTOR[display] monitorhost display: auto, primary, a one-based number, or an exact name
--window-position X Y[display] position = [X, Y]window top-left in logical pixels relative to the selected monitor
--list-monitors--list host display numbers, names, resolutions and scale factors, then exit
--window-scale SCALE[display] window_scaleinitial window width and height multiplier, 0.5-4.0 (default 1)
--show-status-bar / --hide-status-bar[display] status_barstatus bar at start (default shown)
--perf-overlay[display] perf_overlayshow performance overlay at start
--menu-scale SIZE[display] menu_scalesize of the pop-up menu: 1x (default) or 2x
--rtc-time TIME[machine] rtc_timeseed battery clock with Unix seconds or "YYYY-MM-DD HH:MM[:SS]"
--rtc-frozen[machine] rtc_frozenstop seeded clock at --rtc-time exactly
--audio / --noaudio[audio] output_enabledenable (default) or disable real-time audio
--audio-device NAME[audio] output_devicehost audio output device (substring match)
--audio-channel-mode MODE[audio] channel_modestereo (default) or mono
--audio-stereo-separation PCT[audio] stereo_separationstereo width 0-100 (100 default, 0 = mono)
--audio-filter MODE[audio] audio_filterPaula filter: auto (default), on, off
--serial MODE[serial] modeoff, stdout, midi, tcp, tcp-connect, pty, modem, device
--serial-connect HOST:PORT[serial] connectremote to dial (implies --serial tcp-connect)
--serial-device PATH[serial] devicehost serial port (/dev/tty..., COM3; implies --serial device)
--serial-session FILE[serial] sessionreplay a scripted modem session (implies --serial modem)
--parallel DEVICE[parallel] devicenone, printer, sampler, joystick-adapter
--a2065-net BACKEND[a2065] netnone, loopback, nat, bridge
--a2065-interface NAME[a2065] interfacebridge adapter name (implies --a2065-net bridge)
--hostsocket-net BACKEND[hostsocket] netnone, loopback, nat, bridge, host
--hostsocket-interface NAME[hostsocket] interfacebridge adapter name (implies --hostsocket-net bridge)
--host-disk DEVICE [ATTACH][[host_disk]]give the machine a host disk read-write; ATTACH takes the attach values (default ide-master)
--host-disk-read-only DEVICE [ATTACH][[host_disk]]the same, read-only
--type-after SECS TEXT(none)type TEXT on the US Amiga keyboard from SECS (Headless)
--expect-screenshot SECS PATH [TOLERANCE](none)compare the frame at SECS with a PNG; exit status 3 on mismatch (Headless)
--exit-on-return(none)with --run: exit with the program’s AmigaDOS return code (Run)
--pcmcia-cf PATH[pcmcia] card = "cf", patha CompactFlash card over a hard-disk image in the A600/A1200 slot
--pcmcia-sram SIZE[pcmcia] card = "sram", sizea session-only SRAM card in the slot, 64K to 4M
--gif-after SECS PATH(none)write an animated GIF clip of the display from SECS emulated seconds, then exit (see Capturing GIF clips)
--gif-seconds N(none)length of each --gif-after clip in emulated seconds; defaults to [recording] clip_seconds
--terminal(none)show and drive the machine in a Kitty-protocol terminal instead of a window, also over SSH (Terminal display)
--terminal-fps N(none; needs --terminal)send at most N frames a second to the terminal
--terminal-log PATH(none; needs --terminal)log file while --terminal owns the terminal (default copperline-terminal-PID.log in the temporary directory)

For example, to boot a stock A1200 profile but with 8 MB of fast RAM and a faster CPU, with no config file at all:

./target/release/copperline --model A1200 --fast 8M --cpu-clock 28 KICK31.ROM

A --model profile supplies the chipset, CPU, and memory defaults of a real machine; the other flags then override individual values on top of it, just as explicit [cpu]/[chipset]/[memory] sections override a [machine] profile in a config file.

The serial and parallel ports have further per-run flags -- --midi-in, --midi-out, --mt32-control-rom, --mt32-pcm-rom, --mt32-panel, --sampler-audio-input, and --sampler-input-gain -- described with their [serial] and [parallel] keys below. Non-configuration setup and session flags (such as --run, --calibrate-gamepad, --install-net-helper, --profile-live-audio, and the --netplay-* options) are covered in copperline --help and their matching guide chapters.

Top level

rom = "KICK13.ROM"            # Kickstart image, 512 KiB (or a 256 KiB 1.x part)
extended_rom = "cd32ext.rom"  # optional: CDTV (256K at $F00000) or
                              # CD32 (512K at $E00000) extended ROM
# fmv = true                  # CD32: fit the FMV module (bundled open ROM)
# fmv_rom = "another.rom"     # CD32: fit the FMV module with this ROM
# identify = false            # drop the Copperline identification board
                              # from the Zorro chain (default: present)

identify controls a small, inert Zorro autoconfig board Copperline puts on the expansion chain (manufacturer 5192 / product 2) so guest software such as identify.library can detect that it is running under the emulator. It is on by default and does not change the machine’s usable memory; set identify = false for a chain with no emulator-identifying board. See Writing Zorro board plugins for details.

A positional ROM argument on the command line overrides rom. Positional media and .toml configurations are also accepted; see Opening files. Omit rom entirely (and pass no ROM argument) to boot the bundled AROS open-source Kickstart replacement, Copperline’s default boot ROM; its main and extended halves are found as described under Where bundled files are found. The menu’s Load Kickstart ROM... item fits a different ROM at runtime and hard-resets the machine. Machine profiles that need an extended ROM (CDTV, CD32) will tell you if it is missing.

The Kickstart and extended-ROM keys accept images in either byte order. Besides plain CPU-order dumps, Copperline recognizes the byte-swapped images prepared for EPROM programmers from their header and restores them on load, so either file boots identically. (The single-chip .bin ROM files in Hyperion’s Kickstart 3.1.4/3.2 releases, such as kick.a500a600a2000.46.143.bin, are of this kind: every 16-bit word has its bytes exchanged.) A 256 KiB Kickstart 1.x part is mirrored across the 512 KiB ROM window, as it decodes on real hardware. The split hi/lo chip pairs for the 32-bit machines are not accepted; use the matching single-file image instead.

fmv = true fits the CD32 Full Motion Video module with Copperline’s bundled open-source 256 KiB replacement ROM, and fmv_rom = "path" fits it with a custom image (such as the Commodore v40.30 ROM) instead; both are valid only with the CD32 machine profile. The cartridge slot is empty by default: a stock CD32 has no module, and fitting one changes the guest’s memory layout and boot timing enough to alter titles that never used it (fmv_rom = "", the older spelling of an empty slot, is still accepted). The module autoconfigures ahead of the standard Zorro chain, driving the CL450 video and L64111 MPEG Layer II audio decoders through guest code. The launcher’s ROM tab exposes this setting as FMV module ROM.

The open ROM includes a clean-room cd32mpeg.device and videocd.library compatible with CD32 Kickstart 3.1. The library identifies inserted Video CDs and parses their metadata. Under CD32 Kickstart, the bundled version 41 cdstrap autoboots Video CDs into a track menu: Up/Down navigates, Red plays, and Blue stops or exits. Standard CD32 game discs pass through to the default boot sequence. The bundled AROS ROM has its own MPEG device and CDXL playback support but bypasses cartridge diagnostics, so the cartridge’s library and player currently work only under Kickstart. Neither path needs proprietary Commodore code or CL450 microcode: Copperline models the CL450 command interface at the host level.

Copperline also names the ROM it is given. A ROM file’s name is whatever its dumper called it, so the image is identified by checksum against a table of the released Amiga boot ROMs -- every Kickstart from 1.0 to 3.2.3, the CD32 Kickstart and extended ROM, the CDTV/A570 extended ROMs and the A1000 bootstrap -- and the version is reported as, for example, Kickstart 3.1 (40.68) A1200. Identification survives the same forms the loader accepts (byte-swapped dumps, a 256 KiB part stored doubled), and an Amiga Forever image still in its AMIROMTYPE1 container is reported as encrypted rather than unknown. The identification appears in the start-up config: log line, in the About window’s ROM: line, in the OSD when a ROM is fitted from the menu, and under each path row of the machine-configuration screen’s ROM tab. The bundled AROS ROM reports itself as bundled AROS; any other image the table does not carry -- DiagROM, a ROM you built yourself -- goes unnamed and boots as usual.

Where bundled files are found

Copperline ships the open files it fits by default -- the AROS boot ROM, the open CD32 FMV, A2091, A4091, and lide boot ROMs, and the HRTMon cartridge image -- together with the WHDLoad support archives (release builds include them; otherwise fetch them once with tools/fetch-whdload.sh or Download on the launcher’s WHDLoad page). Each set lives in its own subdirectory, looked for in this order:

  1. the directory named by the set’s environment variable (below);

  2. <sub>/ beside the executable;

  3. Contents/Resources/<sub>/ in a macOS .app bundle;

  4. ../share/copperline/<sub>/ relative to the executable (a Homebrew or Unix install);

  5. assets/<sub>/ in the source tree, for a development build.

The WHDLoad archives are also looked for in whdload/support/ under the host data directory (where the launcher downloads them), ahead of the source tree.

Files<sub>Override
AROS boot ROM (aros-amiga-m68k-rom.bin, aros-amiga-m68k-ext.bin)arosCOPPERLINE_AROS_DIR
CD32 FMV module ROM (copperline-fmv.rom)fmvCOPPERLINE_FMV_DIR
HRTMon cartridge image (hrtmon.rom)hrtmonCOPPERLINE_HRTMON_DIR
A2091 boot ROM (copperline-a2091.rom)a2091COPPERLINE_A2091_DIR
A4091 boot ROM (a4091_cdfs.rom)a4091COPPERLINE_A4091_DIR
lide boot ROMs (lide.rom, lide-atbus.rom, cdfs.rom)lideCOPPERLINE_LIDE_DIR
WHDLoad support archives (WHDLoad_usr.lha, skick346.lha)whdbootCOPPERLINE_WHDBOOT_DIR

A key that names its own file (rom, fmv_rom, [scsi] rom, [lide] rom, [cartridge] rom, [whdload] whd_package / skick_package) is used instead of the search.

[paths] -- where files go

[paths]
# base = "/somewhere/else"   # move the whole tree; the rest are under it
# states = "states"          # save states, incl. the quick-save slots
# screenshots = "screenshots"
# recordings = "recordings"  # video captures, GIF clips and recorded input scripts
# nvram = "nvram"            # battery-backed RAMs, incl. CD32 game saves
# traces = "traces"          # debugger traces and waveform captures
# configs = "configs"        # configurations saved from the launcher
# roms = "roms"              # the rest are media folders (see below):
# mt32_roms = "roms/mt32"    # MT-32 control and PCM ROMs (default: mt32 inside roms)
# floppies = "floppies"
# harddrives = "harddrives"
# cds = "cds"

[paths] sets where Copperline writes its output files, where file dialogs open when their field is empty (until a dialog for that kind of file has been used in the session -- from then on it opens where the last one was answered), and where a relative media path is looked for when the working directory does not have it (see Relative media paths). Every key is optional and falls back to the default directory structure under the host data directory (~/Documents/Copperline on macOS and Linux, %USERPROFILE%\Documents\Copperline on Windows, or the application folder in a portable installation).

Relative paths are resolved against base (which itself defaults to the host data directory), while absolute paths are used directly. Output folders are created automatically on first write. Media folders are not created automatically and are only used when they exist.

These name folders on the machine that runs the configuration, so a config copied to another machine may name folders that are not there. At startup each entry set here is checked and one that cannot be found is ignored with a warning in the log, falling back to its default -- the check waits no more than a moment, so a dead network mount delays starting rather than preventing it. Explicit output paths on the command line (--screenshot-after, --save-state-after, and so on) are used exactly as written and never consult this section.

[machine] -- machine profiles

[machine]
profile = "A1200" # A1000, A500, A500OCS, A500Plus (A500+), A2000, A600, A1200, A3000, A4000, CDTV, CD32
rtc = true        # add a battery RTC (default: only A500+/A2000/CDTV/A3000/A4000 ship with one)
# rtc_chip = "RP5C01"              # MSM6242 (default) or RP5C01 (A3000/A4000 default)
# rtc_time = "2005-03-18 01:58:29" # seed the clock; it then ticks in emulated time
# rtc_frozen = true                # stop the seeded clock at rtc_time exactly
# battmem = "battmem.nvram"        # RP5C01 battery-RAM backing file (default when fitted: in the [paths] nvram folder)
# mem_controller = "ramsey-07"     # none, ramsey-04 (A3000), ramsey-07 (A4000)
# rom_scsi_device_disable = true   # skip the ROM's scsi.device (default: when its bus has no drives)

A machine profile bundles the chipset, CPU, memory, gate array, and peripheral defaults of a real machine. The key is profile (the deprecated model alias still parses) so that it never collides with [cpu] model. Explicit [cpu], [chipset], and [memory] sections override individual profile defaults. Without a [machine] section you get the A500 Rev 6A default (the same as the A500 profile: ECS 8372A Agnus, OCS 8362 Denise, 68000, 512K chip RAM, 512K trapdoor slow RAM) -- the most common and most-targeted Amiga. An explicit [chipset] revision overrides the per-machine chips, so revision = "OCS" gives a plain 8371/8362 OCS machine.

ProfileChipsetCPUChip RAMSlow RAMExtras
A1000OCS (8361/8367 Agnus, OCS Denise)68000 @ 7.09 MHz256K0WCS, boot ROM + Kickstart disk
A500Rev 6A: ECS 8372A Agnus, OCS 8362 Denise68000 @ 7.09 MHz512K (up to 1M)512K--
A500OCSOCS (8371 Fat Agnus, OCS Denise)68000 @ 7.09 MHz512K512Kearly A500 (Rev 3/5)
A500PlusECS (8375 Agnus, ECS Denise)68000 @ 7.09 MHz1M0RTC
A2000Rev 6.x: ECS 8372A Agnus, OCS 8362 Denise68000 @ 7.09 MHz1M0RTC, Zorro II slots
A600ECS (8375 Agnus, ECS Denise)68000 @ 7.09 MHz1M0Gayle IDE
A1200AGA (Alice/Lisa)68EC020 @ 14.18 MHz2M0Gayle IDE
A3000ECS68030 @ 25 MHz2M0Ramsey-04 with 4M motherboard RAM, RP5C01 RTC, SCSI, Z3660 RTG
A4000AGA (Alice/Lisa)68040 @ 25 MHz2M0Ramsey-07 with 4M motherboard RAM, RP5C01 RTC, IDE, Z3660 RTG
CDTVECS68000 @ 7.09 MHz1M0DMAC CD controller, RTC, 256K extended ROM, no floppy drive
CD32AGA (Alice/Lisa)68EC020 @ 14.18 MHz2M0Akiko, CD32 pad, NVRAM, 512K extended ROM, no floppy drive

rtc exists because most Amigas shipped without a battery-backed clock. The A500Plus (an OKI RTC soldered to the Rev 8A board), A2000, CDTV, A3000, and A4000 fit one by default; the base A500/A500OCS, A600, A1200, A1000, and CD32 have none. Set rtc = true to add one -- for an A600HD or a clock-equipped A1200, say -- so the Workbench clock keeps time.

rtc_chip names the part in that socket, because Commodore used two with different register protocols: the OKI MSM6242 on the small boxes, the A2000, the CDTV, and the aftermarket clock expansions, and the Ricoh RP5C01 on the A3000/A4000 motherboards (the Ricoh also carries 26 nibbles of battery RAM, which AmigaOS uses via battmem.resource on those machines). The default follows the profile -- RP5C01 on A3000/A4000, MSM6242 everywhere else -- and setting the key implies rtc = true. AmigaOS probes for either part, so the choice is mostly invisible to it, but Linux/m68k does not probe: it drives the chip the machine model dictates, so an A3000/A4000 booting Linux needs the RP5C01 answering for its clock to work.

battmem persists the RP5C01’s battery-backed registers -- the 26 RAM nibbles behind battmem.resource plus the alarm and 12/24 settings -- across runs, the way the real board’s battery does. This is where scsi.device keeps its per-unit SCSI host settings (an A3000’s or A4091’s synchronous-transfer, disconnect, and last-drive options, including remembering attached CD-ROM drives), so without it those revert every run. The file uses the same .nvram layout as WinUAE and Amiberry, so backing files interchange between emulators; only the battery payload loads back -- the time-of-save digits in the file never override the (host- or rtc_time-driven) clock. Whenever an RP5C01 is fitted it defaults to battmem.nvram in the [paths] nvram folder (a battmem.nvram already in the working directory from an earlier Copperline keeps being used from there); point it elsewhere with a path, or set battmem = "" to keep the battery registers session-only. A persisted file carries guest-visible state from one run into the next by design, so delete or disable it where byte-for-byte reproducible headless runs matter.

rtc_time seeds the clock instead of letting it mirror the host’s: the value is either an integer (Unix seconds, UTC) or a string "YYYY-MM-DD HH:MM[:SS]" giving exactly the wall-clock time the guest reads at power-on. A seeded clock ticks with emulated time, so the time the guest sees is deterministic and reproducible byte-for-byte across runs -- the way to test time-dependent guest software (TOTP/RFC 6238 vectors, timestamped logs, date rollovers) or just to boot into a fixed date. Setting a time implies rtc = true; combining it with an explicit rtc = false is an error. rtc_frozen = true additionally stops the tick so every read returns rtc_time exactly. Both are also available as --rtc-time / --rtc-frozen CLI flags, and a control-protocol session can inspect and move the clock live with rtc.get / rtc.set (see the control protocol).

Two guest-side notes: Kickstart 2.0+ loads the system time from the battery clock automatically at boot, while Kickstart 1.3 only does so when the startup-sequence runs SetClock LOAD; and the chip’s two-digit year registers mean AmigaOS applies its usual century window, so seeds outside 1978-2077 will not read back as the year you set. A host-initiated reset or power cycle restarts the emulated timeline and therefore restarts a seeded clock from rtc_time; a guest-initiated reboot (the 68000 RESET instruction) leaves it ticking, like real battery-backed hardware.

The guest can set the clock: the chip’s counters are read/write, so SetClock SAVE (or the Time preferences editor, or another OS’s hwclock) takes effect and the clock counts on from the written time. That time belongs to the running machine: it counts on through a guest reboot and a keyboard reset, and travels in save states, but the host clock is never changed, and the next power cycle starts again from the host time or from rtc_time.

The A3000 and A4000 profiles are the big-box machines. They carry a Ramsey memory controller (mem_controller), whose two registers answer at $DE0003 and $DE0043, and Gary rather than Gayle -- so no PCMCIA slot and no Gayle IDE.

rom_scsi_device_disable skips Kickstart’s built-in disk driver. It defaults on when the machine’s own controller -- the IDE port of an A600, A1200, or A4000, or the A3000’s SCSI -- has no drives configured: with nothing to boot, the driver only costs startup time probing an empty bus. Configuring a drive turns the driver back on automatically (it is the boot path for those drives), and setting the flag explicitly wins in either direction. The ROM file itself is never modified.

Both profiles fit their stock 4M of Ramsey-controlled motherboard fast RAM; [memory] motherboard resizes it up to 16M, and on the A4000 up to 64M via the motherboard RAM expansion space (see the [memory] section). [memory] accelerator adds CPU-slot RAM at $08000000 on any 32-bit machine.

mem_controller is normally left to the profile. It is a separate key because Ramsey’s registers collide with nothing else, so it can be fitted to a wedge machine to exercise diagnostic tools that expect one.

The A1000 profile models the original Amiga, which has no Kickstart ROM. Its rom is instead the 64K bootstrap ROM (“Amiga ROM Bootstrap”); on power-up the bootstrap loads Kickstart from the Kickstart disk in DF0 into 256K of writable control store (WCS) at $FC0000, write-protects it, and runs it, as the real machine does. So an A1000 config names the bootstrap ROM as rom and puts the Kickstart disk in [floppy.df0]; leave it in and the machine boots to Kickstart (which then asks for a Workbench disk). See the ready-made a1000.example.toml.

The A500 profile models the common Rev 6A board: the ECS “Fatter” 8372A Agnus (a 1 MiB chip-RAM reach and the software-selectable PAL/NTSC switch via BEAMCON0) paired with the original OCS 8362 Denise. It is therefore an Agnus-only ECS upgrade, not a full-ECS machine -- the OCS Denise means no superhires or BRDRBLNK, as on the real board. Chip RAM defaults to the stock 512K but accepts up to 1M ([memory] chip = "1M"); more than 1M is rejected because the 8372A cannot address it. Booting with no [machine] section uses the same Rev 6A defaults; select A500OCS or set [chipset] revision = "OCS" for the older 8371/8362 machine.

The A2000 profile models the B2000 Rev 6.x motherboard, the revision most A2000s are: the same chip pair as the A500 Rev 6A (the 8372A Agnus with the OCS 8362 Denise), a 68000 at 7.09 MHz, the board’s 1 MiB of soldered RAM all addressed as chip RAM, nothing at $C00000, and the battery-backed OKI MSM6242 clock on the motherboard. Its Gary is the A500’s part, so the motherboard address decode is the A500’s. The board’s five Zorro II slots are the autoconfig chain every profile has: [memory] fast, [scsi] (an A2091 makes it an A2000HD), [[zorro]] and the other Zorro II boards configure on it with no further setup. There is no slot count to configure and none is enforced. The other board revisions are overrides on the same profile:

BoardSettings on top of profile = "A2000"
Rev 4.x (8371 Fat Agnus, 512K chip plus 512K at $C00000)[chipset] revision = "OCS", [memory] chip = "512K", slow = "512K"
Rev 6.x (the default)none
Late Rev 6 with the ECS Denise[chipset] revision = "ECS" (or denise = "ECS")
With an accelerator in the CPU slot[cpu] model, plus [memory] accelerator for its RAM

revision = "OCS" on its own is refused, because the 8371 cannot address the Rev 6.x board’s megabyte as chip RAM. The original German A2000-A (an A1000-derived design without Gary) is not modelled. The profile boots the bundled AROS ROM like every other, and Commodore’s A500/A2000 Kickstarts (1.2, 1.3, 2.0x and 3.1) as the A500 profile does.

[emulation]

[emulation]
power_on = true            # false = start powered off at the test screen
auto_launch = false        # true = the launcher runs this file at once
pacing_budget = "cycles"   # "cycles" (hardware-accurate) or "instructions"
realtime_priority = false  # true = raise the pacer/audio thread priority
warp_speed = "max"         # turbo limit: "2x", "4x", "8x", "16x", or "max"
warp_boot = false          # warp the boot until storage goes idle
warp_boot_idle = 10        # ...for this many emulated seconds
# warp_until = 12.0        # or warp until an absolute emulated time
uaelib = true              # uaelib trap and WinUAE memory-write debug output
uaelib_files = false       # opt-in file helpers, below the --run directory
rewind = false             # true = record rewind history from power-on
rewind_budget_mb = 256     # host memory the rewind history may hold
rewind_interval_frames = 25 # emulated frames per rewind step
run_ahead_frames = 0       # run-ahead input-latency reduction, 0..4 (0 = off)

The deterministic cycle-driven core is the only emulation timing. It is paced to wall-clock for the interactive window and runs unthrottled for headless captures; the emulated result is identical. (An older speed key here is accepted but ignored -- “real” was the only timing model, so it carried no information.)

[cpu]

[cpu]
model = "68000"     # 68000, 68010, 68EC020, 68020, 68EC030, 68030,
                    # 68EC040, 68040, 68EC060, 68060
clock_mhz = 14.0    # optional; defaults to the model's stock speed
# icache = false    # instruction-cache model (on by default on all 020+ models)
# dcache = false    # data-cache model (on by default: 030/040/060)
# fpu = true        # fit a 68881/68882 (needs the 68020+ coprocessor
#                   # interface, so not valid on a 68000/68010/68EC040/
#                   # 68EC060). The full 68040's and 68060's on-die FPUs
#                   # are on by default.
# unimplemented = "trap"  # 68040 and 68060 only: "trap" (faithful; the OS
#                   # needs 68040.library / 68060.library) or "native"
#                   # (execute the instructions left to software directly)
# jit = true        # experimental: fast batch/trace-JIT CPU execution
#                   # (68020+; not cycle-exact)
# speed = "fastest" # with jit: adapt the JIT clock to the host while the
#                   # window paces to real time, like WinUAE's "fastest
#                   # possible" (not reproducible; default "fixed")

[memory]

[memory]
chip = "512K"        # OCS max 512K; ECS/AGA max 2M
fast = "0"           # Zorro II fast RAM at $200000: 64K..8M board sizes
slow = "512K"        # A500 trapdoor RAM at $C00000: 0 or up to 512K
init = "zero"        # or "random[:SEED]" / "pattern:0x5555" for read testing
motherboard = "0"    # Ramsey motherboard RAM (A3000/A4000): up to 16M (A4000: 64M)
accelerator = "0"    # CPU-slot RAM at $08000000 (32-bit CPUs): up to 128M
z3   = "0"           # Zorro III RAM (needs a 32-bit CPU): 64K..1G, power of two

Sizes take a K, M, or (for Zorro III) G suffix -- KB/KiB and so on work too -- or a plain byte count, and must be multiples of 4 KiB.

init controls cold power-on contents for writable system RAM. The default, "zero", preserves Copperline’s normal compatibility behaviour. "random" fills chip, slow, motherboard, accelerator, A1000 WCS, and RAM-backed Zorro boards with deterministic pseudo-random bytes, which helps expose guest code that reads memory before initializing it. The fixed default seed is identical across hosts and repeated cold resets; "random:SEED" selects another decimal or 0x hexadecimal 64-bit seed for test matrices. "pattern:WORD" instead repeats one decimal or 0x hexadecimal 16-bit word in big-endian Amiga byte order; for convenience a bare value such as "0x5555" means the same thing as "pattern:0x5555". The Machine Configuration screen exposes these as Power-on fill and Fill pattern on its Memory page. Warm keyboard resets still preserve RAM, and save-state restores reproduce the saved bytes exactly.

For a one-off developer run:

./target/release/copperline --ram-init random --config game.toml --noaudio \
  --screenshot-after 20 /tmp/game-random-ram.png

Additional expansion boards can be described with [[zorro]] metadata files; see Writing Zorro board plugins.

[chipset]

[chipset]
revision = "OCS"   # OCS, ECS, or AGA preset
video = "PAL"      # PAL or NTSC
# agnus = "8372A"  # optional fine-grained override
# denise = "OCS"   # optional fine-grained override
# genlock = true   # an external genlock supplies sync (default false)

revision is a preset; agnus and denise allow the mixed configurations real machines shipped with (a late A500 with an ECS Agnus but OCS Denise, for example):

The ECS preset picks an 8372A for up to 1M chip RAM and an 8375 above; the A500Plus and A600 profiles always use the 8375, as the real boards did, and the A500 and A2000 profiles the 8372A with the OCS Denise until a revision says otherwise. The AGA preset resolves to Alice and Lisa: 8 bitplanes, the 256-entry 25-bit palette with BPLCON3 BANK/LOCT banking, HAM8, FMODE wide bitplane and sprite fetch (DMA and manual sprites), SSCAN2/BSCAN2 scan doubling, 35 ns BPLCON3 SPRES output, BPLCON4, and CLXCON2. Remaining gaps are recorded in Chipset modules.

genlock = true fits an external genlock supplying sync. Setting BPLCON0.ERSY then slaves the beam to that sync instead of stopping it, so the beam counters (VPOSR/VHPOSR) keep moving; the external sync runs at the machine’s own timing. Without a genlock, ERSY freezes the counters, as on a real Amiga with nothing in the genlock socket. Software written for a genlock or a video-slot card that supplies sync (the NewTek Video Toaster) runs with ERSY set and waits on the beam, so it needs this. Kickstart’s genlock probe also finds the genlock, so the OS hides the programmable 31 kHz modes that a genlock cannot follow. A video-slot card that supplies its own sync sets this for as long as it is fitted.

[video_slot]

[video_slot]
card = "toaster"          # "none" (default) or "toaster"
media = "C:/Toaster/Amiga Toaster Files"   # the card's host folder
# monitors = true         # Preview and Program monitor windows (default true)
# preview_overlay = false # the switcher interface over Preview (default false)
# volume = "ToasterFiles"  # also mount media in the Amiga as ToasterFiles:
# flyer = false           # also fit a Video Flyer (needs card = "toaster")
# converter = true        # with a Flyer, open the clip converter window too

card = "toaster" fits an emulated NewTek Video Toaster 4000 in the A4000’s video slot: a card that watches the digital RGB output line by line and answers on the parallel port, as the real one does. The NewTek switcher (Toaster 4.x) then starts, passes its own card tests and runs; the Toaster software and the Kickstart ROM are not included and must be supplied. The card supplies genlock sync while fitted (see [chipset] genlock).

media is the folder that stands in for the card’s connectors (default: Amiga Toaster Files in Copperline’s own folder). It is created with these subfolders on first use:

A video file’s sound comes along with its picture and follows the switcher: what is on Program is what you hear, through the emulator’s sound output, mixed by how much of each input Program shows (a dissolve crossfades the sound, a wipe by area, framestores and mattes are silent). Recordings carry the same sound. The real card handles picture only; this stands in for the audio-follow-video mixer beside it.

Until the switcher first drives the card, while the machine boots, both outputs are black and silent and the input folders are not read yet; the inputs start playing once the switcher is up.

The switcher’s own screen is an NTSC overscan display, taller and wider than the standard TV picture, so the default TV framing leaves its bottom rows (the AUTO/TAKE row and the version line) and its left edge off the glass. [display] overscan = "smart" with autocrop = true crops the window to the display window the switcher programs instead, which shows the whole screen; Video Settings -> Framing and Autocrop in the menu switch the same settings live.

With monitors on, the card’s two outputs open as windows of their own, each on a picture monitor: Preview and Program. Closing one only hides it; Recording -> Show Toaster Monitors brings both back.

The monitors’ front-panel buttons work, as on a studio monitor:

The settings are kept per monitor in the media folder’s .copperline/monitors.json.

In the Program window, the REC button on the monitor’s top edge (or R) starts and stops recording the Program output, picture and sound, into Output (its lamp lights red while it runs); Recording -> Record Toaster Program does the same. SETUP beside it opens the recording setup over the picture: the format, MP4 (H.264 video with square pixels and AAC sound; the default) or the recorder’s lossless AVI, the MP4’s quality (Standard, CRF 18 and 192 kb/s, or High, CRF 12 and 320 kb/s), and a button that opens the Output folder. An MP4 is recorded into an AVI beside it first and made from it with ffmpeg when the recording stops (the button reads SAVING and the title says so until it is done; the AVI is then removed, or kept if ffmpeg is missing or fails). The setup is kept in the media folder’s .copperline/recording.json. The monitor artwork can be replaced by a monitor-program.png or monitor-preview.png in the media folder (or monitor.png for both): the tube is found as the area around the picture’s centre enclosed by a near-black gap. A replaced artwork has no working front panel.

Effect sounds. Some transitions carry sounds (8SVX samples in the effect, such as Shatter, Falling Sheep or Camera Iris) that the switcher plays through the Amiga’s own audio, which Copperline mixes into its sound output and the recordings. NewTek’s switcher skips them when a Flyer is fitted (animfxhandler.a: “dont do sound if flyer!”), so with flyer = true they are silent, as they were on a real Toaster-Flyer; without the Flyer they play.

volume also mounts the media folder in the Amiga as a volume of that name (like a [[filesys]] entry, never a boot candidate), so the Toaster software can load framestores from the input folders and save into Output, and so the control link below can reach the Amiga. The usual name is ToasterFiles.

Control link. With volume set and S:Copperline-Link.rexx (from Copperline’s assets/toaster) started by S:User-Startup (Run >NIL: SYS:Rexxc/RX S:Copperline-Link.rexx), an MCP client can drive the Toaster software itself: the bridge drops ARexx jobs into the media folder’s .copperline subfolder and the script runs them inside the Amiga (see MCP server in the control-protocol reference: tools toaster_switcher, toaster_project, toaster_program, toaster_rexx, next to toaster_status, toaster_capture, toaster_record, toaster_input, and the Flyer clip tools flyer_import, flyer_export, flyer_list). A job puts the switcher’s and the editor’s ARexx hosts on ARexx’s shared list of function hosts only while it runs: left there (an addlib with no remlib, in any script), they take the calls of the CG’s own macros and hang them.

Assigns. The Toaster software expects what NewTek’s installer adds to S:User-Startup: Assign Toaster: on the NewTek folder, Assign REXX: Toaster:Arexx ADD (the CG runs its start-up macro, which loads the fonts it starts with, and its Alt-F keys from REXX:CG), Assign HIIP: Toaster:Programs/Hiip_Support (the image loaders and savers) and, for ToasterPaint and older CG pages, Assign ToasterFonts: Toaster:PSFonts.

Flyer clips. The flyerclip program (built from source and Homebrew with Copperline) converts between video files and NewTek Video Flyer clips, the Flyer’s own format: VTASC-coded NTSC composite fields and 16-bit stereo sound (crates/flyerclip, transcribed from NewTek’s Flyer sources; the format is written up in crates/flyerclip/FORMAT.md). flyerclip import movie.mp4 writes movie.clip onto the Flyer’s first drive, the media folder’s Flyer/FA0 folder; flyerclip export movie.clip writes movie.mp4 beside it; flyerclip info describes a clip. Dropping a file on the program does the right one. --hq5/--hq6 give each field a larger budget, --no-audio drops the sound and --seconds N stops early. ffmpeg does the decoding and encoding.

How a source becomes a clip: ffmpeg squares its pixels first (anamorphic video keeps its shape), fits it to 4:3 (letterboxed or pillarboxed, like a Toaster input, unless the converter below says crop or stretch) and scales it to the Flyer’s 752 samples by 480 lines. Each field is its own moment, 59.94 a second, as a camera records: an interlaced source is split into its fields, a progressive one sampled at the field rate (24 frame film comes out with 3:2 pulldown, 60 frame video keeps every frame), and the four fields of each colour frame take the lines of four pictures in turn. The sound is resampled to the Flyer’s 44.056 kHz.

The clip converter. flyer-convert (built from source and Homebrew with Copperline; invoked standalone as flyer-convert [--media DIR] [FILE|FOLDER...]) is the same conversion in a window of its own, drawn in the Toaster’s style. With a Flyer fitted, a windowed Copperline starts it beside the machine, pointed at media (converter = false stops that); it runs on its own, can stay open after the machine quits, and a second copy started while one runs just exits. Drop video files, still pictures, folders or a folder of numbered pictures (one sequence) on it, or use Add Files / Add Folder; choose the Flyer drive, quality (Standard, HQ5, HQ6), motion (fields at 59.94 or frames at 29.97), the fit, how long stills last and how fast a sequence plays, the sound (stereo, mono or none) and its gain per channel, and Convert. Each clip lands on the drive with its crouton icon (<clip>.I, a frame a second in), so the Grazer shows it with a picture straight away; a .clip file dropped on it is copied over as it is. The preview shows the selected source as the clip will carry it, fitted, and follows the conversion while it runs. Its settings are kept in flyer-convert.json beside the program.

Video Flyer. flyer = true (with card = "toaster") also fits a NewTek Video Toaster Flyer, the Zorro II card that records and plays clips into the Toaster’s inputs 3 and 4. The Toaster software finds it as NewTek’s board (manufacturer 2191, product 0) and loads it as on a real machine: FlyerInit (or the switcher at start-up) downloads the Flyer’s firmware and chip files from NewTek:Programs/Flyer_Support and reports “Okay”, and the switcher then starts with its Flyer controls. The card’s own processor is not emulated: the window is its shared memory, and the commands the software leaves there are answered by Copperline as the Flyer’s firmware would (the board’s serial number is in the 2CC range of the installed chipset.dat; its EEPROM settings last until the emulator quits). COPPERLINE_DIAG_FLYER=1 logs every command it is sent.

The Flyer’s SCSI drives are folders in media’s Flyer folder: FA0 (bus A, unit 0; created when missing), and FB0, FC0, ... when those folders exist. Files are the clips’ bytes as the Flyer stores them (what flyerclip import and the converter write, or a clip copied off a real Flyer drive); a .flyervol file whose first line is a name renames the volume, which is otherwise FlyerA0, FlyerB0, ... With the Toaster’s FA0 DOS driver mounted (copy NewTek/Programs/System_Support/Devs/DOSDrivers/FA0 into DEVS:DOSDrivers), the drive is the FlyerA0: volume, which lists, reads and copies like any other. Clips are read-only (they cannot be overwritten, extended or deleted from the Amiga, and nothing records into the drives yet, though Process Clip below makes new ones from them); other files, such as the crouton icons below, are written straight into the folder. A name the Amiga gives a new or renamed file or drawer must be one ordinary host file name: one that starts with a dot or holds a backslash is refused (as is a DOS device name such as NUL on a Windows host), so nothing is written outside the drive’s folder or hidden from its own listing. Clips put into the folder while the machine runs show up the next time the Grazer lists the drive.

A typical start-up, as in the Toaster’s own installation: S:Toaster-Auto (or S:User-Startup) runs NewTek:Programs/System_Support/c/FlyerInit before rx Toaster:Programs/StartToaster, so the Flyer is set up when the switcher starts.

Playing clips. Clips go into a project like any crouton: from the Grazer (the FlyerA0: drive), or with the Editor’s ARexx CROUTONLOAD('FlyerA0:movie.clip'). A clip’s crouton shows a picture from the clip once it has an icon: the Editor’s MAKEICON('FlyerA0:movie.clip', field) (or the Flyer controls) has the switcher read that field off the drive and write movie.clip.I beside the clip, as on a real Flyer. Playing the project (or PROJECTPLAY) hands the clips to the Flyer as a sequence; the Flyer plays them at the right fields on its channels A and B, which take over the Toaster’s inputs 3 and 4 while it plays (the switcher routes them with the Flyer’s ToasterMux), so the project’s transitions run between the clips as on the real system. A clip crouton run on its own (CROUTONRUN, or from the switcher) plays the same way; CROUTONSTOP stops it. In/out points, audio volume, pan, attack and decay and audio envelopes come from the croutons’ settings, as the Editor sends them.

The Flyer’s sound is the system’s sound: its eight-channel mixer’s output (735 samples a field, about 44.056 kHz, locked to the video) goes to the emulator’s sound output and into the Program recording, whatever the switcher shows. The input folders’ sound keeps following Program as described above (it stands in for what would reach the Flyer’s line inputs); an input the Flyer has taken over is silent there.

Jog and shuttle work as on the real card: opening a clip’s controls puts the clip on Program (through input 3 or 4), and dragging its in/out sliders, jogging with the mouse or the arrow keys (Shift for 30 frames), or holding a shuttle arrow moves the picture through the clip a colour frame at a time, with the sound of each frame heard as it goes. While the position stands still the frame’s sound repeats as a short loop, as on the real Flyer, until the next move or until the controls close (the Editor’s own quieting after a pause does not happen yet). The shuttle moves at the speeds the switcher asks for rather than racing to the end.

Process Clip (the cutting room) works: mark the pieces of a clip with their in and out points and names, choose picture, sound or both, and Perform makes each piece a clip of its own on the drive, copied from the original’s coded frames (whole colour frames, so a piece starts on the colour frame holding its in point), with its icon. Without Destructive the original stays. A destructive cut takes the original off the drive as the Flyer would, but its file is moved into a Trash folder beside the drive folders rather than deleted, so it can be put back. Not emulated yet: recording into the Flyer, SMPTE time code and the TBC module.

Flyer clips are decoded ahead of time on worker threads (two to four), so playback does not hold up the emulated machine; the picture is the same whatever the host’s speed. [cpu] jit = true runs the switcher, the Editor and Flyer playback correctly but does not make them faster: while a project plays, the switcher’s time goes on chip-bus and CIA accesses, which the JIT runs at the same speed as the precise core.

preview_overlay lets the switcher draw its interface over the Preview output when its own preference asks for it, as a one-monitor Toaster setup does. It is off by default because the interface has a window of its own.

Headless screenshots (--screenshot-after) also save each output on its monitor beside the capture (shot-preview.png, shot-program.png). COPPERLINE_DIAG_TOASTER=1 logs what the card decodes and the bus state it outputs; =fields also dumps one field’s line headers in forty; =perf logs, once an emulated second, the host time each stage of the card’s work took (toaster perf: lines: painting the field, scanning its headers, each source, the key, the mix, publishing, the Flyer’s decodes and waits), most of it on the card’s own compose thread, with submit and compose_wait the emulation thread’s share. How the card works is described in The video pipeline and in src/toaster/.

[display]

[display]
overscan = "tv"       # "tv" (default), "smart" or "full"
tv_h_centre = 0       # TV picture centring in lo-res pixels, -16..16 (+ = right)
tv_v_centre = 0       # TV picture centring in scan lines, -8..8 (+ = down)
pixel_aspect = "tv"   # "tv" (default, 4:3 CRT) or "square" (exact 2x2 lo-res)
scaling = "smooth"    # "smooth" (default, aspect fit) or "integer" (whole multiples)
autocrop = false      # crop the window to the programmed display window (default false)
deinterlace = true    # motion-adaptive interlace weaving (default true)
phosphor = 0.0        # CRT persistence fraction, 0.0 (off) to 0.95
shader = "none"       # "none" (default), "scanlines", "mask", "crt", or a .wgsl file
shader_strength = 1.0 # how strongly the shader is mixed in, 0.0-1.0
bezel = "off"         # monitor front: "off" (default), "1084", or "classic"
# bezel_stickers = "stickers"  # folder of PNG stickers for the bezel (default: none)
perf_overlay = false  # show the performance overlay at start (default false)
tint = "none"         # "none" (default), "bw", "green", "amber", or "sepia"
menu_scale = "1x"     # size of the pop-up menu: "1x" (default) or "2x"
full_screen = false   # open borderless fullscreen at start (default false)
maximized = false     # maximize with title bar and desktop taskbar (default false)
monitor = "auto"      # host display: auto, primary, one-based number, or exact name
# position = [100, 80] # window top-left in logical pixels relative to monitor
window_scale = 1.0    # initial window width and height multiplier, 0.5-4.0
# title = "{app} {version} · {machine} · {rom}"
status_bar = true     # show the status bar at start (default true)
track_display = "track"  # floppy counter: "track" (default) or "cylinder" (CYL.SIDE)
vsync = true          # synchronize desktop presentation to vblank (default true)
hidpi_texture = true  # draw the presentation texture at device-pixel density (default true)

The default window title shows the machine and boot ROM. For a different layout, set title with {app}, {version}, {machine} (or {m}), {rom} (or {r}), and {hash} (eight hexadecimal digits of the loaded ROM). Other text is literal; {{ and }} insert braces. For example, title = "Workbench test · {m} · {r}" gives an instance a visible name. Known Kickstarts use their checksum-identified version; AROS and unrecognized ROMs include the short hash. The title follows ROM changes and loaded states.

vsync controls desktop presentation. On uses strict FIFO vsync to prevent tearing. Off requests unsynchronized presentation where the graphics backend supports it; it may reduce latency but can tear. Video Settings -> VSync changes it live without restarting or changing normal emulation speed. The choice carries into the configuration screen when saving a config. Headless captures and the browser frontend are unaffected. Roughly 50 Hz PAL output can still show an uneven cadence on fixed 60 Hz or 120 Hz displays: VSync does not make those refresh rates match.

hidpi_texture decides the resolution of the texture the window is drawn from. On (the default) it follows the display’s device-pixel density, so a 200% (Retina) window is fed a 2x texture and every host row picks its own woven scanline. Off keeps the texture at canvas resolution and leaves the upscale to the GPU’s scaler pass, a quarter of the per-frame texture upload (and of the CPU copy, when a menu or overlay makes the frame compose on the CPU) -- worth trying on a slow host that falls short of real time in a high-density window. Integer scaling looks the same either way (its whole-number blocks are point-sampled from the 1x texture); the smooth fit selects rows at canvas resolution instead of the finer texture grid, which fine interlaced detail can show. Captures are never affected.

The emulated framebuffer always carries the full overscan field Denise produces; overscan picks how much of it is presented. "tv" presents what the monitor’s glass shows: the captured aperture -- the standard window plus the symmetric overscan margin the framebuffer captures on its right edge -- fills the whole 4:3 glass, the way a real set’s raster overscans its screen, so the picture (border colour included) reaches every edge with no black bezel columns. The live window and PNG screenshots / --dump-frames present the same 716x540 glass. PAL and NTSC scans share that shape because both apertures fill the same glass: an NTSC scan’s shorter crop (the 200-line standard window plus the same overscan margin) is scaled onto the same output rows. "full" shows everything, which is useful when debugging display alignment. COPPERLINE_OVERSCAN=full|tv|smart overrides this for a single run. In all modes the presentation geometry holds steady across the blank frames a screen change produces: a frame showing only border colour keeps the previous frame’s aperture and centring instead of snapping to the full framebuffer, so the picture does not jump sideways at Kickstart screen changes.

"smart" keeps the TV aperture and automatically adjusts its horizontal position after the hardware display envelope has remained stable for 25 distinct presented emulated frames. The automatic correction is limited to eight lo-res pixels each way; blank frames retain the last position, and small display windows do not pull the aperture toward individual objects. It can bring slightly off-centre artwork, such as the CD32 boot logo, into view without zooming out. Manual H/V centring remains available as a trim; the combined horizontal correction is limited to the manual control’s 16-pixel travel. The menu’s Video Settings -> Framing switches between TV, Smart and Full overscan live. TV remains the default.

Smart framing follows display geometry, not software identity or pixel colour. A fixed aperture can still crop a large overscan display, and deliberate effects in its newly exposed margin may become visible. Use TV for a fixed crop, or Full overscan to inspect the entire captured field.

tv_h_centre / tv_v_centre nudge where the TV presentation centres the picture on the glass -- the H-CENTER/V-CENTER controls a real monitor carried on its front. tv_h_centre is in lo-res pixels, positive moving the picture right; tv_v_centre in scan lines, positive moving it down. The default aperture centres the standard window, which leaves most of the captured left overscan off-glass; software that leans its artwork into that overscan (the CD32 boot logo’s leading “A” serif, for example) comes fully into view a few pixels of tv_h_centre later, as it did on a set whose picture sat a little right of centre. Glass the nudge exposes beyond the captured raster is unscanned and shows black. The knobs move the TV aperture, so overscan = "full" ignores them; captures (screenshots, frame dumps) follow them like the live window. The menu’s Screen Centring rows (under Video Settings) step the same knobs live; the change is remembered like any menu setting.

pixel_aspect selects how emulated scanlines map to host rows. The default "tv" presents the field with the non-square pixel aspect of a 4:3 CRT: the full overscan scan fills a 4:3 picture, so PAL lo-res pixels come out slightly wider than tall, as a real TV shows them (a 320x256 screen spans about 640x482 window pixels). "square" uses one host row per woven scanline instead, so every low-resolution pixel is an integer 2x2 square and a 320x256 PAL screen occupies precisely 640x512 window pixels -- slightly taller than a real CRT picture, but exact for side-by-side pixel comparison with square-pixel emulators. The menu’s Pixel Aspect item flips the mode live (remembered like any menu setting), and COPPERLINE_PIXEL_ASPECT=tv|square overrides it for a single run.

scaling selects how that presentation canvas reaches the window, which is a separate question from what the canvas is. The default "smooth" fits the canvas to the window preserving its aspect ratio and interpolates, so the picture always uses the full window height (or width) whatever fraction the scale works out to. "integer" instead draws the canvas at whole-number multiples -- the largest that fits the window, measured in physical device pixels, and under the TV aspect a separate whole number per axis (below) -- centred in black borders and point-sampled: every canvas pixel becomes the same block of host pixels, with no row or column sampled twice, which is the look WinUAE and Amiberry call integer scaling.

The fit is taken in whole canvas pixels against the physical surface: the canvas is re-rendered at whatever factor fits, rather than drawn at whole multiples of a fixed high-DPI texture, so every step exists on every display. A 2x-DPI laptop whose screen holds three physical pixels per canvas pixel but not four gets the 3x picture, and fractional desktop scales such as 150% take their whole physical multiples the same way. A 5K or 6K display in fullscreen fills as much of its height as the next whole multiple allows. The internal render factor is capped at 4x but the displayed multiple is not, so the display’s pixels stay exact whole blocks past the cap; only the status bar and menus, drawn at the capped factor, are resampled there. Only when the window is too small for even a 1:1 copy -- smaller than the canvas itself in physical pixels -- does the picture fall back to the smooth fit rather than cropping to what fits. RTG board modes follow the setting too: their frame is scaled from its own native resolution, so a 640x480 board screen is drawn at 1x, 2x, 3x of those pixels inside the display area. The fit uses the window area above the status bar and open panel strips, independently of the chipset canvas: a 640x480 board screen fits at 2x on a 1920x1080 display. The debugger’s display pane uses the same native fit. The performance readout, the on-screen messages and the recording badge sit at the corners of that picture. Menus, panels and their translucent backgrounds use the same brightness as chipset displays. Menus and panels keep the UI canvas’s proportions and scale, independently of the board mode. They are composited over the native RTG texture, so opening them preserves its exact pixel blocks, size and position, including with the status bar hidden.

Integer scaling draws from the unresampled canvas (one host row per woven scanline, matching pixel_aspect = "square"). Under the default TV aspect, the horizontal and vertical axes take independent integer multiples to approximate the 4:3 CRT pixel aspect (PAL pixels about 1.08x wider than tall, NTSC about 0.85x). The scaler picks the tallest integer fit whose aspect is within 10% of the display shape. With autocrop freeing the vertical margin that unused borders take, NTSC 200-line games reach a 4:5 pixel aspect on a 1080p display (a 1280x1000 active area), 6:7 at 1440p, and 4:5 at 4K. PAL uses square integer multiples until the display is tall enough for an 8:7 ratio. Odd scanline multiples stay crisp on progressive displays because woven line pairs are identical. pixel_aspect = "square" with "integer" keeps the multiples uniform and square, for side-by-side pixel comparisons. Switching integer scaling on in TV mode resizes the window to the unresampled canvas; interactive screenshots follow it, while scheduled captures keep the configured aspect geometry. Monitor bezels (bezel) use the resampled TV canvas under both scaling modes. Programmable (ECS/AGA VARBEAMEN) and RTG displays scale by uniform integer multiples. The menu’s Video Settings -> Scaling item switches modes at runtime.

autocrop (default off) crops the window display to the active raster window the hardware programs rather than showing the entire TV aperture. Most software occupies less than the full raster (a 320x200 screen, for example, uses 400 of 570 PAL woven lines), so cropping the unused borders lets the active image fill more of a 16:9 or 21:9 monitor. With scaling = "integer", the integer multiple is recalculated for the cropped dimensions, which often allows a larger factor.

The crop area is computed dynamically each frame from scanlines containing fetched bitplane data. The viewport expands immediately when a program opens a larger display and tightens smoothly after a smaller viewport has remained stable for roughly half a second, preventing visual jitter during scene changes. The status bar and overlay panels remain docked at the bottom of the window; opening a menu or panel temporarily reveals the full display area so no controls are obscured. Interactive screenshots follow the visible crop. Scheduled screenshots, frame dumps, and recordings capture the full configured aperture. CRT shader presets render over the cropped area. Programmable multisync modes (such as DblPAL or 31 kHz displays) are also cropped based on their active display windows. Autocrop is automatically suspended when using monitor bezels or RTG modes. The menu’s Video Settings -> Autocrop option toggles it at runtime.

For an automatic crop with the largest integer fit, use:

[display]
overscan = "smart"
autocrop = true
scaling = "integer"

Smart autocrop selects directly from the unmasked raster, before the TV aperture clips its edges. It includes the full detected display window, including artwork outside the usual TV view. PAL/NTSC pixel aspect comes from the scan rather than from the crop dimensions. For a 320x200 display on a 1920x1080 surface with the status bar hidden, PAL fits at 5x; NTSC uses the existing per-axis 4:5 fit. Larger title screens reduce the scale to fit their complete detected display. No picture lines are discarded to reach a larger multiplier. The detector uses fetched raster lines and programmed display spans; black pixels inside those spans remain picture content. This is automatic framing rather than per-game overscaling presets. Captures retain the configured aperture and centring, as with ordinary autocrop. Monitor bezels and RTG modes suspend autocrop.

deinterlace controls how interlaced (LACE) displays are presented. On (the default), a motion-adaptive deinterlacer weaves the two fields into a full-height picture where the content is static and interpolates where it moves, recovering the full vertical resolution without combing. Off, every field is simply line-doubled as it arrives, which shows interlace bob and flicker much as a TV without persistence would. COPPERLINE_DEINTERLACE=0 overrides the config for a single run.

phosphor blends each presented frame with a fraction of the previous one, approximating the exponential decay of CRT phosphor. Software that relies on the tube to fuse field-rate flicker -- alternate-field dither transparency or flicker-dithered animation -- reads as intended with values around 0.3-0.5, at the cost of a slight motion trail. It is off by default so screenshots and frame dumps stay frame-exact. COPPERLINE_PHOSPHOR=0.4 overrides the config for a single run.

shader runs a GPU shader pass over the window’s picture, for the tube look a phosphor trail on its own cannot give. Three presets are built in:

"none" (the default; "off" is accepted for the same thing) presents the picture untouched, and any value ending in .wgsl is the path of a shader of your own -- see Custom WGSL shaders below.

The scanline gaps are drawn at the pitch of the emulated field lines the window is actually showing: 270 in the default TV-overscan presentation (214 on an NTSC scan) and 285 in "full", so the line structure follows the picture rather than the window size. TV overscan with pixel_aspect = "square" is 285 as well: that canvas is taller than the TV aperture and pads it with bezel rows, so the same 270 lines are rescaled to keep their pitch across the whole window. Interlaced content is deliberately drawn at field-line pitch over the woven frame, which is what a 15 kHz set fed an interlaced signal looks like, rather than one gap per woven row.

shader_strength (0.0 to 1.0, default 1.0) is how strongly the effect is mixed in, so a preset can be dialled back without editing shaders. At 0.0 the shader arithmetic is an exact no-op, but the pass still resamples the picture through a plain bilinear sampler, which is a shade softer than the texel-snapped pass-through the window otherwise uses at magnification. "none" skips the pass altogether and is the only truly zero-cost setting.

The menu’s Video Settings -> CRT Shader and Shader Strength items change the preset and the mix live, and the change is remembered like any menu setting; the launcher’s A/V & Emu tab (Video category) has CRT shader and Shader strength rows for the same. COPPERLINE_SHADER=crt|scanlines|mask|none|PATH.wgsl and COPPERLINE_SHADER_STRENGTH=0.0..1.0 override the config for a single run. There is no command-line flag.

Interactive screenshots include the selected shader. Scheduled screenshots (--screenshot-after), frame dumps (--dump-frames), video recordings, the control protocol’s capture methods and the web frontend all read the CPU presentation buffer, which the shader never touches, so those captures stay comparable whatever is selected here. Individual frames also skip the pass in three cases: while a menu or overlay panel is open (a phosphor mask and a curved face make overlay text unreadable), for frames coming from an RTG board’s scanout (see [rtg] below), and for programmable multisync scan modes -- a 31 kHz scanout has no 15 kHz line structure to reproduce.

bezel frames the window’s picture with a monitor front, drawn at the window’s resolution so it stays sharp at any size, with the picture keeping its aspect inside the opening. Three settings:

The older true and false values, from when there was only one frame to turn on, are still read: true means "1084" and false means "off".

A drawn bezel also changes what its tube shows: the glass presents the whole captured raster -- every rendered line, with all the overscan border the framebuffer captures -- rather than the tighter TV aperture the plain window crops to. The raster fills the glass edge to edge the way a real set’s overscanned picture does, border colour and all, and the opening’s rounded corners crop into that border instead of into the picture, which the extra border keeps clear of the arcs.

The bezel is independent of shader and composes with any preset: with "crt" the bowed tube face sits inside the opening for the full monitor look. Cmd+M (macOS) / Alt+M turns it off and back on to whichever front is chosen and Video Settings -> Monitor Bezel picks the front, both remembered like any menu setting; the launcher’s Monitor bezel row (A/V & Emu, Video) sets it too, and COPPERLINE_BEZEL (a style name, or the old 1/0) overrides the config for a single run.

Interactive screenshots include the bezel; scheduled captures bypass it. It is skipped while a menu or overlay panel is open and for RTG scanout frames. Unlike the shader it does stay on for programmable multisync scans -- a frame has no line structure to get wrong.

bezel_stickers names a folder of PNG images to draw onto the bezel as die-cut stickers, the way owners dress a real monitor with community and maker logos. Unset (the default) draws none. Every *.png in the folder becomes one decal (up to 16, alpha respected, large sources scaled down), laid along the cabinet’s top band in file-name order with a slight alternating tilt; each picks up a soft drop shadow and the plastic’s lighting so it reads as stuck on rather than pasted over. The folder is re-read when a machine starts, so editing it and restarting (or switching machine in the launcher) picks up changes; a folder that fails to load reports on the on-screen display and falls back to bare plastic.

An optional stickers.toml in the folder chooses and places the images instead, one [[sticker]] table per decal, drawn in written order:

[[sticker]]
image = "retro32.png"   # file name in the folder
x = 0.32                # sticker centre, fraction of the front's width
y = 0.935               # and of its height (down from the top)
width = 0.11            # width as a fraction of the front's width
rotate = -2.5           # degrees clockwise
opacity = 1.0

[[sticker]]
image = "badge.png"     # no x/y: an auto slot on the top band

x and y come as a pair; a table without them takes the next automatic top-band slot (where width and rotate still override that slot’s own). Height always follows the image’s aspect. The same keys, as JSON, drive the web player’s #bezel-stickers page hook (the browser chapter), so one sheet lays out identically in the app and on a hosting page.

Stickers ride the bezel: they draw only while a front does, follow it through Cmd+M / Alt+M, and appear in interactive screenshots. Scheduled captures, frame dumps and recordings exclude them. COPPERLINE_BEZEL_STICKERS (a folder path, or empty for none) overrides the config for a single run.

perf_overlay (default false) shows the performance overlay at start: a live readout of emulated fps, speed factor, per-frame emulation cost, host utilization, audio health, and pacer slips in the top-right corner of the display, one line per data point (see the window chapter for what each line means). Cmd+P (macOS) / Alt+P toggles it live (remembered like any menu setting), --perf-overlay shows it for one run, and COPPERLINE_PERF_OVERLAY=1|0 overrides the config for a single run; the launcher’s Perf overlay row (A/V & Emu, Display) writes it. Like the transient message overlay it is presentation only. Interactive screenshots include it; scheduled screenshots, frame dumps, and recordings exclude it.

tint recolours the picture like the phosphor of a monochrome monitor: "bw" (black and white), "green" and "amber" (the two classic monochrome phosphors), or "sepia"; "none" (the default; "off" is accepted) presents full colour. These are the five looks the web frontend’s Screen selector offers, produced by the same colour chain, so a tint chosen in the browser matches the desktop. It composes with shader -- green phosphor under the crt preset makes a convincing monochrome tube. Interactive screenshots include the tint. Scheduled screenshots, frame dumps, recordings and headless runs stay untinted; the status bar and overlay menus keep their colours, and RTG board scanout (the monitor on the board’s own output, not the Amiga’s video output) is never tinted. The menu’s Screen Tint item changes the tint live, and the change is remembered like any menu setting; the launcher’s A/V & Emu tab (Video category) has a Screen tint row for the same. COPPERLINE_TINT=bw|green|... overrides the config for a single run.

menu_scale draws the pop-up menu at "1x" (the default) or "2x" -- the whole menu, rows and text together. Video Settings -> Menu Size changes it live (remembered like any menu setting), --menu-scale sets it on the command line, and the launcher’s A/V & Emu page (Display category) has a Menu size picker for the same.

window_scale multiplies the normal window width and height in logical host pixels: 2 opens at twice the normal size on both standard and HiDPI displays. It accepts 0.5 through 4.0, including fractional values such as 1.5, and defaults to 1. The window keeps this multiple when its canvas changes, such as when hiding the status bar, until manually resized. The host may limit the requested size to the available desktop area. Screenshots and headless captures keep their usual resolution.

maximized opens a normal, decorated window filling the available desktop area, keeping the title bar and desktop taskbar visible where the platform provides them. --maximized selects this mode from a build pipeline:

copperline --run build/hello --window-scale 2
copperline --run build/hello --maximized

track_display chooses what the status bar’s floppy counter reads: the track number ("track", the default, 0-159) or the cylinder and side with a decimal point between them ("cylinder", so track 81 reads 40.1). In cylinder mode the first figure changes with every head step, in time with the step sound, and the last digit is the side the guest has selected. Video Settings -> Track Display switches it live, and the launcher’s Display category has a Track display row for the start-up value.

full_screen opens the window fullscreen at start (borderless), and status_bar chooses whether the status bar starts visible. The runtime toggles -- Cmd+F / Alt+F for fullscreen and Cmd+Shift+F / Alt+Shift+F for the status bar, plus their menu items -- flip either live, and the new state is remembered like any menu setting. On the command line --full-screen / --windowed set the fullscreen state and --show-status-bar / --hide-status-bar set the status bar; the launcher’s A/V & Emu page (Display category) has Start fullscreen and Status bar toggles for the same. Left unset they keep the defaults: windowed, status bar shown. --windowed also clears maximization; the last of --full-screen, --maximized, and --windowed wins. In a config that enables both full_screen and maximized, fullscreen takes precedence. Canvas changes leave a maximized window at its desktop size; restoring it resumes the normal canvas sizing.

monitor chooses the host display for the main window. The launcher’s Host monitor picker is in A/V & Emu, Display. It shows the connected displays with their names and resolutions; Run applies the choice and Save retains it. Monitor selection also applies when entering fullscreen later. The Window position field on that page accepts X, Y; emptying it restores automatic placement. Coordinates are logical pixels from the chosen display’s top-left corner, including negative offsets. With monitor = "auto", a specified position uses the primary display. Without a position, a selected display centres the window; auto leaves placement to the host. Fullscreen and maximized windows ignore the coordinates.

copperline --list-monitors
copperline --monitor 2 --full-screen
copperline --monitor "External display" --maximized
copperline --monitor 2 --window-position 100 80

The default, "auto", leaves placement to the host and enters fullscreen on the window’s current monitor. "primary" selects the primary display when the host reports one. Numbers start at 1 and refer to --list-monitors; their ordering can change when displays are connected or disconnected. Names match exactly. "name:primary" or "name:2" selects a display literally named primary or 2. The launcher saves unique names with this prefix, using numbers for unnamed displays or duplicate names. An unavailable display, ambiguous name or unreported primary display logs a warning and falls back to automatic placement without changing the saved preference.

Windows, macOS and X11 can place normal and maximized windows on the selected display. On Wayland, the compositor controls ordinary window placement; Copperline can request fullscreen on a selected display, subject to the compositor’s policy. Wayland does not report a primary monitor, so use a name or number there. Window positions are also compositor controlled on Wayland. Headless captures ignore monitor selection and position, and --list-monitors loads no ROM or machine configuration.

Saved auto-launch configurations use these window preferences too. Changing window_scale by running a configuration from Debug applies the new size when returning to Play, leaving the inspector workspace at its current size.

Rendering completed frames uses a worker thread by default so emulation can advance while the previous frame is painted. The worker is an implementation detail of presentation: screenshots, frame dumps, and recordings wait for the exact frame they save. COPPERLINE_THREADED_RENDER=0 forces the old synchronous render path for comparison. Presenting the composed frame -- the texture upload, the GPU passes and the wait for the display’s vsync -- runs on a second worker, so the main thread’s redraw ends at hand-off; COPPERLINE_THREADED_PRESENT=0 presents from the main thread instead.

Custom WGSL shaders

Pointing shader at a .wgsl file loads a fragment shader of your own into the same pass. The quickest start is to copy one of the presets -- src/video/window/shaders/scanlines.wgsl, mask.wgsl or crt.wgsl in the source tree -- and edit its fs_main. The block between the --- begin shared contract --- and --- end shared contract --- markers in those files is the contract, and is byte-identical in all three.

A shader must declare exactly these bindings and both entry points:

struct CrtUniforms {
    // Display sub-rect of src_tex in UV space: xy origin, zw size.
    src_rect: vec4<f32>,
    // xy: viewport size in physical pixels. zw: source display texels.
    size: vec4<f32>,
    // x: strength, 0 (no-op) to 1 (full). y: scanline count across the
    // display height. zw: preset-internal, do not rely on them.
    params: vec4<f32>,
    // Preset-internal and reserved; zero for a custom shader.
    params2: vec4<f32>,
};

@group(0) @binding(0) var src_tex: texture_2d<f32>;
@group(0) @binding(1) var src_samp: sampler;
@group(0) @binding(2) var<uniform> u: CrtUniforms;

struct VOut {
    @builtin(position) pos: vec4<f32>,
    @location(0) uv: vec2<f32>,
};

@vertex
fn vs_main(@builtin(vertex_index) idx: u32) -> VOut {
    // Fullscreen triangle; the viewport restricts it to the display rect.
    let tc = vec2<f32>(f32((idx << 1u) & 2u), f32(idx & 2u));
    var out: VOut;
    out.uv = tc;
    out.pos = vec4<f32>(tc * vec2<f32>(2.0, -2.0) + vec2<f32>(-1.0, 1.0), 0.0, 1.0);
    return out;
}

// Sample the display region only, clamped half a texel inside src_rect so
// a linear tap on the bottom edge never blends in the status bar's first
// row underneath it.
fn sample_display(uv: vec2<f32>) -> vec4<f32> {
    let half_texel = 0.5 * u.src_rect.zw / max(u.size.zw, vec2<f32>(1.0));
    let lo = u.src_rect.xy + half_texel;
    let hi = u.src_rect.xy + u.src_rect.zw - half_texel;
    let tc = clamp(u.src_rect.xy + uv * u.src_rect.zw, lo, hi);
    return textureSample(src_tex, src_samp, tc);
}

@fragment
fn fs_main(in: VOut) -> @location(0) vec4<f32> {
    let uv = clamp(in.uv, vec2<f32>(0.0), vec2<f32>(1.0));
    let base = sample_display(uv);
    let strength = clamp(u.params.x, 0.0, 1.0);

    // Your own look goes here. This one is a green monochrome monitor with
    // a gap between beam passes at the emulated line pitch.
    let lines = max(u.params.y, 1.0);
    let profile = 0.5 - 0.5 * cos(6.283185307 * uv.y * lines);
    let luma = dot(base.rgb, vec3<f32>(0.299, 0.587, 0.114));
    let tube = vec3<f32>(0.2, 1.0, 0.35) * luma * (0.6 + 0.4 * profile);

    // Mixing back toward the untouched sample keeps strength 0 a no-op.
    return vec4<f32>(mix(base.rgb, tube, strength), 1.0);
}

Notes:

The file is read and checked when the window is created, when the launcher starts a machine, and every time Video Settings -> CRT Shader -> Custom is chosen, which re-reads it from disk. To reload a shader live, leave the emulator running, edit the file, then pick Custom again.

The check parses and fully validates the file and looks for the two entry points, all before any GPU pipeline is built, so a mistake is reported as WGSL with its line and column rather than as a driver error. Files over 1 MiB are refused unread: a shader that big is almost certainly a mistyped path. Whatever goes wrong -- a missing file, a syntax error, a missing fs_main -- the full diagnostic goes to the log, a one-line summary appears in the window’s on-screen message, and the shader falls back to off. A bad custom shader never fails the config, and never stops the machine from running.

[audio]

[audio]
floppy_sounds = true        # drive sounds on/off: synthesized, or the set below
floppy_sounds_volume = 100  # 0-100, relative to Paula's output
# floppy_sounds_set = "A500"  # a WinUAE/FS-UAE sample set instead of synthesis; see below
# output_device = "..."     # host output device (substring); omit = system default
# output_enabled = true     # false = no sound (GUI "Disabled"); --audio/--noaudio still win
channel_mode = "stereo"     # "stereo" (default) or "mono"
stereo_separation = 100     # 0-100; 100 = hardware panning, 0 = mono
audio_filter = "auto"       # Paula filter: "auto" (guest-driven), "on", or "off"
# stem_granularity = "master,source"  # default --audio-stems-mode; see below
# live_lead_ms = 150        # sound kept ahead of the output device, 50-1000; see below

The drive sounds are generated from scratch: motor hum with spin-up/down over a rumble that repeats with each platter revolution, and head-step clacks (an isolated step -- the empty-drive poll, or the track-to-track advance while loading -- lands with its rebound clatter, and fast multi-track seeks blur into the characteristic buzz). Reading adds no noise of its own; the loading sound is the step rhythm over the spinning motor, as on the real mechanism. The synthesis targets were measured from recordings of real Amiga drive mechanisms, but no sample data is used. Only step pulses that actually fire the stepper are audible: like a real 3.5" mechanism, an outward pulse with the head at track 0 is gated by the /TRK0 sensor, so NoClick-style patches silence the empty-drive poll just as they do on real hardware.

floppy_sounds is the switch for all drive sounds: with it false the drives are silent whatever floppy_sounds_set names. While it is on, floppy_sounds_set replaces the synthesis with a recorded sample set -- the drive sound packs WinUAE and FS-UAE use (FS-UAE’s floppy_drive_N_sounds). Leaving the key out, or setting it to "" or "synthesized", keeps the synthesized sounds. A set is up to five WAV files sharing a name:

FilePlays
drive_click_NAME.waveach head step
drive_spin_NAME.wavlooped while the motor runs with a disk in
drive_spinnd_NAME.wavlooped while the motor runs with no disk
drive_startup_NAME.wavwhen the motor starts from a standstill
drive_snatch_NAME.wavon the first spin-up after a disk goes in, in place of the start-up sound

Copperline ships no sets. Put a set’s files in the Floppy Sounds folder of Copperline’s host-data directory (Documents/Copperline/Floppy Sounds, or beside the executable in a portable install) and name the set: floppy_sounds_set = "A500". Any other value with a path separator is a path, either to one of the set’s files (".../floppysounds/drive_click_A500.wav") or to its folder joined with the name (".../floppysounds/A500"), so a set can stay where WinUAE or FS-UAE keeps it. File names match case-insensitively and the .wav may be left off, as in WinUAE. Any of the five files may be missing; that sound is just silent. The launcher’s Audio category has a Floppy sound set row that steps through Synthesized and every set in the folder.

A set plays the way WinUAE plays it, so it sounds the same as there. A click file may hold several clicks, each starting at a peak above 0x6FF0; the first is the click for stepping onto cylinder 0, the next for cylinder 1, and so on, the last standing in for any cylinder past the count. The motor and click sounds of a drive are averaged together, as are several drives sounding at once, and 16-bit full scale is mixed at the same level as CD audio; floppy_sounds_volume still scales the result. The files are read when the machine starts. A set that is missing or unreadable logs a warning and leaves the synthesized sounds in place, rather than failing the configuration. Which set is playing is a host preference, not machine state: save states, input replays and netplay are unaffected by it, and two netplay peers may use different sets.

output_device picks the host output by a case-insensitive substring of the names --list-audio-devices prints (--audio-device overrides it); an omitted or unmatched name uses the system default. channel_mode = "mono" averages the left and right output into both channels, and stereo_separation narrows the Amiga’s hardware left/right panning between full (100) and mono (0) -- so it is ignored when channel_mode is mono. output_enabled = false runs with no sound at all (the launcher and runtime-menu “Disabled” option); the --audio and --noaudio CLI flags still override it. These are host-output settings that do not change the emulated audio and are not stored in save states. The matching CLI flags are --audio-device, --audio-channel-mode, and --audio-stereo-separation; --list-audio-devices prints the device names.

audio_filter (also accepted as filter) controls Paula’s analogue low-pass filter, the one a post-A1000 Amiga switches with the same CIA-A line that drives the power LED. "auto" (the default) lets the guest engage or bypass it as the software asks, matching real hardware; "on" and "off" force it either way as a listener override. Unlike the host-output settings above it is part of the emulated audio path, so it also affects WAV capture. It can also be set with --audio-filter, the menu’s Audio Settings -> Audio Filter, and Cmd/Alt+A, which cycles it. The status-bar PWR LED is lit whenever the machine is powered and follows the guest’s /LED line itself -- full brightness while engaged, dimmed like an A500 rev 6+ board while released -- so this override changes what you hear, never the LED.

On Linux with PipeWire/PulseAudio, individual sinks are not ALSA devices, so only the default/pipewire route is offered; pick the output in the desktop sound settings (or route Copperline in pavucontrol) and it follows. macOS and Windows select each device directly.

stem_granularity sets the default granularity list for --audio-stems (headless-only; see Headless and scripted execution), so --audio-stems-mode need not be repeated on every invocation; the CLI flag still wins when both are given. It has no effect without --audio-stems DIR on the command line.

Live output lead

live_lead_ms is how much sound the live output keeps queued ahead of the host’s audio device, 50 to 1000 milliseconds (default 150). The real-time pacer runs the machine that far ahead of the wall clock, playback starts once that much is queued, and the sound stops when the queue runs dry until it holds that much again, so the lead is how long the machine may run slower than real time before the sound breaks up. A backlog past twice the lead (the machine catching up after a stall) is trimmed back to it, and the pacer’s own catch-up limit grows with the lead. The picture is shown as the machine makes it, so it runs ahead of the sound by the lead, which is why the default is short: for a machine that runs near the host’s limit (a Video Toaster with its Flyer playing a project, a transition under way) 400 keeps the sound continuous through a second or two of lost ground, at the cost of the sound trailing the picture by that much. Headless runs and --audio-wav captures are not affected.

[recording]

[recording]
clip_seconds = 10      # emulated seconds kept for Save Clip as GIF; 0 = off
clip_fps = 0           # GIF frame rate; 0 = 25 on PAL, 30 on NTSC
video_format = "avi"   # what Record Video writes: "avi" or "mp4"
# ffmpeg = "/opt/ffmpeg/bin/ffmpeg"   # the ffmpeg MP4 recordings are made with

The window keeps a rolling ring of the last clip_seconds (up to 120) of the presented picture for Save Clip as GIF; 0 switches the ring and the menu item off. clip_fps (1 to 60) is the rate every GIF clip is written at, the interactive one and headless --gif-after captures alike; the default 0 picks half the field rate, 25 fps on PAL and 30 on NTSC. Clips land in the [paths] recordings folder.

video_format is what Record Video writes: "avi" (the default), the recorder’s lossless ZMBV and PCM AVI, or "mp4", H.264 and AAC made from that AVI by ffmpeg once the recording stops (see MP4 recordings). The Recording menu’s Video Format sets it too, and keeps the choice for the next launch. ffmpeg names the ffmpeg to make MP4s with, for one Copperline would not find by itself; left out (the default), it looks beside Copperline, on the PATH and in the usual package-manager folders. The COPPERLINE_FFMPEG environment variable outranks it for one run.

The camera button and Cmd+S / Alt+S save the displayed picture with its current effects. Native screenshots use Cmd+Option+S on macOS or Ctrl+Alt+S on Linux/Windows; --native-screenshots selects native scheduled captures. The retired native_screenshot_button key is accepted and ignored when reading older configs, and omitted when saving them.

[input]

[input]
port1 = "mouse"           # mouse | gamepad-mouse | joystick | cd32 | analogue | lightpen | none
port2 = "joystick"        # same values except gamepad-mouse; default "cd32" on the CD32 profile
# port3 = "joystick"      # parallel-port four-player adapter sockets:
# port4 = "joystick"      #   joystick | none (see [parallel] joystick-adapter)
joystick = "gamepad"      # "gamepad" (default) or "keyboard"
mouse_sensitivity = 50    # host mouse speed 0-100 (50 default = neutral multiplier)
mouse_capture = "click"   # when to grab the mouse: click | auto | manual
middle_click_release = false # middle click releases capture instead of reaching the guest
autofire_hz = 0           # pulse a held fire button at this rate; 0 = off

Port devices

port1 and port2 name the controller device plugged into each game port. Either port accepts any device, as on real hardware:

port3 and port4 are the two sockets of the passive parallel-port four-player adapter (see [parallel]) and take only joystick or none. Naming a joystick there fits the adapter; an adapter named in [parallel] fills every socket these keys leave unset.

The defaults are the stock wiring: a mouse in port 1 and a joystick in port 2 -- a CD32 pad on the CD32 profile, whose bundled controller the machine expects (an explicit key beats the profile; a real CD32 accepts any controller too). --port1 / --port2 override for one run, the runtime menu’s Port 1/2 Device items hot-plug a device live, and the control protocol’s input.set_port does the same from a script.

With joysticks in both ports, two gamepads, a gamepad and the keyboard, or two keyboard mappings can drive them (see Controller ports).

Joystick input source

joystick selects the initial host source for the joystick/CD32-pad port. There are two explicit modes, so the active source is always visible rather than depending on whether a pad happens to be connected:

With one joystick/CD32-pad port the mode picks its source. With two, both sources are in play -- the gamepad and the cursor-key mapping drive one port each -- and the mode picks which source gets the lower-numbered port; whenever no physical pad is present, a second keyboard mapping on the numeric keypad (8/2/4/6 directions, 0 fire, . second button) stands in for the gamepad, so two players can share one keyboard.

The keyboard mapping drives whatever device its port carries. In particular, with mice in both ports the host mouse takes the lower-numbered one and, in keyboard mode, the cursor-key mapping drives the second as an emulated mouse: cursor keys move the pointer, the fire keys are the left button, X the right, D the middle.

This only sets the starting mode. The status-bar toggle (the gamepad / keyboard icon next to the volume control), Cmd+J / Alt+J, the menu’s Joystick Input item, and the launcher’s Input tab all flip it live without changing the config. --joystick MODE overrides this for a single run. (auto is still accepted here as a backward-compatibility alias for gamepad; the old auto-detect mode has been removed.)

mouse_sensitivity scales how fast the emulated pointer tracks the host mouse, 0-100. 50 (the default, shown as Default in the GUI) is a neutral multiplier, 0 is a quarter speed and 100 quadruple, on an exponential scale so each step is an even ratio. Captured and uncaptured mouse motion both compensate for the picture’s display scale before this multiplier is applied. Captured movement uses logical host size, so a larger window or fullscreen picture does not increase mouse speed and monitor DPI does not change the sensitivity. Captured RTG motion uses the board’s native pixels. Guest mouse preferences and host cursor acceleration can still affect the feel. It is a host-input scale applied to live mouse motion only: it never touches the emulated machine or scripted --mouse-after input, so headless and recorded runs stay deterministic. Set it from the launcher’s Input tab or --mouse-sensitivity N, and adjust it live with Cmd+Shift+> / Cmd+Shift+< (Alt+Shift+> / Alt+Shift+< on Linux and Windows), which ramp while held.

Mouse capture

Capturing the mouse confines the host pointer to the window and hides the host cursor, so the Amiga pointer is the only one on screen. mouse_capture decides when that grab is taken:

Cmd+G / Alt+G releases and re-takes the grab by hand in every mode, and an explicit release is never undone automatically. Opening a panel or tool window borrows the cursor and hands the capture back when the last one closes.

Set middle_click_release = true to release capture with the middle mouse button. This is off by default, so middle click reaches the guest as usual. While captured, the release click is consumed and any held guest mouse buttons are released. An uncaptured middle click keeps its usual behaviour. The launcher’s Input tab has the same Middle to release setting.

Uncaptured, host cursor motion over the display still drives the emulated mouse in every mode; this setting only decides when the grab is taken, not whether motion reaches the machine. Set it from the launcher’s Input tab or --mouse-capture MODE.

Autofire

autofire_hz turns a held fire button into a pulse train at that many presses per second; 0 (the default) leaves the button alone. It applies to live input only -- the gamepad and the keyboard mapping -- and never to scripted input (--joy-after, --script, the control protocol’s input.joy), which must replay exactly the events it was given.

The phase comes from emulated time, so the rate is the same under warp and on PAL or NTSC. Nothing about the emulated machine changes: the port sees an ordinary button being pressed and released on /FIRx. Only the fire button is pulsed; directions and the second button pass through untouched.

--autofire HZ sets it for one run, and the menu’s Autofire item cycles off / 3 / 5 / 8 / 12 / 16 Hz live. The maximum is 30 Hz -- above that the assert window is shorter than the frame the guest samples the port on.

Remapping the keyboard controller

The keyboard-to-controller bindings are a host preference, not part of the emulated machine, so they live beside the gamepad calibration rather than in a machine config: the menu’s Input Mapping... item edits them and Save writes keymap.toml next to gamepads.toml (see Gamepad calibration for the per-platform location). Any control may take several keys -- fire ships with four aliases so compact keyboards without the right-hand modifiers still work -- and binding a key removes it from wherever it was before, including from the other mapping, so the two controllers can never fight over one key. Deleting the file restores the built-in layouts, as does the panel’s Defaults button.

[serial] -- serial port and MIDI

[serial]
mode = "stdout"          # off, stdout, midi, tcp, tcp-connect, pty, modem, or device
# midi_out = "FluidSynth"  # midi mode: host destination, "mt32", or "coppersynth"
# midi_in = "Keystation"   # midi mode: host source, or "mt32"
# listen = "127.0.0.1:1234"  # tcp mode: bind address; modem mode: incoming-call address
# connect = "bbs.example.com:1337"  # tcp-connect mode: remote to dial
# device = "/dev/tty.usbserial-1420"  # device mode: the host serial port (COM3 on Windows)
# telnet = true            # modem mode: start with AT*T1 telnet NVT translation on (unset: the
#                          # stored AT&W profile decides; off without one)
# session = "bbs-demo.session"  # modem mode: replay a scripted session instead of TCP
# mt32_control_rom, mt32_pcm_rom, mt32_panel, mt32_lcd    # the emulated MT-32 (see below)
# coppersynth_soundfont, coppersynth_mt32_mode, coppersynth_panel  # Coppersynth (see below)

# [serial.phonebook]       # modem mode: numbers ATD can dial (see below)
# "5551234" = "bbs.example.com:23"

The Amiga serial port doubles as the MIDI port. mode selects where Paula’s serial in/out is connected:

Every mode also drives the port’s RS-232 handshake inputs, which the guest reads on CIA-B port A (/DSR, /CTS, /CD) and serial.device reports through SDCMD_QUERY and honours in 7-wire mode. off (and midi, whose interface only uses the data lines) is an unplugged cable: every input floats high, so a guest waiting for CTS or carrier waits forever, as on a real machine with nothing attached. stdout is a ready device with no call behind it: DSR and CTS asserted, no carrier. tcp and tcp-connect behave as a modem: DSR and CTS asserted from startup, and carrier only while a client is connected (or the dial-out is up) -- so a guest BBS sees the caller hang up as carrier loss, and a terminal program sees the remote drop the same way. pty reports a host terminal with the port open (all three asserted), since a null-modem cable crosses its DTR and RTS to these inputs and the terminal’s side cannot be observed from here. device reports the real lines: whatever the far end of the host port’s cable is driving on CTS, DSR and DCD, sampled continuously. The guest’s own /DTR and /RTS outputs are the CIA’s pins as written, and under device they drive the host port’s pins too.

With an AUX: shell on the Amiga side, tcp/pty give a remote AmigaDOS console. --serial MODE overrides the mode per run. --serial-connect HOST:PORT sets the dial-out target (implying mode = "tcp-connect"), --serial-session FILE replays a scripted modem session (implying mode = "modem"), --serial-device PATH names the host port (implying mode = "device"), and --midi-out NAME / --midi-in NAME imply mode = "midi".

The launcher’s I/O Ports tab (Serial Port page) sets all of this interactively. Device / Mode picks the mode, and each mode brings its own rows: Connect under tcp-connect for the remote to dial and Listen under tcp for the local bind address, each a pair of boxes for host and port; under device (shown as Host port), a Port picker that steps through the serial ports the host has right now (re-read on every step, so a just-plugged adapter appears; a saved path the host does not list is kept and marked). A box left empty shows its greyed default (host 127.0.0.1 on Listen, port 1234), and an emptied box reverts to it; an IPv6 literal is typed bare or in brackets, and the saved key spells it bracketed ([::1]:1337). Emptying both boxes unsets the key. Under modem the page shows the same Listen box (the incoming-call address above) plus a Telnet toggle; the phonebook has no row. The in-window MIDI In / MIDI Out menu items select the MIDI endpoints.

The browser build has its own serial transport (the page bridges the port to a WebSocket); see the browser chapter.

[parallel] -- Centronics parallel port

[parallel]
device = "printer"           # none | printer | sampler | joystick-adapter
output = "printer.raw"       # printer capture path
# device = "sampler"
# sampler_input = "MacBook Air Microphone"  # host input; omit for the default
# sampler_gain = 6.0                          # preamp gain in dB (0 = unity)
# device = "joystick-adapter"                 # four-player ports 3 and 4

device chooses the peripheral on the parallel port (one at a time). Without this section the connector is electrically disconnected: CIA-A still produces its hardware PC strobe on port-B accesses ($BFE101), but no peripheral acknowledges it and port-B reads see the CIA’s own pins. The equivalent per-run flags are --parallel DEVICE, --sampler-audio-input NAME, and --sampler-input-gain X; --sampler-list-audio-inputs prints the input-device names and exits.

"printer" attaches a raw Centronics sink at output (a bare output with no device still selects the printer, for compatibility). The file is created at startup, replacing any existing file; each strobed byte is written verbatim and returns the printer /ACK falling edge through CIA-A FLAG, including the normal CIA interrupt delay. The printer also drives the Centronics status lines on CIA-B port A -- SEL high, BUSY and POUT low -- so the guest’s parallel.device sees a ready online printer and starts sending. (Without an attached device those lines float high, and printing waits forever for a printer to appear, as on a real machine.) The byte stream is intentionally not decoded, since the guest may emit any printer language; pass it to a converter or spooler afterwards.

"sampler" attaches an 8-bit audio sampler (digitizer) on the data lines -- the emulated equivalent of a classic parallel-port sampler cartridge, driving software such as AudioMaster, ProTracker, OctaMED, and TurboSound. It captures from a host input device (cpal, like live audio output, so it needs a build with the frontend feature) and presents each read of the data lines as an 8-bit offset-binary sample in emulated time, mono (host left/right are summed). sampler_input names the host device (case-insensitive substring, as --sampler-list-audio-inputs prints; omitted uses the system default); sampler_gain is the preamp gain in decibels (0 dB = unity) applied before the ADC, within the sampler’s range of -24 to +24 dB (a value outside it is a configuration error). The input device and gain can also be changed live from the runtime menu, and the gain with Cmd/Alt+Shift +/-. On macOS the CLI binary needs microphone permission to capture a real input; routing audio in through a loopback device such as BlackHole needs none.

"joystick-adapter" (also accepted as "multitap") is the classic passive four-player adapter (Kick Off 2, Sensible Soccer, Dyna Blaster, Gauntlet II, Super Skidmarks and others read it): two switch joysticks wired straight to the connector, with no active parts. Port 3’s directions short the data pins D0-D3 (CIA-A port B bits 0-3, up/down/left/right) to ground and port 4’s short D4-D7; port 3’s fire shorts the Centronics SEL line (CIA-B PA2) and port 4’s fire shorts BUSY (CIA-B PA0), all active low, with a second button on either stick on the spare POUT line (PA1). The assignment matches WinUAE’s parallel joystick model. The switches only pull down pins the guest has programmed as inputs (the games clear DDRB), so a port a printer driver is driving as outputs is left alone. [input] port3/port4 (or --port3/--port4) say which sockets hold a joystick; naming a joystick there fits the adapter by itself, and an adapter named here fills every socket left unset. Up to four host gamepads and the two keyboard mappings reach the sockets through the usual routing (see Controller ports), and --joy-after ... 3 / --joy-after ... 4, --script, and the control protocol’s input.joy drive them directly.

[floppy] and [floppy.df0] .. [floppy.df3]

[floppy]
drives = 2                 # DF0 and DF1 connected; 0 disconnects every drive
speed = 100                # 100/200/400/800 percent, or 0 for turbo

[floppy.df0]
path = "demo.adf"            # single image, or:
# paths = ["disk1.adf", "disk2.adf"]   # swap playlist (shortcut cycles)
write_protected = true       # default true
# enabled = true             # implied by path/paths

drives controls how many mechanisms are wired, from zero to four. DF0 is the internal drive on models that have one; DF1-DF3 are external drives that answer the standard Amiga external-drive ID protocol when connected. The CDTV and CD32 profiles default to zero, matching the physical machines; every other profile defaults to DF0 only. With drives unset, a configured disk image also connects its drive, so existing configs that name [floppy.df0] .. [floppy.df3] keep working; with drives set, media in a drive it leaves disconnected is an error.

speed accelerates the emulated drives beyond the authentic data rate. 100 (the default) is real speed. 200, 400, and 800 clock the whole data path -- platter rotation, the MFM read shifter, sync detection, DSKBYTR, and DMA pacing -- at that multiple, so everything software can observe stays bit-identical to real speed, only compressed in time. 0 selects turbo: a started disk DMA transfer completes almost instantly (deferred by two scanlines, matching other emulators’ turbo modes, so loaders that clear stale interrupt flags right after starting a transfer still see the completion). Drive mechanics are never accelerated: motor spin-up, head stepping, and post-seek settle always run at real time. Faster-than-real speeds are a compatibility trade-off, as in other emulators: the operating system and most loaders tolerate them, but software that times its own loading against the beam, CIA timers, or music playback can break. The menu’s Emulation Settings -> Floppy Speed changes the setting live without restarting the machine. It applies to image-backed bays only; a physical drive has its own replay_speed.

Supported image formats: standard ADF (901120-byte DD or 1802240-byte HD), gzip-compressed images (ADZ), single file ZIP archives, DMS archives, UAE extended ADF, and read-only IPF and SCP images. DMS, gzip, IPF, and SCP images are decoded at load time and always treated as write-protected; set write_protected = false on a plain ADF to allow write-through updates to the image file. A DMS archive is unpacked cylinder by cylinder into the image the disk was read from, so archives that repeat a cylinder (an advertising boot block ahead of the real one) or omit the cylinders that read back blank load normally.

The emulated drives take both densities. Density follows the inserted image, the way a high-density mechanism senses an HD disk: an HD image (a 1,802,240-byte ADF, a high-density DMS archive, or a UAE extended ADF whose AmigaDOS tracks hold 22 sectors) runs at HD geometry -- 22 sectors per track at half rotation speed, with the drive-ID poll answering as a high-density drive -- and a DD image runs as it always has. Nothing to configure: the same drive reads DD disks after an HD one is ejected. The guest needs an HD-aware trackdisk.device (Kickstart 1.x has none). IPF images of HD disks (signal type 2, the 1 us cells an HD disk shows a 300 RPM capture drive) are still rejected.

IPF (the SPS/CAPS preservation format) is decoded by Copperline itself rather than through the closed-source capsimg library, so every build reads IPF on every platform with nothing to install. Because an IPF preserves the encoded track -- sync marks, gaps, and sector headers, not just sector contents -- it carries the custom trackloaders and copy protections that an ADF cannot express. Each track is decoded to the revolution of MFM the head would pass over and read back through the same path as a flux capture. Tracks recorded with a variable cell rate keep it: the decoder models the Copylock, Speedlock, and Brierley density profiles, so the sectors a protection times pass the head with the same longer or shorter cells the original disk was mastered with. A density model the decoder does not know is decoded with uniform 2 us cells, which is logged at load time, so a protection that measures cell timing on that track may fail. Weak (“flakey”) spans are decoded into eight deterministic revolutions with different noise in those spans; the stable cells, index position, track length and density stay fixed. The drive cycles through those revolutions, including across save/restore and netplay transfer. This is a repeating approximation of weak media, not an analogue noise or drive-PLL model. The browser frontend shares this decoder, so it reads IPF too.

A paths playlist lets multi-disk software that only uses DF0: run without a second drive. The first entry is the boot disk, and the disk-swap shortcut (Cmd+D on macOS, Alt+D on Linux/Windows) or the status-bar swap button cycles to the next image, wrapping around. If a bay has both path and paths, path is the first entry and paths follows it.

A real drive on a bay

A bay can be given a physical 3.5" drive instead of an image, over a Greaseweazle:

[floppy.df0]
bridge = "greaseweazle"      # or "off"
write_protected = true       # emulator-level protection, on top of the tab
# bridge_port = "/dev/ttyACM0"   # omit to auto-detect the interface
# bridge_cable = "a"             # a/b (IBM PC) or 0..3 (Shugart)
# bridge_density = "auto"        # auto/dd/hd
# bridge_mode = "normal"         # normal/compatible/stalling
# replay_speed = "fast"          # or "normal"; fast is the default

A bay takes either a bridge or an image, never both: the disk in the drive is its media, and naming a path alongside is an error. bridge = "off" returns the bay to images and keeps the other bridge settings for later. replay_speed also accepts its older name, bridge_speed, and the percentages 100 (normal) and 200 (fast).

Nothing needs installing -- the pure-Rust FluxBridge library is built into Copperline -- but a physical drive changes how the machine runs in several ways: writes need both the disk’s tab and write_protected = false, the status bar’s eject and swap do nothing for that bay, and a machine with a physical drive is paced to wall-clock time and is not reproducible. Physical floppy drives (FluxBridge) covers the whole feature: what each option does, which mode suits which disks, and what to expect of it.

[ide] -- IDE hard disks

[machine]
profile = "A600"             # IDE needs a machine with an IDE port
                             # (A600 or A1200 Gayle, or the A4000)

[ide]
master = "AmigaSYS.hdf"      # raw flat HDF, read/write
# slave = "scratch.hdz"      # gzip-compressed hardfile, writes not kept
# timing = "period"          # period drive mechanics (see Drive timing)
# spin_up = true             # also model power-on spin-up

Images are opened read/write. Both kinds of HDF work directly:

An IDE drive reports the geometry its disk was partitioned with: the heads and sectors per track the Rigid Disk Block records for the physical drive (for example 16 x 63 for an image prepared in another emulator or on a real drive). Every block the partition table describes is then reachable by cylinder/head/sector addressing, which is all a Kickstart 2.x/3.x scsi.device uses. A disk with no RDSK block, or one whose recorded geometry an ATA drive cannot present (more than 16 heads, or describing more sectors than the image holds), gets 16 heads x 32 sectors per track.

A gzip-compressed hardfile attaches too -- the .hdz convention, or a plainly gzipped .hdf. Like the floppy formats it is recognized by content and not by name, so the extension is free. Deflate cannot be read a sector at a time, so the image is unpacked into memory when the drive opens: the guest sees an ordinary writable disk of either kind above, but the writes live only in that unpacked copy -- nothing goes back to the compressed file, and changes are lost at exit. An image that unpacks to more than 1 GiB is refused rather than held in host RAM; decompress that one to a plain hardfile and attach it instead.

A CHD hard-disk image attaches too: MAME’s compressed CHD container as chdman createhd -i disk.hdf -o disk.chd writes it (v5, LZMA/Deflate- compressed hunks, GDDD geometry metadata; chdman ships in MAME’s tools, brew install rom-tools on macOS). It is recognized by content like the gzip form, and both kinds of hardfile convert -- an RDB image stays an RDB image, a bare partition hardfile still gets its synthesized RDB. Sectors are decompressed on demand, so nothing is held in memory and the image can be as large as any HDF. The CHD itself is never written: the guest’s writes go to a copy-on-write overlay beside the image, disk.chd.wov, created the first time the disk attaches and read back every time after, so changes persist across sessions while the CHD stays pristine (delete the .wov to return to the pristine image; chdman extracthd gives back the original HDF, without the overlay’s writes). A converted disk can be slightly larger than its hardfile, since chdman pads the last cylinder of its own geometry with zero sectors. Where the overlay cannot be created (a read-only directory, say) the disk attaches write-protected with a warning, which the guest sees as a write-protected volume: a cleanly unmounted volume still boots, but anything that writes (icon positions, WHDLoad saves, a volume needing validation) gets the write-protect error. A delta CHD (one made against a parent image) is refused; flatten it with chdman first.

A VHD attaches too: the Microsoft Virtual Hard Disk container WinUAE creates hardfiles in (and Windows Disk Management, Virtual PC, VirtualBox and qemu-img write). It is recognized by content, like the forms above, and both kinds of hardfile work inside it. A fixed VHD is a raw image with a 512-byte footer on the end; the footer is not part of the disk the guest sees. A dynamic VHD only holds the parts of the disk that have been written: the rest reads as zeros, and the file grows a block (2 MiB, usually) at a time as the guest writes somewhere new. Either way the guest’s writes go back into the .vhd, as they do for an HDF, so the image stays usable in WinUAE. A differencing VHD (one holding only the changes to a parent image) is refused; merge it into its parent first.

A path may also name a host directory: its tree is built into an in-memory volume at startup (volume name = directory name, files and subdirectories included; entries whose names cannot exist on an Amiga volume are skipped with a warning). The guest sees an ordinary bootable disk and may write to it, but the volume lives only in memory -- nothing is written back to the host directory, and changes are lost at exit. The stock A1200/A600 Kickstart scsi.device only probes the IDE master; a slave drive needs a guest OS or driver that supports two units (Kickstart 3.1.4, for example).

Files and subdirectories keep their host modification times, but the volume’s own dates (creation and last change) are fixed at 1 January 1978, the AmigaDOS epoch, rather than taken from the host clock when the volume is built. On a machine with no battery clock fitted the OS sets its system time from the boot volume’s date, so booting from a directory starts the guest clock at 1 January 1978, as a clockless Amiga does from undated media, and a headless run boots to the same moment every time -- the same as a [[filesys]] mount. Fit a clock ([machine] rtc = true) for the guest to read the host’s time instead, or seed one with rtc_time for a fixed date.

To override the volume name (instead of inheriting the directory name), the boot priority, or the filesystem, give the drive as a table with path plus name, bootpri, and/or filesystem:

[ide]
master = { path = "/host/Games", name = "Games" }
slave = { path = "wb.hdf", bootpri = 6 }
# slave = "scratch.hdf"        # the bare-string form still works

The name sets the volume label of a directory mount; AmigaDOS volume names hold up to 30 characters and cannot contain : or /. It has no effect on a raw HDF, which carries its own label inside the image.

filesystem ("ffs", the default, or "ofs") picks the filesystem a directory mount’s in-memory volume is built with; it only applies to a directory (an HDF/gzip image already carries its own filesystem inside it, and Copperline refuses the key on one at config-parse time). FFS is the default because it is the more modern, more capacious choice, but Kickstart 1.3’s ROM has no FFS handler built in -- real 1.3 hardware needs L:FastFileSystem loaded from disk, or an RDB FileSystemHeader chain, neither of which Copperline can bundle (it is Commodore-copyrighted). OFS (DOS\x00) is built into every Kickstart ROM from 1.2 onward, so a directory mount meant to work under 1.3 with no guest-side setup should set filesystem = "ofs":

[ide]
master = { path = "/host/Games", filesystem = "ofs" }

bootpri (-128..127, default 0) is the de_BootPri written into the synthesized RDB’s partition, which is what the ROM’s strap ranks boot candidates by. Kickstart enters DF0: at priority 5, so the default 0 loses the tie to a bootable floppy; raise it to 6 to boot the hard disk ahead of one, or lower it to sort two hardfiles against each other. The sentinel -128 also clears the partition’s PBFB_BOOTABLE flag, so the volume mounts but is never offered for boot. It has no effect on an image that carries its own RDB -- those priorities live inside the image, where HDToolBox put them -- and Copperline logs a warning if you set it on one.

The configuration screen edits bootpri on the Storage tab’s Boot Priority sub-page, one row per drive (see The window, status bar, and menus): a Priority number and a Bootable box, where a cleared box is the -128 sentinel. A drive left at 0 with no cascade default writes no bootpri key.

The drive responds to ATA IDENTIFY with the Gayle byte order real hardware uses, so both Kickstart 3.1 variants boot from it. An HDD activity LED appears in the status bar on IDE machines. On the A4000 profile the same [ide] section attaches drives to the motherboard IDE interface at $DD2020 (no Gayle involved; Kickstart’s scsi.device drives it the same way).

timing and spin_up give the drives the seek, rotation and transfer times of a real drive of the period instead of completing every transfer at once; see Drive timing.

A path ending in .cue, .iso, .nrg, or a .chd holding a CD (chdman’s createcd; one holding a hard disk, createhd, attaches as the hard disk described above -- the CHD’s own metadata decides, not its name) attaches an ATAPI CD-ROM drive at that slot instead of a hard disk, through the PACKET (0xA0) command -- the same read-only SCSI-2 command engine [scsi] CD-ROM units use (see below), reached over the ATA task file instead of a WD33C93 SCSI bus. It mounts and swaps discs, plays CD audio, and answers scsi.device filesystems the same way a [scsi] CD-ROM unit does.

[pcmcia] -- the A600/A1200 credit-card slot

[machine]
profile = "A1200"            # only the Gayle machines have the slot

[pcmcia]
card = "cf"                  # "none" (default), "cf", or "sram"
path = "card.hdf"            # cf: the card's image; sram: optional backing file
# size = "2M"                # sram only: 64K..4M
# read_only = false          # sram only: the card's write-protect switch

The A600 and A1200 carry a PCMCIA slot wired through Gayle. Copperline fits one of two card types:

Command-line equivalents: --pcmcia-cf PATH and --pcmcia-sram SIZE.

Interaction with Zorro II fast RAM. The slot’s common-memory window is $600000-$9FFFFF, inside Zorro II expansion space, and [memory] fast autoconfigures upward from $200000. With more than 4M of fast RAM the RAM board covers the window and, as on a real A1200 with an 8M Zorro II expansion, Gayle’s PCMCIA decode gives way: the slot is disabled, reads as empty, and Copperline warns at start-up that the configured card will not be seen. Keep fast = "4M" or less to use the slot (accelerator, motherboard, and Zorro III RAM do not overlap it). The two can never claim the same addresses: autoconfigured RAM always answers first.

At run time the window’s PCMCIA Card menu (offered only on a machine with the slot) inserts a CF image or ejects the card, and the control protocol’s pcmcia.insert / pcmcia.eject do the same headlessly; both raise Gayle’s card-detect interrupt as a physical insertion does.

[scsi] -- SCSI controllers

[scsi]
# controller = "a2091"       # a2091 (default), a4091, or a3000
# rom = "a2091-v7.0.rom"     # optional replacement; A2091/A4091 default to bundled open ROMs
# rom_odd = "a2091-odd.rom"  # a2091 only: split even/odd EPROM dumps
unit0 = "workbench.hdf"      # SCSI IDs 0-6
unit1 = "data.hdf"
unit2 = "game.cue"           # .cue/.iso/.nrg/.chd attaches a CD-ROM drive
# unit3..unit6 = ...
# timing = "period"          # period drive mechanics (see Drive timing)
# spin_up = true             # also model power-on spin-up

The [scsi] section attaches a SCSI host adapter with up to seven drives. timing and spin_up give the hard disks on any of the three controllers the seek, rotation and transfer times of a real drive of the period; see Drive timing. controller picks which one:

For the A2091, omit rom to use the bundled copperline-a2091.rom (see Where bundled files are found), or point it at another 16K/32K/64K A590/A2091 boot ROM image. Dumps split into even/odd EPROM halves can be given as rom (even, U13) plus rom_odd (odd, U12). The ROM is required on the Zorro boards because the autoboot DiagArea and the scsi.device driver itself live in it; the autoconfig identity comes from the board (the A2091 is Commodore product 3, with its DiagArea vector at $2000). The replacement ROM sources and EPROM-pair build outputs live in a2091-rom/.

Each unitN accepts everything [ide] paths do: RDB images, bare partition hardfiles (a synthesized RDB advertises a bootable DHn partition, named after the SCSI ID), gzip-compressed hardfiles (.hdz), CHD hard-disk images (.chd, writes kept in the .chd.wov overlay), fixed and dynamic VHDs (.vhd), and host directories built into in-memory FFS/OFS volumes -- including the { path = "...", name = "...", bootpri = N, filesystem = "..." } table form that overrides a directory mount’s volume name, filesystem, and the synthesized partition’s boot priority. The HDD activity LED covers SCSI traffic too.

A SCSI ID can also hold a tape drive; those are configured with [[tape]] entries rather than a unitN path.

A unitN path ending in .cue, .iso, .nrg, or a .chd holding a CD (a hard-disk CHD attaches as a hard disk; the metadata decides) attaches a SCSI CD-ROM drive at that ID instead of a hard disk: a read-only removable SCSI-2 target (INQUIRY device type 5) serving 2048-byte blocks, with the full READ TOC / READ CD / mode-page surface CD filesystems expect. Cue sheets, NRG, and CHD images may mix data and audio tracks (a cue sheet’s audio tracks may be WAVE or MP3 files, as described under [cd] below); a bare .iso is a single data track. The drive answers on the host adapter’s scsi.device like any other unit, so mount it the way you would on real hardware: a DOSDrivers mount entry (or MountList) pointing CDFileSystem -- CacheCDFS, AsimCDFS, and AmiCDROM work the same way -- at the controller’s scsi.device and the drive’s unit number.

CD audio plays: the PLAY AUDIO command group streams the disc’s audio tracks into the machine’s audio output at 75 sectors per second of emulated time (as if the drive’s analogue output were cabled to the machine), the sub-channel reports the live playback position, and the debugger’s Audio tab shows the stream on its CD-DA row with the play state, track, and position. Discs swap at runtime like CDTV/CD32 media: the status bar’s CD load/eject buttons, dropping a .cue/.iso/.nrg/.chd on the window, the scheduled --insert-cd-after SECS PATH flag, or the control protocol’s media.cd.insert all eject the current disc, run the tray for a second of emulated time, and mount the new one with a medium-change unit attention for the guest’s filesystem to notice.

[copperhf] -- Copperline’s virtual hardfile controller

[copperhf]
unit0 = "workbench.hdf"     # units 0-6
unit1 = "data.hdf"
# unit2..unit6 = ...

[copperhf] fits copperhf.device, Copperline’s own virtual hardfile controller: an emulator-only board with no real-hardware counterpart, the Copperline equivalent of WinUAE’s uaehf.device. It exists to move data at zero emulated cost. Rather than modelling a real chip’s register timing and DMA behaviour as [ide], [scsi], and [lide] do, it has a purpose-built register protocol, and there is no host adapter to choose.

It takes up to seven units (0-6), each in the same bare-path/table drive form as [ide]/[scsi]/[lide]: RDB images, bare partition hardfiles (the synthesized RDB names the bootable partition DH0..DH6 after the unit number), gzip-compressed hardfiles (.hdz), CHD hard-disk images (.chd, writes kept in the .chd.wov overlay), VHDs (.vhd), and host directories built into in-memory FFS/OFS volumes, including the { path = "...", name = "...", bootpri = N, filesystem = "..." } table form described under [ide]. The images go through the same shared hardfile layer as the other three controllers, so a unit here behaves like the equivalent [scsi] unit in everything but the register protocol. A write-protected image (a CHD whose overlay could not be created) reports as such through TD_PROTSTATUS, and its writes fail with TDERR_WriteProt.

Hard disks only: unlike [ide]/[scsi]/[lide], a unitN path ending in .cue, .iso, .nrg, or a .chd holding a CD is rejected at config-parse time rather than attaching a CD-ROM drive -- copperhf.device has no ATAPI/SCSI-CDROM command set behind it. Attach CD images to [scsi] or [ide]/[lide] instead. A .chd holding a hard disk is fine.

The guest sees copperhf.device with unit numbers 0-6, matching the unitN keys. The board carries a boot ROM (a DiagArea plus a working copperhf.device exec-device stub and partition mounter). A program that knows the device’s name can OpenDevice("copperhf.device", unit, ...) and drive it directly, and at boot the mounter walks each unit’s RDSK/PART chain (synthesizing one from a bare partition hardfile, as the other controllers do) and mounts and offers its bootable partitions like any other controller’s. See copperhf.device: register protocol and boot ROM for the board, the register protocol, and the boot ROM’s current behaviour in full.

[lide] -- a lide.device-compatible Zorro II IDE board

[lide]
# board = "ripple"        # ripple (default), ride, or atbus2008
# rom = "lide.rom"         # omit for the bundled default; "" for hardware-only mode
# rom_bank2 = "cdfs.rom"   # omit for the bundled default (ripple/ride only)
drive0 = "workbench.hdf"   # channel 0 master
drive1 = "data.hdf"        # channel 0 slave
# drive2, drive3           # channel 1 master/slave (ripple only)
# timing = "period"        # period drive mechanics (see Drive timing)
# spin_up = true           # also model power-on spin-up

[lide] fits a Zorro II IDE board compatible with LIV2’s open-source lide.device, giving autobooting IDE storage under any Kickstart including 1.3. Unlike [ide], which needs a Gayle or A4000 IDE port, [lide] works on any machine model, as [scsi]'s Zorro boards do. A .cue/.iso/.nrg (or CD-holding .chd) drive entry attaches an ATAPI CD-ROM drive, as it does on [ide].

board picks the AutoConfig identity: "ripple" (the default), LIV2’s open-hardware Zorro II card with two ATA channels (four drives); "ride", LIV2’s expansion-port board, which shares RIPPLE’s ROM image and register layout but has one channel (two drives); or "atbus2008", the AT-Bus 2008 and its clone family (Dicke Olga, the TK accelerator boards’ IDE, CDTV-RAM-IDE, Zorro-LAN-IDE), one register model covering the whole family, one channel, no ROM banking. None of the three wire an interrupt line -- lide.device is a purely polling driver.

drive0..drive3 take the same bare-path/table form as [ide]/[scsi] (RDB images, bare partition hardfiles, .hdz, .chd, .vhd, host directories, and the { path = "...", name = "...", bootpri = N, filesystem = "..." } table), one key per slot in (channel, master/slave) order: drive0 and drive1 are channel 0’s master and slave, drive2 and drive3 are channel 1’s ("ripple" only -- "ride" and "atbus2008" have one channel). Each is independent, so any slot can be filled or left empty on its own, the same way [ide]'s master/slave and [scsi]'s unit0..unit6 are:

[lide]
board = "ripple"
rom = "lide.rom"
drive1 = "ch0-slave.hdf"   # channel 0 slave, with no master fitted

An older drives = [...] array is still read, so configs written before the named keys existed keep working. It is positional, so it cannot leave a slot empty ahead of a filled one (a channel 0 slave with no master, say), which is why the named keys replaced it. A named key wins over the same slot in the array, and saving from the launcher rewrites a config to the named form.

A fitted board (an explicit board, or a drive image) with no rom defaults to a Copperline-bundled ROM from lide.device’s GitHub releases page: "ripple"/"ride" get the CIDER/RIPPLE/RIDE build (lide.rom), "atbus2008" gets its own lide-atbus.rom -- the two are different linker layouts, not interchangeable, so which board is fitted picks which bundled file resolves. Set rom = "" to opt back out into hardware-only mode: no DiagArea, no autoboot, but drives still work once a disk-loaded lide.device finds them -- the same setup lide’s own CI uses to test in-development driver builds without flashing anything. rom_bank2 (a second flash bank, such as LIV2’s cdfs.rom CD filesystem) defaults the same way alongside a fitted rom, except on "atbus2008", which has no ROM banking and is never offered one; rom_bank2 = "" opts out on its own without touching rom. Either key can instead name a release download of your own, which always wins over the bundled default. The bundled files are found as described under Where bundled files are found.

timing and spin_up time the board’s hard disks like real drives of the period, as on [ide]; see Drive timing.

Drive timing -- period hard-drive mechanics

[machine]
profile = "A1200"

[ide]
timing = "period"          # "instant" (the default), "period", or a profile id
# spin_up = true           # also model the drive spinning up at power-on
master = "System.hdf"
slave = { path = "Work.hdf", timing = "seagate-st9080a" }   # this drive only

By default a hard drive completes every transfer within the access that starts it, which is far faster than any real drive of the period. timing gives a drive the mechanism of a real one instead, modelled from its manufacturer’s datasheet:

The guest sees what a real drive shows: on IDE, BSY while it seeks and reads and each block of data and its interrupt when the drive has it; on SCSI, the command still in progress until the drive has data, the data phase at the drive’s buffer and SCSI-bus pace, and status once a write is on the media (or in a write cache); and an activity LED that stays lit through the seek. Loading, booting and benchmarks then run at the speed of the machine with that drive fitted.

timing takes:

Set on the section ([ide], [scsi] on any of its three controllers, [lide]), it covers every hard disk there; set in a drive’s own table, it covers just that drive. A [[host_disk]] on one of the section’s slots takes the section’s timing. --hd-timing TIMING sets the section timing from the command line.

spin_up = true also models the drive coming up to speed at power-on: an IDE drive stays busy for its spin-up time (seconds), and a SCSI drive answers NOT READY, “becoming ready”, until it is up, so Kickstart’s probe waits for it just as it did on the real machine -- including Kickstart 3.0’s habit of giving up on a slow IDE drive. It is off by default because it adds those seconds to every boot.

A timed drive also does what its power management did. On IDE, SEEK and the power commands work (IDLE and STANDBY, immediate or with a standby timer, and CHECK POWER MODE), so spin-down tools work: a stopped drive pays its standby-to-ready time on the next access. An untimed drive still rejects them, as before. On SCSI, START STOP UNIT spins a timed drive down and up. The Seagate 2.5" drives also park their heads after 5 seconds without a command, so the next access seeks in from the edge.

The configuration screen sets the timing of every section at once on its A/V & Emu -> Emulation page (see The window, status bar, and menus).

Commodore never documented which drives it fitted, so period follows owner reports and reviews:

Machine / interfaceperiod isFitted to
A600 ([ide])conner-cp2024the 20 MB A600HD
A1200 ([ide])conner-cp2064the A1200HD’s Conner “60 meg”
A4000 ([ide])seagate-st3144athe early A4000/040’s 120 MB drive
A3000 ([scsi], controller = "a3000")quantum-lps-52sthe A3000’s 52 MB Quantum
A2091 in an A2000 or another big-box machine ([scsi])quantum-lps-52sthe A2000HD’s 52 MB Quantum
A2091 on an A500, A500OCS, A500+, A1000 or CDTV ([scsi])seagate-st125nthe A590 side-car’s 20 MB Seagate
A4091 ([scsi], controller = "a4091")seagate-st31200na 1 GB SCSI-2 drive, the class the A4000T shipped with
any machine ([lide])wd-ac2120a period 3.5" IDE drive

Built-in drives (copperline --list-drive-profiles prints this table):

idDriverpmSeek ms (avg)Media rateBuffer
conner-cp2024Conner CP2024, 21 MB 2.5" ATA, 1990343323937 KB/s8 KB
conner-cp2044Conner CP2044, 43 MB 2.5" ATA, 19903486191130 KB/s32 KB
conner-cp2064Conner CP2064, 64 MB 2.5" ATA, 19903486191130 KB/s32 KB
conner-cp2084Conner CP2084, 85 MB 2.5" ATA, 19913486191130 KB/s32 KB
seagate-st9080aSeagate ST9080A, 64 MB 2.5" ATA, 19923449161.21-1.59 MB/s32 KB
seagate-st9145aSeagate ST9145A, 128 MB 2.5" ATA, 19923449161.21-1.59 MB/s64 KB
seagate-st9235aSeagate ST9235A, 210 MB 2.5" ATA, 19923449161.21-1.59 MB/s64 KB
seagate-st9655agSeagate ST9655AG, 524 MB 2.5" ATA, 19943980162.1-2.8 MB/s120 KB, write cache
ibm-dpra-21215IBM DPRA-21215, 1.2 GB 2.5" ATA, 19954900123.6-5.7 MB/s64 KB
seagate-st3144aSeagate ST3144A, 130 MB 3.5" ATA, 19913211160.88-1.18 MB/s32 KB
conner-cp30084Conner CP30084, 84 MB 3.5" ATA, 19913400191131 KB/s64 KB
conner-cp30104Conner CP30104, 120 MB 3.5" ATA, 19913400191131 KB/s64 KB
wd-ac2120WD Caviar AC2120, 120 MB 3.5" ATA, 19923605151.23-1.48 MB/s32 KB
quantum-fireball-1080atQuantum Fireball 1080AT, 1.08 GB 3.5" ATA, 19955400124.1-8.2 MB/s128 KB
seagate-st125nSeagate ST125N, 21 MB 3.5" SCSI, 1987360038799 KB/s1 KB (no read-ahead)
seagate-st157nSeagate ST157N, 49 MB 3.5" SCSI, 1987360038799 KB/s1 KB (no read-ahead)
quantum-prodrive-40sQuantum ProDrive 40S, 42 MB 3.5" SCSI, 19883662190.87-1.09 MB/s64 KB
quantum-prodrive-80sQuantum ProDrive 80S, 84 MB 3.5" SCSI, 19883662190.87-1.09 MB/s64 KB
quantum-lps-52sQuantum ProDrive LPS 52S, 52 MB 3.5" SCSI, 19903660171.03-1.59 MB/s64 KB
quantum-lps-105sQuantum ProDrive LPS 105S, 105 MB 3.5" SCSI, 19903660171.03-1.59 MB/s64 KB
seagate-st31200nSeagate Hawk 1LP ST31200N, 1.05 GB 3.5" SCSI, 199554119.32.9-5.0 MB/s240 KB (usable)
quantum-fireball-1080sQuantum Fireball 1080S, 1.08 GB 3.5" SCSI, 19955400124.1-8.2 MB/s128 KB

Any profile works on any interface. A profile describes the mechanism, not the capacity: an image smaller than the drive sits on its outer cylinders, as a partition at the start of the real disk would, and a larger one is spread across its full stroke with more sectors to each cylinder. Either way it spins, seeks and transfers like the drive it names.

A drive that is not built in can be described with [[drive_profile]], from scratch or as changes to a built-in one, and named in timing like any other:

[[drive_profile]]
id = "quantum-gls-170"        # what timing = "..." names
label = "Quantum GoDrive GLS 170"
rpm = 3600
heads = 4
zones = [                     # outermost first; or cylinders = N and
    { cylinders = 700, sectors_per_track = 70 },  # sectors_per_track = N
    { cylinders = 695, sectors_per_track = 50 },  # for an unzoned drive
]
seek_ms = [5, 17, 30]         # track-to-track, average, full stroke
buffer_kib = 96
# write_seek_ms, head_switch_ms (3), skew = [track, cylinder], overhead_ms (1),
# prefetch_sectors, read_ahead (true), partial_hits (true), write_cache
# (false), spin_up_s (10), standby_spin_up_s, idle_park_s, scsi_kb_per_s

[[drive_profile]]
id = "quick-conner"
base = "conner-cp2064"        # every figure from the built-in...
seek_ms = [4, 15, 30]         # ...except these

A table without base must give rpm, heads and seek_ms, plus its geometry as zones or as cylinders and sectors_per_track. id cannot be instant, off, none or period, which timing already uses. A profile the model cannot use is rejected with the configuration: rpm must be 1 to 20000, heads 1 to 64, each zone’s sectors_per_track 1 to 1024 with at least two cylinders in all, buffer_kib at least 1, and the three seek times must rise (track-to-track < average < full stroke). Millisecond figures may not exceed 600000 and second figures 600.

HDD-TIMING-PLAN.md in the source tree records each profile’s sources and the figures that had to be estimated.

The model runs in emulated time, so a timed machine is as reproducible as any other: headless runs repeat byte for byte, a save state resumes exactly (and carries the drive model it was saved with), and netplay peers share the host’s drive models. Only spinning hard disks are timed: [copperhf], [sf2000sd], [[filesys]] folders, a [pcmcia] card and CD-ROM drives keep their own behaviour, and timing on a [copperhf] or [sf2000sd] unit is an error.

[sf2000sd] -- the SF2000 accelerator’s Zorro II SD card controller

[sf2000sd]
card = "workbench.hdf"
# rom = "sf2000sd.rom"   # omit for hardware-only mode (no autoboot)

[sf2000sd] fits the SF2000 accelerator’s built-in Zorro II SD card controller: a 64K I/O window over an SPI-mode SD card that autoconfigures on the chain like [lide]'s boards. card takes the same bare-path/table drive form as [copperhf]'s units (RDB images, bare partition hardfiles, .hdz, hard-disk .chd, .vhd, host directories, and the { path = "...", name = "...", bootpri = N, filesystem = "..." } table) -- hard disks only: unlike [lide], a CD image path is rejected, since the controller speaks the SD card command set, not ATAPI/SCSI-CDROM.

Unlike [lide]'s rom, there is no Copperline-bundled default: the boot ROM is the SF2000 firmware author’s own, not Copperline’s to ship. rom absent (or "") is hardware-only mode -- registers are live from power-on, no autoboot, but the card still works once a disk-loaded driver finds it. Point rom at a dump of your own board’s flash to get autoboot.

The full SD-over-SPI command set, multi-block transfers included, is implemented and has been checked against a real Amiga driver’s source. The launcher’s Storage page has a card slot and a boot-ROM picker for the board, like every other controller. [[host_disk]] passthrough of a real host SD reader is not supported yet. See Peripherals and expansion for the register protocol and its current limits.

[[host_disk]] -- a real disk of the host’s

Give the machine a real disk of this computer’s instead of an image -- a card in a reader, a USB drive, a drive on a SATA port. The medium is used exactly as it is, with its own RDB, partitions, and filesystem.

[[host_disk]]
device = "sdb"                 # the name `--list-disks` prints
fingerprint = "v1-..."         # opaque identity written by the launcher
attach = "ide-master"          # ide-master (default), ide-slave, lide0-master,
                                # lide0-slave, lide1-master, lide1-slave, scsi0..scsi6,
                                # or pcmcia (a CF card in the A600/A1200 slot)
read_only = true               # the default; false explicitly allows writes

device is the host’s current enumeration name -- sdb on Linux, disk4 on macOS, PhysicalDrive1 on Windows -- and copperline --list-disks prints it. Those names can change between boots. A launcher-saved fingerprint is authoritative: it lets Copperline follow the same hardware to a changed name, but only when exactly one attached disk matches; a missing or ambiguous match is refused. Keep this opaque value as written. Older and hand-written entries without it retain exact device lookup. To record one, select and mount the disk afresh in the launcher, then save or launch; a plain open-and-save keeps the field absent. An unambiguous fingerprint is sufficient for read-only use. Persisted writable use additionally requires a fixed, non-removable disk with a credible serial/WWN: removable media is considered weak even when a USB bridge reports its own serial, and must be freshly selected for each writable session, as must a fixed disk without a credible serial/WWN.

Absent read_only means read-only, including for older configurations that previously relied on the writable default. Set it to false explicitly to allow guest writes. The command-line equivalents make the access choice for the current run: --host-disk DEVICE [ATTACH] is read-write, while --host-disk-read-only is protected. An unresolved disk leaves that drive slot empty and the machine starts anyway.

The disk this computer is running from is never offered and never opened, whatever is written here, and no RDB is synthesized over a disk that has none. Opening a real disk asks for permission the first time, and the host’s volumes on it are unmounted while the machine has it. Attach read-only the first time: Physical host disks covers the whole of it.

[[tape]] -- SCSI tape drives

[scsi]
controller = "a2091"

[[tape]]
unit = 4                  # SCSI ID 0-6 on the [scsi] controller
path = "backups"          # a directory, or a single file
# kind = "file"           # "directory" or "file"; default: what path is
# capacity = "150M"       # how much data the tape holds; default: no end
# write_protect = true    # the cartridge's write-protect tab

Each [[tape]] entry puts a SCSI tape drive on the [scsi] controller at SCSI ID unit: a SCSI-2 sequential-access device (INQUIRY device type

  1. with a cartridge in it. It needs a SCSI controller, so the machine must have one: a [[tape]] entry by itself fits the default controller with its bundled ROM, exactly as a [scsi] unitN would (an A2091 on most machines, the motherboard controller on an A3000), and a [scsi] section chooses another. A SCSI ID holds one device: a [[tape]] on an ID that a [scsi] unitN or a [[host_disk]] already uses is an error. The guest reaches the drive through the controller’s scsi.device and the unit number, with whatever tape software it would use on real hardware.

path is the cartridge, used as written (relative paths are relative to the directory Copperline is started from), and what it is on the host decides what kind. A path with nothing at it yet is made a directory; kind = "file" asks for a blank single-file tape instead, and a kind that contradicts what is at the path is an error when the machine starts:

capacity gives the tape an end: a size such as "150M" or "2G", counting the data in all its tape files. Near the end (the last 1/32nd of the tape, at most 1 MiB) a write is still carried out but reports end-of-medium, which is the early warning backup software uses to close the tape; at the end, a write stops with VOLUME OVERFLOW and the number of blocks it could not place. Without capacity the tape has no end and a guest can write until the host disk is full.

Either way the host files hold nothing but the data: a tape file the guest writes with tar is a tar archive on the host, and the other way round.

That also means the cartridge does not record how the data was blocked. The drive’s block length decides: with a fixed block length (512 bytes at power-on, changed with MODE SELECT) a tape file is read as blocks of that length, and a last block that is shorter is reported as an incorrect-length block; in variable-block mode (block length 0) each read takes as many bytes as it asks for, up to the end of the tape file. Every tape file ends in a filemark, whether or not the guest wrote one after its data, and writing anywhere on the tape discards everything from there to the end, as on a real tape.

A save state holds the drive -- where the head is, the block length, which cartridge -- but not the cartridge’s contents, which stay in the host files whatever state is loaded. Loading a state reads the cartridge again as it is now; if it no longer matches what the state was saved with (a tape file missing, added, or shorter than the head position), Copperline logs a warning and puts the head at the nearest position the tape still has. A state whose cartridge path this session has not opened is reported like any other state that reaches for a new host file.

write_protect = true slides the cartridge’s write-protect tab: writes, filemarks and erases fail with a DATA PROTECT error and MODE SENSE reports the tape as protected.

The drive implements TEST UNIT READY, REWIND, REQUEST SENSE, READ BLOCK LIMITS, READ(6), WRITE(6), WRITE FILEMARKS, SPACE (blocks, filemarks and end-of-data, in both directions), INQUIRY, MODE SENSE(6) and MODE SELECT(6) (the block descriptor and the device configuration page), RESERVE/RELEASE, ERASE, LOAD/UNLOAD, SEND DIAGNOSTIC and PREVENT/ALLOW MEDIUM REMOVAL. Setmarks, partitions, READ POSITION and LOCATE are not implemented. The transport takes no emulated time: there is no tape-motion model, so a rewind or a space across the whole tape completes at once.

Netplay sessions have no tape drives: a cartridge is a writable host file, which two machines cannot share.

[[filesys]] -- host directories as live volumes

[[filesys]]
path = "/data/amiga/Workbench"
volume = "Workbench"   # optional, defaults to the directory name
bootpri = 6            # optional boot priority; default -128 = never boot

[[filesys]]
path = "/data/amiga/downloads"
readonly = true        # optional, export the directory write-protected

Each [[filesys]] entry exports a host directory to the guest as an AmigaDOS volume on its own HOSTFS<n>: device, served live by the emulator: no disk image is built, and guest reads always see the current host contents. This differs from giving [ide]/[scsi] a directory path, which snapshots the tree into an in-memory FFS or OFS volume at startup (see filesystem above). Up to 8 mounts are allowed; the launcher’s Host Folder page edits the first four.

The volumes are read-write by default: the guest creates, writes, renames, and deletes the host’s files directly, and changes land in the directory as you would expect. Set readonly = true to export a directory write-protected instead -- the guest sees a read-only disk and every write fails with the same “disk is write-protected” error a physical write-protected disk gives, which is worth setting on anything you would rather the Amiga could not damage. The launcher’s Host Folder sub-page (under the Storage tab) offers the same choice as its Access row.

Amiga file attributes a host filesystem cannot hold -- protection bits such as script/pure/archive, file comments, and exact datestamps -- are kept in UAE-style .uaem sidecar files, read when present and written back when the guest changes them; the sidecars stay hidden from guest listings, and the delete-protection bit is honoured. Host filenames are mapped between UTF-8 and the guest’s Latin-1 (names with no Latin-1 spelling are hidden, since the guest could neither display nor reopen them). Host symlinks inside the mount are followed, wherever they point: the guest has no way to create one, so a symlink is treated as the host user deliberately grafting a directory into the mount, the same trust model as the UAE family.

A name the guest creates has to be one ordinary file name to the host as well. Names containing :, /, \ or a NUL, the names . and .., and names ending in .uaem are refused, so a created file, directory or rename target always lands inside the mount. On a Windows host the DOS device names (CON, PRN, AUX, NUL, COM0-COM9, LPT0-LPT9, with or without an extension) and names ending in a dot or a space are refused too, because Windows would open a device or a differently named file instead.

A file named copperline.toml (in any letter case, in any directory of the mount) is read-only to the guest: it cannot be created, written, truncated or renamed onto. A Copperline run started from a directory that holds one loads it as its configuration without being asked, so a guest that could write one would choose the host directories and devices of that later machine.

A mount keeps at most 96 files open at once; a further Open() fails with “not enough memory” until one is closed. The volume’s root directory cannot be deleted, and a Read() or Write() with a negative length fails.

volume sets the AmigaDOS volume name (up to 30 characters, no : or /). bootpri enters the volume in the boot-device vote (-128..127; the default -128 means mounted but never booted from): hard-disk boot partitions typically sit at priority 0 and DF0: at 5, so a bootable Workbench directory with bootpri = 6 boots ahead of both.

To the guest each volume is an FFS hard disk (disk type DOS\1, as the UAE family reports its directory volumes), with the host disk’s size and free space. Some software checks the type before it will use a volume: the Video Toaster’s file browser (its load and save requesters) lists only volumes of a DOS type it knows, and C:Info calls any other an unreadable disk.

Kickstart 1.3 and newer get the full feature set, booting included: a bootpri above the competition boots the machine from the host directory as SYS: under 1.3 exactly as under 3.1 (the service speaks both the V36 boot-node protocol and V34’s own autoboot and handler startup conventions). Kickstart 1.2 and older lack the expansion-ROM hook entirely and never see the mounts.

File and directory dates are the host files’ own timestamps, but the volume itself has no creation date on the host, so every mount reports a fixed one: 1 January 1978, the AmigaDOS epoch. That matters on a machine with no battery clock fitted (the A500 and A1200 profiles, among others), whose OS sets its system time from the boot volume’s date: booting from a host directory starts the guest clock at 1 January 1978, as a clockless Amiga does from undated media, and a headless run boots to the same moment every time. Fit a clock ([machine] rtc = true) for the guest to read the host’s time instead, or seed one with rtc_time for a fixed date.

[clipboard] -- host clipboard sharing

[clipboard]
share = true    # default: false -- sharing is opt-in

Text copied in the guest -- anything an application posts to clipboard.device unit 0 as an IFF FTXT clip -- lands on the host clipboard, and text on the host clipboard is available to paste in the guest, the way WinUAE shares its clipboard. The guest side is a small resident bridge in the Copperline services board’s ROM (the same board that serves [[filesys]] mounts), so it needs no guest configuration and no software installed: under Kickstart 2.0 and later it hooks clipboard.device for change notifications; under Kickstart 1.3, whose clipboard.device has no hooks, it re-reads the clip every two seconds and pushes it only when its ID is new. The device is disk-based on 1.3 and 3.1 (DEVS:clipboard.device), so the bridge waits for the boot volume to provide it, backing off and giving up quietly on a system without one -- a game booting from its own bootblock never sees any of this. The bridge’s DOS device, HOSTCLIP:, is not a filesystem and refuses everything but its own startup.

Host text reaches the guest as Latin-1 with LF line ends (characters the Amiga cannot show become ?, CRLF folds to LF); guest text reaches the host as UTF-8 with the platform’s line ends. Only text is shared; a picture on either clipboard is left alone. The host clipboard is read a few times a second while the emulator window has the focus, and only when its text changed. Up to 1 MiB of text crosses in either direction. A host with no clipboard to read -- a Wayland compositor that offers no data-control protocol, with no X11 display behind it -- is reported once in the log and then left alone rather than reopened on every poll; the guest side of the bridge still runs, so clipboard.get/clipboard.set over the control protocol keep working.

share is off by default, windowed and headless alike, and the bridge is fitted only where it is asked for: share = true or --clipboard. The bridge is a unit of the Copperline services board, so sharing puts an autoconfig board on the Zorro chain that the machine you configured does not otherwise have. Kickstart binds the board at boot, and every Exec allocation after it lands somewhere else. That is a different machine, and some software can tell: a program that points COP1LC at a buffer before it has written the list there has the Copper read whatever the buffer holds, and where the buffer sits decides what that is. Lotus Esprit Turbo Challenge hangs on one layout where the data decodes as a MOVE to INTENA that clears the master interrupt enable. A host convenience should not change the guest’s memory map unless asked to.

Headless, share = true is still safe for determinism: the bridge is then reachable only through the control protocol’s clipboard.get/clipboard.set (see Control), never through the host clipboard itself, since the host clipboard is live host state a replay cannot reproduce (see Determinism and the host boundary). That is also how a recording made in a windowed session with sharing on replays headless on the same machine: pass --clipboard. Netplay peers never share, on either side of the session and even with an explicit --clipboard: every peer must build the same machine, and the bridge is part of the services board’s layout, so a session where one side fitted it could not agree on a machine at all. Input Settings -> Share Clipboard toggles the host side at runtime; it is greyed out when the machine was started without the bridge, which is part of the board’s boot and cannot be added later.

[whdload] -- direct WHDLoad boot

[whdload]
game = "Turrican.lha"       # .lha, .zip, or a folder with a .slave
# library = "..."           # unpacked games and saves; default:
#                           # <host data dir>/whdload/save
# kickstarts = "..."        # directory scanned for Kickstart images; default:
#                           # the rom's directory, then <library>/Kickstarts
# args = "ButtonWait"       # extra WHDLoad command-line options
# machine_type = "auto"     # or "copperline" to boot on this machine
# whd_package = "..."       # your own WHDLoad_usr.lha
# skick_package = "..."     # your own skick*.lha

# Launcher only.
# enabled = true            # false removes the WHDLoad page entirely
# games = "..."             # the folder the Library page lists
# library_db = "..."        # default: <host data dir>/whdload/support/launcher.db
# library_cache = "..."     # default: <host data dir>/whdload/support/cache

[whdload] boots straight into a WHDLoad-installed game. The package is unpacked into the game library (once -- saves the game writes persist there), a minimal boot volume is synthesized around the real WHDLoad program, raw Kickstart images from kickstarts are identified by content and staged into Devs:Kickstarts/, and the machine is derived from the slave header (an A1200 with 8 MiB fast RAM) unless [machine], rom, or [memory] say otherwise; machine_type = "copperline" boots on the machine the rest of the configuration describes instead. --whdload GAME is the command-line equivalent and overrides game. WHDLoad support covers the whole feature, including what the support archives are and how Kickstart identification works.

The developer-oriented counterpart is --run PROG: it stages the same kind of boot volume around an ordinary Amiga executable and warp-boots into it. It is command-line only by design (no config section) and is covered in Direct executable launching (--run).

[cd] -- CDTV and CD32

[machine]
profile = "CD32"

[cd]
image = "disc.cue"        # cue sheet, bare .iso, Nero .nrg, or CHD .chd
insert_delay = 0.0        # emulated seconds after power-on to insert
# nvram = "cd32-nvram.bin" # CD32 save-game EEPROM backing file
                          # (on a CDTV: the bookmark RAM, "cdtv-bookmark.bin")

image takes a cue sheet, a bare .iso (single data track), a Nero .nrg, or a .chd -- MAME’s compressed CHD CD format (v5, as chdman’s createcd writes: LZMA/Deflate/FLAC-compressed hunks with data and audio tracks). The disc mounts on the machine’s CD controller: Akiko on CD32, the DMAC on CDTV.

NRG supports both the older NERO/32-bit and newer NER5/64-bit footer formats, with DAO (CUES/DAOI, CUEX/DAOX) or TAO (ETNF/ETN2) track layouts. MODE1/2048, MODE1/2352, MODE2/2336, MODE2/2352, and CD-DA tracks are supported; multi-session discs and images with stored subchannel bytes are rejected explicitly.

Subcode: every image delivers its Q-channel position to the machine. The R-W channels, which carry CD+G graphics, exist only in images that stored them, and Copperline reads three forms: a CloneCD-style .sub file with the same name as the image file (game.bin + game.sub, or game.img + game.sub next to the cue sheet that names it; 96 bytes per sector), a cue sheet track of type CDG (2448-byte sectors: the audio followed by its subcode), and a CHD created with raw subcode (SUBTYPE:RW_RAW in its track metadata). The .sub file must match a single-file image sector for sector; one that does not is reported in the log and ignored, and a save state made with a .sub file still loads after the file has gone, with the regenerated subcode. None of the three forms has been checked against a real CD+G disc yet. Both the CD32 and the CDTV receive the data while the disc plays.

CDXL video discs need no special setting: mount the image on a CD32 profile and launch it as on the console. For a bare ISO, Copperline promotes each cooked 2048-byte sector to a complete raw Mode 1 frame (including EDC and P/Q parity) when an Akiko client requests raw sectors. CD32 discs that use a CDTV trademark boot record for backward-compatible startup are accepted by the same path.

CD32 FMV-enhanced titles use the same Akiko media path once the module is fitted: top-level fmv = true fits the bundled open module, and naming fmv_rom fits another image. Under CD32 Kickstart, raw Video CD movie discs auto-launch the open cartridge’s track player; use Up/Down, Red, and Blue to select, play, and stop. The bundled AROS ROM deliberately skips the cartridge diagnostic and so does not install that player.

A cue sheet’s FILE lines may be BINARY (raw sector images, single- or multi-file) or, for audio tracks, WAVE and MP3 -- the packaged form a disc’s audio tracks often come in, one file per track:

FILE "game.bin" BINARY
  TRACK 01 MODE1/2352
    INDEX 01 00:00:00
FILE "game (Track 02).mp3" MP3
  TRACK 02 AUDIO
    PREGAP 00:02:00
    INDEX 01 00:00:00
FILE "game (Track 03).wav" WAVE
  TRACK 03 AUDIO
    PREGAP 00:02:00
    INDEX 01 00:00:00

Audio files are decoded to CD-DA as the drive reads them, not up front, so a disc with an hour of MP3 audio loads as fast as a BIN/CUE and never holds its decoded audio in memory. Any WAV PCM layout is accepted (8/16/24/32-bit or float, mono or stereo, any rate); MP3 covers MPEG-1/2/2.5 Layer III at the standard bitrates, constant or variable (free-format streams are not read), with ID3 tags skipped and a LAME tag’s encoder delay trimmed so the track is sample-exact against the WAV it was encoded from. Sources not at 44.1 kHz are resampled. PREGAP/POSTGAP lines add the gap sectors such files cannot hold (they read as silence, and the TOC points past them), as does an INDEX 00 inside a file. Data tracks must be in BINARY files; MOTOROLA and AIFF files are not supported. MP3 decoding is the default-on cd-mp3 Cargo feature; a build without it loads WAVE tracks and rejects MP3 ones with a message saying so.

insert_delay inserts the disc that many emulated seconds after power-on, with the proper media-change notification; some CDTV discs only boot when inserted after the boot screen appears. CD32 NVRAM persists to cd32-nvram.bin in the [paths] nvram folder unless overridden with [cd] nvram; a cd32-nvram.bin already in the working directory from an earlier Copperline keeps being used from there.

On a CDTV the same key names the backing file of the battery-backed bookmark RAM, the 16 KiB of memory at $DC8000 where bookmark.device keeps title saves, high scores and the player’s preferences. It defaults to cdtv-bookmark.bin in the [paths] nvram folder (a cdtv-bookmark.bin in the working directory is used from there instead), and nvram = "" keeps the bookmark RAM session-only, as on a player with a flat battery. A run started with --factory has no default file either, so it neither picks up an earlier session’s saves nor leaves any; a file named with [cd] nvram is used whatever the flags. The file is a raw image of the memory. A shorter file fills the start of the RAM; a file longer than 16 KiB is not a bookmark image, so Copperline reports it, leaves it untouched and keeps the RAM session-only for that run. A change reaches the file a quarter of an emulated second after the guest makes it, on a reset, and when Copperline closes; each save writes a new file beside the old one and renames it into place, so an interrupted save leaves the previous one intact. Loading a save state restores the bookmark RAM the state holds and writes that to the session’s file, so the file always matches the machine; keep a copy of the file if a state from before a save is about to be loaded over it. Netplay sessions never use a backing file.

[[zorro]] -- expansion boards

[[zorro]]
metadata = "boards/megaram.toml"

[[zorro]]
metadata = "boards/myboard.toml"
# config = { mode = "fast" }  # WASM plugin boards: setting overrides

Each entry adds a Zorro board described by a TOML metadata file, configured in file order after the built-in [memory] fast/z3 boards. For a WASM plugin board, the optional config table overrides individual settings that the plugin’s manifest declares (layered over the manifest’s [config] defaults; the launcher’s Zorro tab edits the same values). See Writing Zorro board plugins for the metadata format, the plugin ABI, and how autoconfig assigns addresses.

[a2065] -- Ethernet

[a2065]
net = "nat"   # or "bridge", "loopback"; "none" for an isolated NIC
# interface = "en0"  # required for "bridge"

[a2065] fits a Commodore A2065 Ethernet board (Am7990 LANCE) on the Zorro chain; --a2065-net BACKEND is the matching per-run flag, and the launcher’s I/O Ports tab (Networking page) has the same picker. net selects the host network backend:

Omit the section entirely for no board. Host networking is inherently non-deterministic: inbound frames arrive on the host’s schedule, not the emulated clock, so a NIC board breaks byte-identical replay and save-state determinism while traffic flows. A save state stores the bridge adapter identifier and must be restored on a host where that adapter can be opened. See Writing Zorro board plugins for board details, platform bridge setup, and the NAT’s limitations.

[toccata] -- AD1848 sound board

[toccata]
enabled = true

[toccata] fits a MacroSystem Toccata sound board (an AD1848 codec) on the Zorro chain. Its stock, open-source AHI driver (toccata.audio) works unmodified, so any AHI-aware guest application gets 16-bit sound with no Copperline-specific setup. No other options exist yet. Omit the section (or enabled = false) for no board. The launcher’s I/O Ports tab (Audio page) has the matching fit/don’t-fit toggle. The board’s output joins the mixer as the toccata source for --audio-stems (see Headless and scripted execution); see Writing Zorro board plugins and Toccata and the AD1848 model for the register model.

[mhi] -- virtual MPEG audio decoder board

[mhi]
enabled = true

[mhi] fits a virtual MPEG-1/2/2.5 Layer III audio decoder board on the Zorro chain, serving the Amiga MHI API through the ported mhi_copperline.library, so MHI-aware guest software (AmigaAMP, for example) gets hardware-accelerated MP3 decoding. No other options exist yet. Omit the section (or enabled = false) for no board. It needs a build with the mhi feature (on by default; off only for the wasm32 build). The launcher’s I/O Ports tab (Audio page) has the matching fit/don’t-fit toggle.

The guest library is not auto-installed: copy the committed artifact, guest/mhi/mhi_copperline.library, into the guest’s LIBS:mhi/ drawer. AmigaAMP (and other MHI clients) find MHI drivers by scanning LIBS:mhi/ for mhi#?.library, so the file must sit in that drawer under a matching name; check the player’s own MHISupport/MHI-Driver settings if it does not pick up the library automatically. The board’s decoded output joins the mixer as the mhi source for --audio-stems (see Headless and scripted execution). The board consumes each descriptor’s bitstream at the decoded audio’s own emulated-time rate, so playback through it is deterministic and byte-for-byte reproducible, like --audio-wav captures of the rest of Copperline’s audio path. See Writing Zorro board plugins and The MHI decoder board: mailbox register protocol for the register model.

[hostsocket] -- bsdsocket.library without a guest TCP/IP stack

[hostsocket]
net = "nat"   # or "bridge", "loopback", "host"; "none" for a dead wire
# interface = "en0"       # required for "bridge"
# dns_server = "10.0.2.3" # only used when resolver = "dns" (see below)
# hostname = "amiga"      # gethostname() return value (cosmetic)
# address = "192.168.1.50/24" # interface address; only for "bridge" (see below)
# gateway = "192.168.1.1"     # default gateway; only for "bridge" (see below)
# resolver = "dns"            # gethostbyname() via dns_server directly instead
#                             # of the host's own resolver (the default under
#                             # "nat"/"bridge"/"host"); see below

[hostsocket] fits the bundled HostSocket board: bsdsocket.library for the guest, backed by a TCP/IP stack that runs on the host instead of inside the emulated CPU. Any bsdsocket-consuming application (an Aminet tool, an MQTT client, a game with an online mode) opens bsdsocket.library and calls socket()/connect()/send()/recv() as it would against AmiTCP or Roadshow, but there is no guest-side stack to install, configure, or boot: the library autoboots from the board’s ROM on Kickstart 1.3 through 3.x and on the bundled AROS ROM. --hostsocket-net BACKEND is the matching per-run flag, and the launcher’s I/O Ports tab (Networking page) has the same picker.

net takes the same host network backends as the A2065 (see above for the "nat" and "bridge" details and caveats), with one difference: the guest never configures an IP address, because the host-side stack owns addressing. Under "nat" sockets reach the outside world; under "loopback" the guest can talk to itself (127.0.0.1) with fully deterministic behaviour, which makes "loopback" the right backend for reproducible headless tests of socket-using software. gethostbyname() works under "nat", "bridge", and "host" with no further configuration (see resolver below); under "loopback" lookups fail, since loopback never routes through a real resolver.

net = "host" is a different kind of backend. Instead of terminating TCP/UDP on the board’s own embedded TCP/IP stack and pushing frames through a NAT, bridge, or loopback backend, each socket operation (socket/connect/send/recv/bind/listen/accept/sendto/ recvfrom/getsockname/getpeername) goes straight to a real host OS socket, as Amiberry’s and WinUAE’s bsdsocket emulation does. The guest shares the host’s network identity instead of getting an address of its own: outbound connections work with no configuration at all (no interface address, no gateway, no pcap/TAP privileges), and a bind()/listen()/accept() server is a plain host port bind. This is not true bridging -- the Amiga gets no LAN IP -- but it covers the common reason for wanting bridge mode, with none of its setup. interface, address, and gateway are rejected under "host", since the board has no interface of its own to configure. Raw ICMP (ping) is unaffected: "host" only handles TCP and UDP, and ICMP still goes through the board’s smoltcp interface, which is fixed to "loopback" under "host". Because the sockets are the host’s own, guest software under "host" can connect to anything the host can, including services on 127.0.0.1, and a guest server that binds the wildcard address listens on every host interface, where other machines on the network can reach it.

address and gateway matter only under "bridge". The defaults (10.0.2.15/24 and 10.0.2.2) are Copperline NAT’s own virtual addresses: correct under "nat" and "loopback", but meaningless on a real LAN, where nothing answers ARP for a 10.0.2.2 gateway. Set both to match the LAN interface is bridged to (address = "192.168.1.50/24", gateway = "192.168.1.1", say). There is no DHCP client, so pick a static address as you would for any other statically configured device on that network. Leave both unset for "nat" and "loopback".

resolver picks how gethostbyname() works, independent of the addressing above. Unset, it defaults to "host" under "nat", "bridge", and "host": Copperline resolves the name through the host OS’s resolver on a background thread -- the mechanism [a2065]'s NAT backend uses for its own DNS forwarding -- so lookups work with no dns_server to configure. resolver = "dns" makes the board’s own smoltcp stack send a real DNS query to dns_server (default 10.0.2.3, the NAT’s DNS forwarder) over the fitted backend, which is how to target a specific resolver (an internal DNS server on a bridged LAN, for instance) rather than whatever the host uses. Under net = "host" that query goes out over the loopback interface and never gets an answer, so "dns" is of no use there. An explicit resolver = "host" is rejected under "loopback" and "none", which get no resolver at all: a real host resolver would defeat loopback’s byte-identical replay. Reverse lookups (gethostbyaddr()) ignore this setting and always send a PTR query to dns_server.

Do not fit this board and also boot a real guest TCP/IP stack (AmiTCP, Roadshow, ...) in the same session: both would add a bsdsocket.library, and which one an application opens is undefined. Use [a2065] for testing real stacks and SANA-II drivers, and [hostsocket] for running or testing the applications above them. The determinism note on [a2065] applies here too: "nat", "bridge", and "host" traffic arrives on the host’s schedule and breaks byte-identical replay, while "loopback" and "none" stay deterministic. The board state, open sockets included, rides in save states, but live TCP/UDP peers do not survive a restore. Under "host" every socket a save state remembers comes back closed (host OS socket handles are never part of the snapshot), so the guest sees each connection as dropped, as a resumed "nat" or "bridge" session already does for its live traffic.

The board is implemented as a bundled WASM plugin (see Writing Zorro board plugins); its verification record against the external bsdsocktest conformance suite is in crates/hostsocket-plugin/docs/bsdsocktest-status.md.

[zz9k] -- ZZ9000 SDK crypto accelerator board

[zz9k]
enabled = true
# zorro = 3        # 2 or 3; default: 3 on a 32-bit CPU, else 2
# size = "4M"      # Zorro III window, power of two 1M..256M; Z2 is fixed at 4M
# int2 = false     # completion interrupt on INT2 instead of the INT6 default
# seed = "..."     # reserved deterministic DRBG seed (1-64 hex digits); no current consumer

[zz9k] fits a register-compatible subset of the MNT ZZ9000’s “SDK v2” service platform -- the CORE, MEMORY, and CRYPTO services -- with the crypto computed host-side: SHA-1/256/384/512, BLAKE2s, HMAC, Poly1305, ChaCha20, ChaCha20-Poly1305 and AES-GCM AEAD, X25519 and P-256 key exchange, P-256 keygen, and ECDSA/RSA signature verification, all at host speed. The zz9000-sdk’s unmodified Amiga-side software -- zz9k.library, the zz9k-info/zz9k-hash/zz9k-aead/... tools, and its accelerated AmiSSL build -- detects the board as it detects real hardware (manufacturer 0x6D6E, product 4 or 3), so TLS on an emulated 68k stops being bottlenecked by guest-side crypto. See The zz9k crypto board: ZZ9000 SDK v2 protocol subset for the protocol contract and the pinned SDK revision.

The board is pure compute: fitting it keeps the machine fully deterministic and replay-safe, and it works headless, in save states (including mid-operation), and on any machine profile. On Zorro II the window is pinned at 4M -- the only Zorro II size the SDK transport accepts shared-buffer allocations for -- and the SDK’s Zorro II path polls instead of using the doorbell, which the board handles transparently. zorro = 3 needs a CPU with a 32-bit address bus (68020/030/040/060, not the 68EC020), like any Zorro III board. The other keys take effect only with enabled = true; setting them without it is an error.

The guest picks the completion-interrupt line itself via the SDK’s ENV:ZZ9K_INT2 / ZZ9000.CFG convention; int2 here sets what the board’s config-key register reports (leave it false for the INT6 default unless guest-side software asks otherwise).

Only the SDK services above exist: the real ZZ9000’s RTG, USB, and Ethernet faces are absent (registers read zero, services report unsupported), so do not install the P96 zz9000.card display driver against this board -- it is harmless but shows nothing.

[rtg] -- RTG graphics card

[rtg]
card = "picasso2"
vram = "2M"

card is "picasso2", "picasso2plus", "graffityz2", "graffityz3", "z3660", or "none"; a machine takes at most one. All of these boards give the guest high-resolution, high-colour screens through Picasso96.

"picasso2" fits a Village Tronic Picasso II with a CL-GD5426 graphics controller. "picasso2plus" fits the later CL-GD5428 revision, reports its distinct autoconfig serial number, and wires vertical blank to INT2. Both are Zorro II boards, so they work with 68000/68010 and 24-bit 68EC020 machines as well as 32-bit CPUs. vram selects either real board’s "1M" or "2M" memory configuration and defaults to "2M"; it is ignored for other cards. Install the Picasso96 PicassoII.card driver and its monitor file in the guest. The board starts on native Amiga pass-through and switches the Copperline display to RTG only while the guest enables a valid Picasso screen.

"graffityz2" and "graffityz3" fit Ateo Concepts’ Graffity, which reuses the same CL-GD5428 core as Picasso II+ under its own autoconfig identity; vram selects "1M" or "2M" for either, same as the Picasso II family. "graffityz2" is a Zorro II board, so it works on any CPU. "graffityz3" is a Zorro III board and needs a 32-bit address bus (68020/030/040/060), same restriction as "z3660". Install the Picasso96 Graffity.card driver and its monitor file in the guest -- it ships in the classic Aminet Picasso96Install package, so no separate download is needed.

"z3660" is a Zorro III board. It comes fitted by default on the A3000 and A4000 profiles, whose stock CPUs have a 32-bit address bus; other machines leave the slot empty unless card asks for one. Like Zorro III RAM and "graffityz3", it needs a 32-bit address bus (68020/030/040/060), and asking for it with a 24-bit CPU is an error. It needs the open-source Z3660.card driver installed in the guest (with its monitor in DEVS:Monitors). With that in place, Z3660 screen modes appear in ScreenMode, and the window shows the board’s output when a screen is opened.

The Z3660 board’s stock monitor ships with the DISPLAYCHAIN=NO tooltype, which models the real hardware’s separate RTG monitor and never hands the display back to the native screen. On a single-window emulator you usually want DISPLAYCHAIN=YES, so the one window follows whichever screen is active.

[cartridge] -- freezer cartridge

[cartridge]
model = "hrtmon"                # "none" (the default) or "hrtmon"
# rom = "/roms/hrtmon.rom"      # an HRTMon cartridge image of your own

[cartridge] fits an Action Replay-style freezer cartridge: a system monitor mapped into its own memory space that can interrupt and inspect running software at any time.

--cartridge hrtmon fits the cartridge from the command line, and the launcher’s System -> Freezer cartridge row sets it.

The cartridge maps a 1 MiB bank at $A10000 and keeps live snapshots of the write-only custom and CIA registers. A freeze -- the menu’s Freeze (HRTMon) item, Cmd+Shift+B / Alt+Shift+B, headless --freeze-after SECS, or the control protocol’s cartridge.freeze method -- asserts a level-7 NMI, which enters the HRTMon monitor at once. Enter x in the monitor to resume, or help for its commands.

Cartridge memory, register snapshots, and an active monitor session are preserved across save states and rewind history. Input scripts and recordings log the button press itself as freeze-after SECS. See Peripherals and expansion for the architecture.

[debug] -- diagnostics

[debug]
log_unmapped = "DD0000-DEFFFF"
validate_chipset = true
detect_smc = true

log_unmapped logs every CPU read and write inside the given range that no device decodes. Reads report the floating bus value they returned, writes report the value that went nowhere. The value is a hex START-END range whose end is included (a leading 0x is allowed), or all for the whole address space.

This is how you find the registers a guest expects and Copperline does not implement yet. A missing register is usually invisible: a read floats, a write is dropped, and the guest misbehaves or hangs with no diagnostic. Pointing this at the window a driver probes shows the access pattern directly -- an IDE presence probe, say, appears as a write of $A0 to the device/head register followed by a long run of status reads that never come back ready.

A booting Kickstart probes enough empty address space that all produces on the order of a million lines per boot, so prefer a range once you know roughly where to look.

validate_chipset arms the custom-register access validator: a running report of software using the chipset in ways the hardware quietly ignores. It flags writes to registers the fitted Agnus/Denise does not have, bits a register does not define, writes to read-only registers and reads of write-only ones, byte or odd-address access to word registers, access through an address mirror, and DMA pointers aimed past the chip RAM Agnus can address. It also covers the engines behind those registers, where misuse hangs rather than glitches: a blit started while the previous one is still running (there is no register-file interlock, so the running blit is drained and the replacement starts from whatever pointer state it left) or with its DMA switched off (BBUSY is set and the blit stays pending until BLTEN and DMAEN are enabled), disk DMA armed against a drive that could not serve it at that moment -- no media, or the motor still off, the class behind the classic loader dead-spins -- and a keyboard handshake pulse too narrow to count as one while the MCU was waiting for it, which costs a key and stalls input until the keyboard resynchronizes after 143 ms. Each finding names the PC (or Copper address) that made the access and the beam position, is deduplicated by (kind, register, writer) with a repeat count, and is logged the first time it is seen. It also arms a per-register last-writer table, which answers “what set BPLCON3, and from where?” without a bisect. Read both over the control protocol with chipset.report and custom.writer (see the control protocol), which can also arm and disarm the validator live. Off by default; an unarmed machine pays nothing for it.

detect_smc reports writes that land on memory the CPU has already executed. Self-modification is legitimate on a 68000 -- decrunchers, trackers and Copper-list patchers all do it -- but it is also where a prefetch-related bug hides, since the CPU has already fetched the word ahead of the one it is executing, and neither a patch applied too late nor one applied to the wrong address leaves a trace at the moment it happens. Each report names the written address, the instruction that wrote it, and the distance between them, calling out a patch close enough to sit inside the prefetch. An address counts as code once an instruction there has retired, so an instruction patching its own extension words on its only execution is not reported; every repeating pattern is caught on the pass after the first. Read it with smc.report over the control protocol, which can also arm and disarm the detector live. Off by default; it costs a 1 MiB execution map while armed.

Rollback netplay

Rollback netplay has no configuration keys; it is set up per run. --netplay-host PATH and --netplay-join CODE start an Internet session, and --netplay-bind, --netplay-peer, --netplay-player, and --netplay-session start a direct one. --netplay-players gives the host three or four controller ports, the last two through the four-player adapter, and --netplay-delay and --netplay-rollback set the input delay and prediction limit. The configuration screen also has a Netplay page; its connection details are kept for the app session and are not written to machine configuration files. See Rollback netplay for commands, controls, spectators, and supported machine configurations.