Skip to content

Copperline 1.2.0

Latest

Choose a tag to compare

@LinuxJedi LinuxJedi released this 21 Nov 09:36
· 18 commits to v1 since this release

Copperline 1.2.0 is the second feature release of the 1.x series. It adds a video slot with an emulated NewTek Video Toaster 4000 and Video Flyer, an Amiga 2000 profile, a terminal display that also works over SSH, single-file web pages for floppy titles, high-density floppies and MP4 recording. The CPU core gains a long list of conformance fixes, and Copper, sprite, beam-counter and interrupt timing are corrected. It also includes every fix made on the 1.x branch since 1.1.0.

Before upgrading

  • Netplay peers must all run 1.2.0. Players and spectators need the same build.
  • Recreate RetroArch save states after updating the core. The core's states carry a build fingerprint that includes the release version.
  • Desktop save states from 1.1.0 still load, with one exception. A factory A500 state saved by 1.1.0 resumes in 1.2.0 and renders byte-identical frames. The built-in copperhf.device driver has changed, though, and save states do not carry its ROM. A 1.1.0 state saved with a [copperhf] drive attached can hang after loading, so boot that machine afresh and save a new state. States saved by 1.2.0 do not load in 1.1.0: it stops with an error naming the missing field external_id_mode.
  • The 68040 now leaves its unimplemented FPU instructions to 68040.library, as the real chip does. A 68040 with an FPU, running without that library (a bare Kickstart, a --run program on AROS, or a WHDLoad game that uses them), stops with a Line-F exception, Software Failure #8000000B under AmigaOS. [cpu] unimplemented = "native" restores the 1.1.0 behaviour. Software that enables FPU exceptions in FPCR now takes them.
  • Remote debugging is opt-in. --gdb, --gdb-gui and copperline-ctl --dap-listen accept only loopback addresses unless --allow-remote-debugging is given. The control server no longer prints its token on stderr; read it from the --control-info file, or from the temporary file whose path it prints.
  • Files named on the command line are taken as what they are. Floppy images, WHDLoad archives and folders, CD images and .toml files are no longer taken as the Kickstart ROM path. A .rom, .bin or extensionless name still is.
  • Host-directory volumes look different to the guest. [[filesys]], --run and WHDLoad host-directory volumes report the disk type DOS\1 instead of CLFS. They are dated 1 January 1978 instead of the host time, so identical runs no longer vary with the host clock.
  • The refreshed AROS ROM leaves about 3 KB less free memory. Its partition.library has lost its table-writing functions, which moves the offsets of every function after them. HDToolBox or C:Partition from an older AROS m68k disk calls the wrong functions under this ROM.
  • Emulated timing has moved. The new AROS ROM reaches the boot block at a different moment, and the timing fixes below move events. --expect-screenshot references and recorded input scripts made with 1.1.0 may need to be made again.
  • Source builds: the browser, libretro and player frontends are now members of the root Cargo workspace, so a source-built libretro core is at target/release/.
  • No configuration key or command-line option is removed or renamed. See the changelog for the full list.

Video Toaster 4000 and Video Flyer

@TronMetatron has added a video slot to the A4000 and an emulated NewTek Video Toaster 4000 to fit in it. With [video_slot] card = "toaster", the NewTek switcher (Toaster 4.x) starts, passes its own card tests and runs: muxes, fader, keys, framestores, wipes and digital video effects. The card's four inputs, its recordings and the Flyer's drives are folders on the host. Drop video files or stills into an input folder and they play into the switcher; ffmpeg decodes video. Preview and Program open in monitor windows with working front panels, and Program records to MP4 or AVI.

flyer = true fits the NewTek Video Flyer beside it. The Flyer plays clips and sequences, with their sound, into inputs 3 and 4. The flyerclip and flyer-convert tools (in source and Homebrew builds) convert video files to and from Flyer clips. An MCP client can drive the Toaster software through its ARexx ports and manage Flyer clips (toaster_* and flyer_* tools).

The card supplies genlock sync while it is fitted. [chipset] genlock = true now fits an external genlock on its own: BPLCON0.ERSY then slaves the beam to it instead of stopping the counters, and Kickstart's genlock probe finds it. The Toaster software and the Kickstart ROM are not included. See video slot.

Amiga 2000

