Files
courier-emu/docs
Cryan209andClaude Opus 5 e423b26913 Map the CPU port-space output latches from hardware
The ATGLK2 monitor's O selector writes I/O ports, so the three output
latches at 0x10, 0x12 and 0x14 are drivable from the AT interface. Record
what they do, established by strobing single bits on the 20.16 MHz unit
and watching the front panel.

Port 0x14 is the panel, active low: CD, CS, AA, ARQ, HS and SYN, with one
driven bit that shows nothing. Port 0x12 carries MR and a bit that reaches
the analog path audibly. Port 0x10 must not be written at all: its bits 3,
5 and 6 are the serial EEPROM's data, chip select and clock, driven by
direct out instructions that bypass the latch helpers, so a scan of helper
call sites does not see them.

Two things the mechanism forces on any user of O. The latches are
write-only and shadowed at 0x30e..0x311, so a single-bit poke has to be
composed from the shadow, and O is a bare out rather than a
read-modify-write. It also does not update the shadow, so the firmware
will not restore a bit left flipped.

Probing port 0x14 bit 2, the one bit on that latch with no located driver,
moved none of the 256 ports and left the bank byte-identical afterwards.
That is a null result about feedback, not about function: a bit routed to
a DSP pin or a lamp would not appear in the peripheral bank either.

This is the first write of any kind sent to a physical unit here, which
supersedes the standing claim that only reads had been issued.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-04 19:48:27 +12:00
..
2026-09-01 10:48:05 +12:00