# Sound: the AY-3-8910 and the YM2151 FM board ## AY-3-8910 (every model) At 1B**h (data, read and write) and 1C**h (register select, write) (SX1 p. 20). Its two I/O ports carry the two joysticks (R14, R15; active low: up, down, left, right, triggers 1 and 2; R7 sets the ports' direction) (SX1 p. 20). MAME clocks it at 2.00 MHz (OBSERVED); SX1 ch. 10 is the board's reference for the clock and the mixing (to read). Core: `../ay8910-python` (built, 2026-11-25, `76cace3`), its `AY-3-8910` row. What the board needs: register select and data by port, the two I/O ports as callbacks (joysticks), a clock input. Nothing new is expected; the stereo or mono wiring and the output level relative to the FM board are board facts (U12). ## YM2151 (OPM) - **CZ-8BS1 FM sound board** (an option for the X1 and X1turbo): YM2151 at 0700h (address) and 0701h (data), with a Z80 CTC at 0704h-0707h on the board (SX1 p. 13). The OPM runs at **4 MHz**, not the 3.58 MHz it was designed for, so the board's software shifts key codes (SX1 ch. 11, table 11-3: "4 MHz 動作時のキーコード", KEY FRACTION = 5). Its IRQ output is not used: the OPM cannot answer a Z80 mode-2 acknowledge, so timers come from the board's CTC (SX1 ch. 11, register 14h). - **turbo Z**: the YM2151 is built in at the same ports; 0704h is a data latch there and no CTC is fitted (SX1 p. 13 checkpoint). - C1: MAME 0.285's `x1turbo` lists "YM2151 OPM @ 2.00 MHz" with a separate `ctc_ym` (OBSERVED, `-listdevices`). SX1 says 4 MHz. Follow SX1 (DOC, a 1987 hardware book) and keep MAME's figure as the detector's; settle with a recording of the board if one appears. Core: `../ym2151-python` is Phase 0 (restarted 2026-11-19, `3207328`), no core yet, with Nuked-OPM as its closed-box referee in emu-tools-gpl. The X1 is a second family consumer beside x68000-python (Phase 0, 2026-11-26); both want a clock input and register writes, the X1 with no IRQ wiring. Nothing new to ask of it beyond what x68000-python asks. ## Other boards with a CTC SX1 p. 21 says the FM board and a "立体ボード" (literally a "three-dimensional board": a stereoscopic-display adapter or a stereo sound board, not established) also carry CTCs. Out of scope for the first rows (U13: which board, which ports).