Skip to content

Copperline 1.3.0

Latest

Choose a tag to compare

@LinuxJedi LinuxJedi released this 28 Nov 09:12
· 38 commits to v1 since this release

Copperline 1.3.0 is the third feature release of the 1.x series. It adds a DeMoN II freezer cartridge for the A500, Buster expansion-bus arbitration on the big-box Amigas, and a precise CPU core that retires a guest's wait loops in bulk, so software that polls for an interrupt runs several times faster without losing cycle accuracy. The IDE debugger now serves the Amiga Assembly extension's UAE commands and unwinds a crash to the line that caused it. Clips can be saved as lossless animated PNGs, the desktop interface's text boxes take copy, paste and IME input, each floppy drive has its own activity LED, and drag and drop works under native Wayland. Board address decode, 68010 and 68000 timing, and a long list of chipset details are corrected. It also includes every fix made on the 1.x branch since 1.2.0.

Before upgrading

  • Netplay peers must all run 1.3.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.2.0 still load, but 1.2.0 cannot read 1.3.0 states. The expansion-board chunk moves to version 2 for the Buster arbiter; 1.3.0 migrates the old one, and 1.2.0 refuses the new one with an error saying the state comes from a newer Copperline. States now also record the built-in board firmware they were saved with (the copperhf.device ROM and the bundled HostSocket and zz9k boards), and a build whose firmware differs refuses them instead of hanging the guest. The zz9k board's plugin has changed, so a 1.2.0 state with a [zz9k] board loads but the board goes offline at its next request: boot that machine afresh and save a new state.
  • Control-protocol clients arm reverse history on first use, not on connect. A client that wants history from the moment it attaches sends reverse_anchor first. Closing the debugger and console, or detaching GDB, now stops the snapshot ring unless something else still needs it.
  • Emulated timing has moved. The 68010 takes its own instruction times, long writes to the custom registers land one word per bus cycle on OCS and ECS, the A3000 and A4000 take Fat Gary's ROM timing and Ramsey's DRAM timing, and Denise's display gate opens at the first fetched bitplane word. --expect-screenshot references and recorded input scripts made with 1.2.0 may need to be made again. The wait-loop skip itself changes no timing.
  • --gif-after with a path ending in .png or .apng now writes an APNG. Any other path is still a GIF.
  • No configuration key or command-line option is removed or renamed. See the changelog for the full list.

DeMoN II freezer cartridge

The A500 and A500+ can now take gerbilbyte's DeMoN II, an Action Replay-style freezer that plugs into the side expansion port. Fit it with --cartridge demon2 --cartridge-rom PATH, [cartridge] model = "demon2", or the configuration screen's System -> Freezer cartridge row, and give it a 256 KiB EPROM image built for the board, such as the DeMoN II build of Action Replay 5. No image is bundled. The model follows the board's CPLD: 1 MiB of cartridge RAM, CPU writes to the custom registers snooped so the monitor can show write-only registers, entry on reset, on the freeze button or on its programmed CIA triggers through a level-7 vector override, and the stealth jumper that hides the bank again when execution leaves the cartridge. Freeze from the menu, with Cmd+Shift+B / Alt+Shift+B, headless with --freeze-after, or through the control protocol, and the cartridge's RAM and state travel in save states. See freezer cartridge.

Faster wait loops, same cycles

A lot of Amiga software waits by spinning: a tight loop polls a flag in memory until an interrupt handler sets it. The precise CPU core used to execute every turn of such a loop, one instruction at a time. It now proves at run time that a loop's turns repeat exactly (no opcode matching, and no writes, chip-bus or device accesses in the turn) and retires them in bulk up to the next interrupt or device event, the way a CPU halted in STOP already sleeps. The machine ends in the same state, at the same colour clock, as executing every turn would leave it, so this is on by default. A loop polling fast RAM runs about 5x faster on a 68020 and one polling from the caches about 17x on a 68040. Whole programs gain less, since they also do real work: emulating 40 seconds of Desire's Inside the Machine on an A1200 with a 68040 takes 16.4 s of host time instead of 1.2.0's 21.4 s. Thanks to @TronMetatron, whose Video Toaster effects spent 90% of their time in one such loop (#926).

