[
 {
  "path": "reference/src/mame",
  "url": "https://github.com/mamedev/mame",
  "rev": "f379cd060ac3b2bd567ebbd0957aed059d6895ff",
  "sparse": [
   "/COPYING",
   "/README.md",
   "/src/mame/capcom/cps1*",
   "/src/mame/capcom/cps2*",
   "/src/mame/capcom/fcrash*",
   "/src/devices/sound/qsound*",
   "/src/devices/cpu/dsp16/",
   "/src/devices/machine/eepromser*",
   "/src/devices/machine/eeprom.*",
   "/src/devices/cpu/m68000/m68000.h",
   "/src/devices/cpu/m68000/m68000.cpp",
   "/src/devices/cpu/m68000/m68000-head.cpp",
   "/src/emu/drawgfx.h",
   "/src/emu/drawgfx.cpp",
   "/src/emu/drawgfxt.ipp"
  ],
  "license": "per file: cps2.cpp and cps1_v.cpp BSD-3-Clause, cps2crypt.cpp BSD-3-Clause, qsound.cpp BSD-3-Clause, qsoundhle.cpp BSD-3-Clause, dsp16 BSD-3-Clause (read each header; read and cite only, never copy)",
  "note": "MAME tag mame0285 (the version at /usr/games/mame): the CPS-2 driver, the shared CPS-1/CPS-2 video, the cipher, both QSound devices, the DSP16 core, the serial EEPROM. Tier 5: detector. m68000gen.py and m68000.lst carry no licence header (GPL-2.0+ by MAME's COPYING) and are not fetched (Aubrey, 2026-11-24)"
 },
 {
  "path": "reference/src/cps2-reverse",
  "url": "https://gitlab.com/loic.petit/cps2-reverse.git",
  "rev": "cbd37b3820179496027cc2ccb29f65696096ce93",
  "sparse": [],
  "license": "CC-BY 4.0 (README Licence section)",
  "note": "Loic Petit (WydD): schematics of the CPS-2 A, B and E boards traced from real boards, and gate-level reverse engineering from die photographs of DL-0311 (CPS-A-01), DL-0921 (CPS-B-21), DL-1727, DL-1827, DL-1927, DL-2027. Tier 1 (die- and board-derived): the judge for wiring, registers and the key path"
 },
 {
  "path": "reference/src/arcadehacker-cps2",
  "url": "https://github.com/ArcadeHacker/ArcadeHacker_CPS2",
  "rev": "0820276c02e03cb50499b8112abb90a906114164",
  "sparse": [
   "/Capcom CPS2 Security Programming Guide.pdf"
  ],
  "license": "none stated in the repository: only the PDF guide is fetched; the Arduino sketch (unlicensed code) is not (Aubrey, 2026-11-24)",
  "note": "Eduardo Cruz: the Capcom CPS2 Security Programming Guide (the 'desuicide' sketch is not fetched). Shows the serial key-loading protocol of the DL-1827 as used on real boards. Tier 3 (works on real hardware)"
 },
 {
  "path": "reference/src/mad",
  "url": "https://github.com/jwestfall69/mad",
  "rev": "e1bf4829cbd8f2244256cd58d788283e78ce3b54",
  "sparse": [
   "/README.md",
   "/LICENSE",
   "/Makefile",
   "/common/",
   "/util/",
   "/machine/Makefile",
   "/machine/README.md",
   "/machine/cps1/",
   "/machine/cps2/"
  ],
  "license": "Unlicense (public domain), LICENSE checked 2026-11-12",
  "note": "jwestfall69's Multiple Arcade Diagnostic: source of diagnostic ROMs for arcade boards, with a CPS-2 encrypt utility (machine/cps2/main/util/mad-cps2-encrypt.cpp, a modified copy of MAME cps2crypt.cpp). Source only; nothing is built here"
 },
 {
  "path": "reference/src/cps2-utils",
  "url": "https://github.com/MBDesu/cps2-utils",
  "rev": "9d4c8df70004c4237884696db79b285b4f35bb41",
  "sparse": [],
  "license": "MIT (LICENSE, 2023 MBDesu)",
  "note": "MBDesu: a second implementation of the CPS-2 cipher (decrypt and encrypt) outside MAME's tree. Tier 5 for the cipher (derived from MAME's)"
 }
]
