# DCS: Midway's ADSP-2105 sound system Mortal Kombat II (T-unit, "DCS Audio 2K" in MAME), every Wolf game ("DCS Audio 8K") and Revolution X ("DCS Audio 2K UART") play sound through DCS: an Analog Devices ADSP-2105 DSP that boots its program from the sound ROMs, decompresses audio from them and drives a DAC. MAME calls the DAC "DMA-driven", meaning the DSP's serial-port autobuffering feeds it (HYPOTHESIS from the name; OBSERVED that the device exists). ## The parts (DOC) MK II parts lists: "1C, ADSP2105 PLCC" at U1 (A-17481), "10MHz Crystal", "PLD GAL20V8, 25ns" at U17, sound ROMs U2-U7 (512 KB each in MAME's set). The ADSP-2105 runs at an **instruction rate equal to its input clock** (ADSP-2100 Family User's Manual, 3rd ed. 1995, section 9: "The ADSP-2101, ADSP-2105, ADSP-2115, and ADSP-2111 processors operate with an input clock frequency equal to the instruction cycle rate"), so **10 million instructions a second**. What the manual says the ADSP-2105 is (DOC, same manual): an ADSP-2100-family DSP with 1K words of internal program memory (the 24-bit instruction words), internal data memory, one serial port (SPORT1 only: "The ADSP-2105 has only one serial port"), the timer, and boot loading from a byte-wide boot memory (section 10). Its instruction set is the family's: ALU, MAC and shifter operations with parallel data moves, zero-overhead loops (DO UNTIL), circular addressing through the DAGs. ## The memory maps (OBSERVED, `map-mk2.txt`, `map-umk3.txt`) | Space | DCS 2K (`mk2`) | DCS 8K (`umk3`) | | --- | --- | --- | | program | internal RAM `0000-03FF`; external RAM `0800-1FFF` | the same, plus the input/output latches as 32-bit words at `3000-3003` | | data | data RAM `0000-07FF` mirrored; banked sound ROM window `2000-2FFF`; bank select `3000-33FF`; input latch / output latch `3400-37FF`; internal RAM `3800-39FF`; control registers `3FE0-3FFF` | RAM `0000-07FF`; data RAM `0800-1FFF`; ROM window `2000-2FFF`; bank `3000`; latches `3400-3403`; internal RAM `3800-39FF`; control `3FE0-3FFF` | Main side: `mk2` reads a DCS status at `01D00000` and exchanges data at `01D01020-3F`; `umk3` at `01680000-0168001F` (OBSERVED). ## How hard it works (OBSERVED, MAME, `count.lua` on `:dcs:dcs`) `mk2` frames 2700-2702: **325,069 instructions in two frames, 8.9 M a second**, of which 320,685 (98.7 %) inside collapsed loops; the trace ends in a three-instruction wait loop (`AR = I7; AF = AR - AY0; IF LT JUMP`), polling an index register (HYPOTHESIS: the one the serial-port autobuffer advances as it sends samples to the DAC). The DSP runs at its full rate whether or not there is work; the work itself is about 1-2 % of that window. Skipping such a wait exactly (run to the next event that can change `I7`) is a `-fast`/turbo technique, not a concession, if the gate shows it identical; skipping it inexactly would be a named concession. ## A new core: `adsp2100-python` No family core covers the ADSP-2100 family. By the chip rule it gets its own repository (recommended name `adsp2100-python`, package `adsp2100_python`, the ADSP-2105 as its first row; MAME's other users of the family include Midway's later boards and Atari's Hard Drivin', so rows 2100/2101/2115 may follow). Phase 0 for it is its own task (open decision 5). ## Where DCS lives DCS is a sound **board** (the DSP, a GAL, ROMs, RAM, a DAC), used by the T-unit's MK II, the Wolf unit and the X-unit, and by Midway boards beyond this family's plans. Recommendation: keep it inside this repository behind the sound-board socket until a second family board needs it, then extract it with history (charter, "Cores and boards").