The STOP fast-forward and [cpu] jit batches now share one event horizon. The CD32's Akiko, the Picasso II+ and GVP Graffity retrace interrupts and the Toccata's FIFO report their next event, so a CPU halted in STOP wakes on time for them, and a board that cannot predict its events keeps naps short instead of being taken as idle.

Debugging from VS Code

The DAP adapter now serves the debugger features the Amiga Assembly extension offers for FS-UAE and WinUAE, so its emulatorType: "copperline" sessions get them too. The Debug Console takes the UAE debug adapter's commands: m dumps or disassembles memory, M writes it, d and c disassemble CPU code and Copper lists, and h prints help. Expressions accept its memory references (@(addr), #{addr}, ${expr}) and binary numbers, hovering a label or watching an address register expands the memory there, and the extension's Disassemble memory, Disassemble copper memory and View as Decimal / Hex / Binary commands work. A Segments scope lists the program's hunks, address registers show the label they point into, and the console completes register and symbol names.

When an exception breakpoint stops a program (an address error, an illegal instruction), the call stack now continues through the exception frame into the instruction that raised it, at its source line, with that code's registers and stack, and the exception details name the faulting address. See the DAP guide.

Clips and recording

Clips can be saved as APNG (animated PNG) as well as GIF: choose Recording -> Clip Format, set [recording] clip_format = "apng", or give --gif-after a path ending in .png. An APNG is lossless: HAM and AGA pictures keep every colour instead of being reduced to 256, frames store only what changed, so the file is usually much smaller than the GIF, and 50 and 60 fps clips play at their real rate. Browsers show an APNG in an <img> tag like a GIF. GIF stays the default, and GIF clips no longer play some frames slowly in browsers.

The configuration screen gains a Recording page (A/V & Emu -> Recording) for the clip format, length and frame rate and the video format. With MP4 chosen it shows which ffmpeg will be used, and Browse picks another.

Desktop interface

The configuration screen, the menu and the status bar are now drawn with egui over the picture at the window's own resolution, instead of being painted into the emulator's frame and scaled with it. They look, click and navigate as before, but a value box being typed in is now a real text field: select, copy, cut, paste and IME input all work. The Boot Priority page scrolls through long drive lists. The interface and the inspector windows move to egui 0.37 and wgpu 30, and assistive technology sees the inspector tabs as tabs.