--model A2000 (and the configuration screen's machine selector) builds a B2000 Rev 6.x: the 8372A Agnus and OCS Denise, 1M of chip RAM, the battery-backed MSM6242 clock and its Zorro II slots. The Rev 4.x and late Rev 6 boards are overrides on it. The FS-UAE and WinUAE importers map their A2000 to it. Thanks to @strongkm for the request; the Bridgeboard is still to come.

An Amiga in your terminal

--terminal shows and drives the machine inside a terminal that speaks the Kitty graphics and keyboard protocols (kitty, Ghostty, WezTerm) instead of a window. No window server is involved, so it works the same over SSH: start Copperline on a remote build machine and drive the Amiga from your local terminal. Only changed frames are sent, and a slow link drops frames rather than slowing the machine. F12 is the host key, --terminal-fps caps the frame rate, and the terminal is given back however the session ends. It runs on macOS and Linux. See terminal display.

A game in one web page

tools/publish-web packs a floppy title into one self-contained HTML file: the browser emulator, the AROS boot ROM, the disk images and the licence texts. The page requests nothing but itself, so it runs from any static host or straight from disk. It has keyboard, mouse, gamepad and touch controls, a DF0 list for multi-disk titles and disk changes kept in the visitor's browser. When the manifest allows it, it also offers a quick save state. It uses the same manifest as the player kit. See publishing.

High-density floppies

1.76 MB HD ADFs, HD DMS archives, extended ADFs with 22-sector tracks and HD ADFs in ZIP files now load in every drive. As on an HD mechanism, density follows the inserted disk. An HD disk turns at half speed with 22 sectors per track, and the drive answers the ID poll as an HD drive only while one is in, so DD disks run as before. The guest needs an HD-aware trackdisk.device (Kickstart 1.x has none). IPF images of HD disks are still refused.

MP4 recordings

[recording] video_format = "mp4", or Recording -> Video Format, makes recordings H.264/AAC MP4 files that common players open. The recorder still captures its lossless AVI and hands it to the host's ffmpeg in the background when recording stops. It removes the AVI only once the MP4 is written; without ffmpeg, or with one lacking libx264, it keeps the AVI. [recording] ffmpeg or COPPERLINE_FFMPEG names the program, and AVI stays the default. Thanks to @warpdesign for the suggestion.

Open files from the desktop

Files named on the command line or opened from a file manager start what they are. Floppy images boot in DF0 (several form its swap playlist), WHDLoad archives, game folders and slaves boot directly, CD images go in a CD32 or CDTV drive, and a .toml file loads as the configuration. The Windows installer registers Open with entries, the macOS app declares its document types to Finder, and the Linux tools archive adds copperline-desktop-setup to register them for your user.

More hardware

  • CD+G: CD subcode R-W data reaches the CD32 and the CDTV from images that stored it: a CloneCD-style .sub file, a cue sheet CDG track, or a CHD with raw subcode. The CDTV drive now delivers subcode while a disc plays.
  • SCSI tape: [[tape]] puts a tape drive on the [scsi] controller (A2091, A4091 or A3000). The cartridge is a host directory with one file per tape file, or a single file, so tar archives work as they stand.
  • CDTV bookmarks: the CDTV's battery-backed bookmark RAM is kept in cdtv-bookmark.bin, so title saves and preferences survive between sessions.
  • Battery clocks can be set: the MSM6242 and RP5C01 take counter writes, so SetClock SAVE works. The host clock is never changed.
  • IDE geometry: an IDE drive reports the heads and sectors per track its Rigid Disk Block records, so a disk partitioned for another geometry keeps its last partition reachable.

CPU

  • The CPU core is the published m68k 0.17.1, with about thirty conformance fixes found by the bare-metal amitorture suite by @solskogen. They cover DIVU/DIVS and CAS/CAS2 flags, trace after an exception, each model's exception frames, FPU exceptions taken through their vectors, and MMU table searches that write back the used and modified bits.
  • [cpu] unimplemented = "trap" now covers the 68040 as well as the 68060 (see Before upgrading). amitorture's 68040 FPU failures dropped from 35 to 2.
  • The JIT runs the [copperhf] driver and the [[filesys]] handlers from local memory, as it does Kickstart. Filesystem-heavy work on those volumes takes less than half the emulated time it did.
  • With the MMU in use (MMULib on a 68040, for example) the JIT costs about a quarter less host CPU time. Thanks to @dlundqvist for the reports and benchmarks in #796.

Chipset timing

  • AGA playfields and sprites move in Lisa's 35 ns steps: BPLCON1's H1/H0 scroll a lo-res playfield by quarter pixels, SPRxCTL's fine bits position sprites in every mode, and collisions compare at the same pitch. SANITY's Roots 2.0 lines its sprite screen up this way.
  • A sprite armed by the CPU or Copper with sprite DMA off is shown on every line and collides in every frame until it is disarmed, as on Denise, which has no vertical comparator. AGA sprites widened by FMODE collide over every word they shift out.
  • A Copper WAIT on line 255 compares all eight vertical bits, and after a CPU COPJMP strobe the Copper spends a bus-request cycle, so clr.w COPJMP1 no longer jumps through a half-written COP1LC.
  • VPOSR's V8 steps with VHPOSR's line byte, so loops that count frames from the beam position no longer count extra ones. A 68000 long read of a register pair takes its first word from its own bus cycle.
  • On 68020 and faster machines, an interrupt unmasked for only a few colour clocks is now taken. The CD32 Classic Lotus Trilogy no longer freezes on the Lotus 1 race screen. A chip-RAM write from a 68020 or faster CPU gets the blitter's yield cycle; under a four-channel blit it used to wait for the whole blit.
  • A CPU halted in STOP wakes on time for an audio DMA block-end interrupt.
  • An 8372A machine with 512K of chip RAM mirrors it as an OCS machine does, so a cracked Cannon Fodder no longer ends in a Guru on the default A500.
  • External floppy drives answer the ID probe while their motor is off, so Deuteros finds its save drive. Thanks to @gmckeown for the report.

Fixes

  • On macOS, switching away with Cmd-Tab no longer leaves the Amiga holding Left Amiga, which broke mouse clicks after switching back.
  • Covered or minimised windows no longer leak GPU memory.
  • With the default mouse_capture = "click", a fullscreen window that shows only the display takes the mouse without a click.
  • An ADF zipped by macOS Finder's Compress, which puts the sizes after the data, now loads at either density.
  • IPF weak bits read differently on each revolution.
  • Cue sheets whose FILE starts at a later INDEX keep their tracks on the right sectors, and sheets saved with a byte order mark load.
  • copperhf.device implements AbortIO, so a task that exits without removing its change interrupt no longer waits forever.
  • A file created on the host in a [[filesys]], --run or WHDLoad folder after the guest has looked for it is found, so a rebuilt --run program is picked up.
  • The libretro core announces its memory map with the command libretro.h defines, so cheat search, memory viewers and achievements see every region.
  • The GDB stub survives clients that reset, disconnect or send malformed packets.

Hardening

Debugger listeners stay on loopback unless asked, control tokens come from the operating system's random source and stay off stderr, and WebAssembly boards have memory and table limits. Host folders refuse drive letters, DOS device names and writes onto copperline.toml, and hold a bounded number of open files. Image parsers (IPF, VHD, CHD, cue sheets, ZIP and WHDLoad archives) are bounded against malformed input. Netplay hosts accept only small control messages, and TCP serial and modem links can no longer freeze the emulator. Rewritten user files (extended ADFs, SRAM cards, NVRAM) are replaced atomically instead of truncated. SECURITY.md now states which inputs are trusted.

AROS ROM

The bundled AROS ROM is rebuilt from upstream master b6dcaeeaa2. Fixes include a task switch that could leave a signalled task never dispatched, DOS allocations no longer taken from the top of memory (where they collided with CD32Load), amigavideo blitter limits, ATAPI media changes, and a CD32 cd.device interrupt storm that could stop I/O. See assets/aros/README.md for the full list.

Other changes

  • Security updates: wasmtime 36.0.21 (RUSTSEC-2026-0566, -0569 and -0571).
  • The m68k CPU core moves from 0.15.0 to 0.17.1.
  • Windows installers can install for the current user (the default) or for all users, and the shipped executables carry their product name and version in Properties -> Details.
  • The manual identifies its version and source revision, and gains troubleshooting, known limits and compatibility notes, and a changelog.
  • Command-line options accept --flag=value, misspelled options suggest close matches, and fatal desktop-launch errors appear in a dialog.

Thanks to the patrons whose support pays for the hardware used to check the emulation; to @TronMetatron for the Video Toaster and Video Flyer; to @solskogen for amitorture; to @dlundqvist, @gmckeown, @strongkm and @warpdesign for reports, requests and testing on GitHub; and to everyone who reported problems on Discord.

Downloads

  • macOS: universal DMG for Apple Silicon and Intel, macOS 14.2 or newer. It is ad-hoc signed, not notarized; see the included first-launch instructions.
  • Windows: installers and portable ZIPs for x64 and ARM64. They are not code-signed yet: the SignPath Foundation certificate is still being issued, so SmartScreen shows Windows protected your PC; choose More info, then Run anyway.
  • Linux: x86-64 AppImage, command-line tools archive (now with copperline-desktop-setup) and a separate bridged-network helper archive.
  • RetroArch: core ZIPs for Linux x86-64, macOS Apple Silicon and Windows x86-64. Install them manually using the libretro guide.
  • Manual and checksums: the PDF manual and Copperline-1.2.0-SHA256SUMS.txt are attached below.
  • Browser: try Copperline without installing it.

Homebrew users can run brew update followed by brew upgrade copperline. For a new installation:

brew tap copperlinehq/copperline https://github.com/CopperlineHQ/Copperline
brew trust copperlinehq/copperline
brew install copperline

Homebrew 7 and later load formulae only from taps you have trusted; on an older Homebrew, leave out the brew trust line.

Source builds require Rust 1.95 or newer: cargo build --release --locked.
The open AROS boot ROM is included; supply your own commercial game media and any required Kickstart ROMs.

Full changelog: v1.1.0...v1.2.0

Code signing policy