ELSEIF
Your brief EB
261 stories from 71 feeds 40 clusters Refreshed 4 minutes ago next pull 21:20

TECH Signal 504

ZX Spectrum System Tour: Sound

WHY IT MATTERS

Engineers maintaining or emulating legacy ZX Spectrum software now have a clear reference for the two sound pathways: the BIOS-backed beeper routine and direct port manipulation. The article also surfaces the trade-offs between cycle-accurate timing and code portability when targeting 16 KB vs. 128 KB models.

Written by elseif from the cluster below · every claim links back to a source

The three things worth knowing

01

The Spectrum’s 1-bit beeper is controlled by toggling bit 4 of I/O port $FE, either through the ROM’s BEEPER routine or by hand-coded loops.

02

The AY-3-8910 PSG is present in 128 KB models and add-on cartridges; it lacks a built-in BIOS call, so direct register writes are required.

03

Timing precision differs between the two methods: the BIOS routine uses a 4-cycle delay unit, while direct port access allows frequency-based counters for smoother waveforms.

THE CLUSTER

Same story, 1 feed.

ORDERED BY FIRST SEEN
Hacker News ZX Spectrum System Tour: Sound Open ↗