# Protection: the FD1094 on the sub CPU (System 24), the V25 (System 32) ## System 24: the FD1094 **What is observed** (MAME's lists, [census.md](census.md)): 12 of 27 System 24 sets have the sub CPU as a "Hitachi FD1094 Encrypted CPU" with an 8 KB key ROM (`subcpu:key`). The main CPU is always a plain 68000 (it runs the BIOS). Each FD1094 floppy title has its own key, named `317-0058-NN` for floppy `ds3-5000-NN`: 02 Scramble Spirits (one of its three sets), 03 Gain Ground, 04 Crack Down, 05 Super Masters Golf, 06 Rough Racer, 08 Quiz Syukudai wo Wasuremashita, 09 Dynamic Country Club (floppy set; its ROM-board sets are plain). Hot Rod (01) and Bonanza Bros. (07) run on a plain sub 68000. The sub CPU executes game code from RAM loaded off the floppy (OBSERVED, [boards.md](boards.md)), so on these sets the FD1094 decrypts code fetched from RAM, which agrees with system16-python's note (from MacDonald's System 16B notes) that the FD1094 runs only encrypted code, from ROM and RAM alike. **What is documented**: Eduardo Cruz's guide (AHFD, tier 3: keys written into real modules, games verified running) names System 24 among the boards whose FD1089/FD1094 modules it reprograms ("Sega's System 16 / 18 / 24 / X motherboards", AHFD p. 1), and describes the modules as reprogrammable with any game's key. Everything else about the FD1094 is in ../system16-python `docs/protection.md`: the decryption function itself is documented only by MAME's `fd1094.cpp` (BSD-3-Clause by its `license:` line; copyright Nicola Salmoria, Andreas Naive, Charles MacDonald), not opened. **What the board needs**: m68000-python already reports function codes on request (`function_codes=True`), so a board-side FD1094 filter on the sub CPU's program fetches needs no core change (system16-python's finding). One FD1094 model serves System 16, 18 and 24: **the FD1094 filter is a second-consumer case** under the chip rule (it is code, not a chip core: a 68000 with a fetch filter), so it should live in one place both boards pin (open decision 5). **Decrypted sets or the model**: MAME has no decrypted System 24 sets in this library (every FD1094 title's sets are encrypted, unlike System 16's 72 "bootleg of FD10xx" sets), so **5 titles need the FD1094 model to run at all** (Gain Ground, Crack Down, Super Masters Golf, Rough Racer, Quiz Syukudai; Scramble Spirits has plain sets, and Dynamic Country Club plain ROM-board sets beside its FD1094 floppy set). Plain sets (Hot Rod, Bonanza Bros., Scramble Spirits, the ROM-board games) come first. ## System 32: the V25 Six sets (Golden Axe: The Revenge of Death Adder, Arabian Fight; three each) add an NEC V25 at 10 MHz (MAME). The V25 (uPD70320) is a single-chip microcontroller with a V20/V30- compatible CPU, 256 bytes of RAM, timers, serial ports and DMA (V25DS p. 1); its oscillator runs at up to 10 MHz and its minimum instruction cycle is 400 ns at 5 MHz (V25DS p. 1 and the oscillator table), so MAME's 249,916 cycles in 3 frames of `ga2` (5.0 M a second) are the internal clock at half the oscillator (OBSERVED, consistent with the data sheet). It ran 21,280 instructions in those 3 frames. Its role (protection, per MAME's machine names) and its wiring to the V60 are U (no document in hand). Core: see [cpu-cores.md](cpu-cores.md).