joeylib2/installer/patches/mame
2026-09-28 15:27:29 -05:00
..
lua Major changes to setup. Now installable by mere mortals on Debian, Fedora, and WSL. 2026-09-28 15:27:29 -05:00
0001-apple2gs-scc-clock.patch Major changes to setup. Now installable by mere mortals on Debian, Fedora, and WSL. 2026-09-28 15:27:29 -05:00
0002-z80scc-rx-fifo.patch Major changes to setup. Now installable by mere mortals on Debian, Fedora, and WSL. 2026-09-28 15:27:29 -05:00
0003-x68k-crtc-timing.patch Major changes to setup. Now installable by mere mortals on Debian, Fedora, and WSL. 2026-09-28 15:27:29 -05:00
0004-x68k-waitstates-rs232-mouse.patch Major changes to setup. Now installable by mere mortals on Debian, Fedora, and WSL. 2026-09-28 15:27:29 -05:00
README.md Major changes to setup. Now installable by mere mortals on Debian, Fedora, and WSL. 2026-09-28 15:27:29 -05:00

MAME 0.264 patches

install.sh (component mame) applies these to the MAME 0.264 release in filename order, then builds one binary with the apple2gs and x68k drivers. The gates depend on every one of them.

Patch What it fixes Needed by
0001-apple2gs-scc-clock The IIgs SCC clock, so serial RX works at rates other than 230400 baud verify-iigs-serial.sh
0002-z80scc-rx-fifo Widens the Z8530 receive FIFO from 8 to 512 bytes, so a POLLED receiver (no RX interrupt) survives the emulator's deaf windows. Real silicon holds 3 bytes; real clients need interrupt-driven RX. Originally written for RetroNet. IIgs serial gates
0003-x68k-crtc-timing The X68000 CRTC: the graphic high-speed clear's timing (the main defect), and the text raster copy firing on both hsync edges instead of only the front porch X68000 gates and timing
0004-x68k-waitstates-rs232-mouse Three X68000 changes that edit the same files: VRAM wait states (MAME modelled none), the RS-232C port wired to a slot so -rs232c null_modem works, and a backport of upstream commit ab6b6fc9e797 (Patrick Mackinlay, "x68k: add serial mouse"), which provides the :mouse_port:x68k:X/Y/BTN inputs verify-x68000-serial.sh, verify-x68000-mouse.sh, X68000 timing

Why the X68000 changes are one patch

They were first kept as three separate patches, but the upstream mouse backport no longer applied cleanly on top of the other two in any order, and the sources the working MAME was built from had been fixed up by hand. These four files were regenerated on 2026-09-27 by diffing that working tree against the pristine 0.264 release, so they reproduce it exactly (verified: every file applies with zero fuzz and matches byte for byte).

Probes

lua/ holds the MAME Lua probes used while developing the X68000 patches (boot check, CRTC timing, wait states). Run one with mame x68000 -bios ipl10 -autoboot_script lua/<probe>.lua.