m64

QARTZ

flash EMS 64M Game Boy carts·from the terminal
v0.1.0 · universal macOS binary · open source
Dump bank 1, flash LSDj into bank 2, verify — then four of the eleven themes.
Music: an LSDj track by m64. Transfers sped up for the video.

what this is

The EMS 64M is the USB flash cart a lot of Game Boy musicians keep LSDj on: two 4 MB ROM banks and one 128 KB battery-backed save RAM — where the songs live. The app that flashed it, ems-qart, is a Qt app from 2016 that no longer opens on a current Mac.

qartz is its replacement, rebuilt from scratch in Zig on movy: the two banks and the SRAM become pixel-art slots on a glowing PCB bus, and during a transfer the data runs along the traces as packets of light — cart to computer on a read, computer to cart on a write, and back again for the verify. Plus a plain CLI for scripts.

60 fps
neon, in a text terminal
3 slots
bank 1 · bank 2 · sram
100%
of every write verified
11
colour themes · DMG first
1 MB
one binary, libusb inside
0
dependencies, drivers

download

Or straight from a terminal — then just run qartz:

curl -L https://github.com/M64GitHub/qartz/releases/latest/download/qartz-macos-universal.tar.gz | tar xz
mv qartz-*-macos-universal/qartz /usr/local/bin/

Downloaded in a browser instead? qartz is ad-hoc signed, not notarized — clear the quarantine flag once: xattr -d com.apple.quarantine qartz. Linux: build from source with zig build (needs libusb and a udev rule).

what it does

the qartz screen in four colour themes: DUET, NEBULA, VOLTAGE, EMBER
DUET · NEBULA · VOLTAGE · EMBER — t cycles all eleven, with a crossfade
← → 1 2 3pick a slot r · wread the slot · write a file into it bback up everything t · Tnext · previous theme esc · qcancel a transfer · quit
qartz info                        # cart status + both banks
qartz read rom 1 lsdj.gb          # dump a bank
qartz write rom 2 lsdj.gb         # flash + verify
qartz backup ~/lsdj-backup        # everything

how it's built

on the screen

movy's Frame: a float framebuffer with a persistent glow buffer that blurs and decays every frame — the bloom on the carts and the trails behind the packets come from there, for free. Half-block pixels, a dirty-row ANSI writer, 60 fps at about 3% CPU when idle.

The file picker, the widgets and the eleven themes come from DUET, my tracker — the DMG green is qartz's own.

on the wire

One worker thread owns the cart: it watches the USB bus, reads both bank headers when the cart arrives, and runs the jobs while the UI only reads snapshots. libusb is compiled in, so the macOS binary needs nothing installed.

The USB protocol is ems-qart's, which got it from ems-flasher. Tested on a real EMS 64M through a USB hub. Written with Claude Code.

links

USB protocol: ems-qart by Riccardo Binetti, from ems-flasher by Mike Ryan. GPL-3.0-or-later.