Each floppy drive now shows its own activity LED: the label on a drive's disk button lights amber while that drive's motor runs, so a two-drive copy shows which drive is working. The overall FDD LED follows the motors too, instead of going dark whenever software deselects a drive that is still spinning. Thanks to @abrasion66 for the suggestion (#1004).

Linux: native Wayland drag and drop

Files dragged from a file manager now arrive under native Wayland, as they already did on X11, XWayland, macOS and Windows. The windowing layer Copperline uses delivers no drops on Wayland, so Copperline now takes them from the compositor itself, always as a copy. Copy and paste in Copperline's text boxes and debugger console use the same connection, so compositors such as Hyprland and niri, which send drops and the clipboard only to an application's first connection, keep working. Thanks to @abrasion66 for the report (#936).

Big-box expansion bus

The A2000, A3000 and A4000 now model Buster, the chip that arbitrates the Zorro expansion bus. A2091, A4091 and A3000 SCSI DMA run on the machine clock and are resumable, so the CPU, display DMA, interrupts and save states see transfers in progress. The DIP Buster and Super Buster grant rules, native Zorro III configuration, port widths, slave waits and select collisions are modelled, and memory TAS, CAS and CAS2 hold the bus through their operand cycles. A3000 and A4000 configurations can choose Super Buster revision 7, 9 or 11 with [machine] buster_revision.

Motherboards

Address decode on the Gary, Gayle and Fat Gary boards follows the Commodore specifications. The custom registers repeat every $200, the CIAs answer across $A00000-$BFFFFF on the boards that decode them that way, each on its own data byte, the Kickstart ROM is mirrored where each board mirrors it, and OVL covers the range each board's overlay covers. The A3000 and A4000 take the ROM timing their jumpers set, Ramsey's control writes take effect at the next refresh and its RAM cycles cost what its mode makes them cost, and a long access to the custom registers is two word cycles on every machine.

CPU

  • 68010: instructions take the 68010's own times from the M68000 user's manual, with internal clocks where they fall in the instruction. About 700 of 1,900 instruction forms used to run on another CPU's figures. MULU, MULS, DIVU and DIVS take the 68010's times, branches its own times, and interrupts are sampled with the 68000's lead. Where photographs of an A500 with a 68010 disagree with the manual, the measurement wins.
  • 68000 address errors leave the registers and the exception frame as an A500 does, for every addressing mode and for JMP, JSR and DBcc to an odd address.
  • The CPU core returns to the published m68k 0.18.3, which carries these changes upstream.

Chipset

  • ECS super-hires colours: ECS Denise pairs two super-hires pixels into one colour register and shows the high and low bit pairs of each colour nibble on alternate pixels. Copperline looked each pixel up, so super-hires screens on the A500+, A600 and A3000 showed some colours wrongly.
  • Blitter: area fill works in ascending mode, and with both fill bits set it is exclusive, as on an A500; a line blit that only steps sideways leaves BZERO set. On the A1200 and A4000 the final destination write goes ahead of a waiting CPU.
  • Display gate: Denise opens its display window at the line's first fetched bitplane word, so under BRDRBLNK a line with no bitplanes is black edge to edge, plane-less Copper rulers vanish as they do on an A1200, a BRDRBLNK toggle lands on the pixel it should, and sprites are clipped by the same gate on every chipset. The real-machine photographs in the vAmigaTS test suite settled these.
  • Tall screen modes: DblPAL, DblNTSC, Productivity and the other programmable modes count past line 512 in VPOSR and VPOSW, and sprites (the Workbench pointer among them) can sit below it.
  • AGA: HAM6 keeps both nibbles of the colours it holds, BPLAM applies to HAM and after the dual-playfield priority, HBSTRT/HBSTOP and DIWHIGH take Lisa's fine bits, six-plane HAM works in super-hires, and FMODE.SSCAN2 scan-doubles individual sprites.
  • Interlace: an interlaced screen whose window stops on the long field's last line no longer shows its fields woven in the wrong order (the Video Toaster switcher was the visible case), and native screenshots of software that alternates its field images weave them in the order they were drawn.
  • A $0000 write to Paula's SERDAT cancels the word waiting to be sent, as on an A500, reset returns Agnus to the board's PAL or NTSC standard, and an OCS NTSC Agnus reports its own chip ID.

Fixes

  • Mouse buttons and joystick controls held through a reset stay held, so holding both mouse buttons through Ctrl+Amiga+Amiga opens Kickstart's Early Startup Control (the boot menu) as on a real Amiga. Thanks to @abrasion66 (#1001).
  • Workbench 1.3 no longer shows the year as 1978 with an MSM6242 battery clock fitted: the clock counts years since 1900, as AROS, WinUAE and vAmiga do. Thanks to @abrasion66 (#985).
  • Save states are deterministic with a host folder's files locked or a sound card that has played at more than one rate, and they keep the 68040/68060 MMU translation cache.
  • A netplay spectator catching up on a long backlog no longer fails with "setup data exceeds receive window".
  • The bundled zz9k crypto board verifies RSA-4096 signatures instead of going offline, and its elliptic-curve arithmetic no longer branches on secret values (RUSTSEC-2026-0387).

Thanks to the patrons whose support pays for the hardware used to check the emulation; to @abrasion66 for four reports and suggestions that each became a fix; to @TronMetatron for the Toaster workload behind the wait-loop work; to gerbilbyte for publishing the DeMoN II design and dmcoles for the Action Replay 5 source; to Dirk Hoffmann for the vAmigaTS suite and its real-machine photographs; 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 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.3.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

Code signing policy