# Census: who uses the MSM6295, and what sample ROMs are on this disk
Two scripts, both run (2026-11-11; the CPS-1 table re-read 2026-11-12):
python3 -I scripts/mame_census.py # mame -listxml -> reference/census/machines.json
python3 -I scripts/mame_census.py --summary
python3 -I scripts/rom_census.py --family capcom/cps1.cpp # -> reference/census/roms.json
`mame_census.py` streams MAME 0.285's `-listxml` (one process, about a minute);
`rom_census.py` reads each machine's zip in place from the non-merged MAME tree,
checks every sample ROM against MAME's SHA-1, assembles each sample region and
reads its phrase table (no decoding). Its printed totals are kept in
`reference/rom-census.log` (ignored).
## Users in MAME 0.285
- **2,743 machines instantiate an MSM6295** (1,064 parents), in **316 driver
source files**, out of 49,616 machines in the listing.
- Chips per machine: one 2,309, two 414, three 19, four 1.
- By maker folder: misc 483, capcom 277, igs 222, dataeast 202, kaneko 127,
seibu 119, nmk 112, atari 88, jaleco 83, gaelco 77, midway 75, astrocorp 71,
dynax 70, toaplan 70, atlus 57, pinball 56, metro 45, technos 43, itech 36,
yunsung 35, playmark 33, taito 31, subsino 30, skeleton 27, tecmo 27, konami
18, sega 17, and 32 more folders below 16.
- By driver file: misc/sfbonus 249, **capcom/cps1 214**, nmk/nmk16 99,
astrocorp/astrcorp 71, dynax/ddenlovr 67, igs/igs_m027 57, atlus/cave 54,
jaleco/megasys1 52, metro/metro 42, pinball/gts3a 41, seibu/raiden2 41,
igs/igs017 40, itech/itech8 36, dataeast/dec0 36, kaneko/kaneko16 36,
kaneko/expro02 34, igs/spoker 33, midway/tmaster 31, kaneko/snowbros 30,
capcom/mitchell 30.
- **64 distinct clocks.** Most common: 1,000,000 Hz (1,560 chips), 4,000,000
(256), 2,000,000 (255), 1,056,000 (188, the data sheet's), 1,022,727 (139),
1,006,875 (106), 1,193,181 (96), 2,013,750 (89), 2,112,000 (67), 1,500,000
(59). Range 528,000 to 5,000,000 Hz; two chips are listed at 0 (clock set at
run time by their drivers).
- **Pin 7**: not in the listing (a constructor argument). A token count over
the driver sources of a local MAME 0.289-based tree (not 0.285): 475 `PIN7_HIGH`,
128 `PIN7_LOW`, 311 files naming `OKIM6295`. (Made under the old rule over files of
mixed licence, BSD-3 and GPL-2.0+; a count, no code read. Redo over BSD-3 files only,
or from a run of MAME, before relying on it.)
- **Run-time pin 7 changes**: CPS-1 (`cps1.cpp` 297), Atari JSA (`atarijsa.cpp`
509, 517, which also resets the chip), Gottlieb System 3 sound
(`gottlieb_a.cpp` 1162). Run-time clock changes: none in drivers.
- **Banking**: 85 driver files call the device's `set_rom_bank`, 35 give it an
address map ([rom.md](rom.md)).
The other OKI voice devices, machines each: MSM6376 5,808 (almost all fruit
machines), MSM5205 533, MSM9810 58, MSM6650 36, MSM6585 19, MSM6258 5, MSM6588 2.
(MSM5232, 38, is a tone generator, not ADPCM.)
## Users in the family
| Repository | State (2026-11-12) | What it needs |
| --- | --- | --- |
| `cps1-python` | Phase 0, resumed in parallel | one chip at 1 MHz, pin 7 from Z80 `$F006` bit 0 (power-on value high), status at `$F002`; no banking (256 KB regions) |
| `cps2-python`, `cps3-python` | Phase 0 | none: QSound and CPS-3's own sound replace it |
| `neogeo-python` | Phase 0 | none (YM2610) |
| later arcade boards | | the 2,743 machines above: NMK16, Cave, Kaneko, Data East, Seibu, Toaplan, Metro, Gaelco, Atari JSA, ... |
## The local ROM library
The chip has **no ROM of its own and no BIOS**; its data is each game's sample
ROMs.
| Tree | Zips | MSM6295 machines present |
| --- | --- | --- |
| the local non-merged MAME set | 43,720 | **2,734** of 2,743 |
| the local merged MAME set | 15,995 | 1,054 |
| a local FinalBurn Neo arcade set | 8,187 | 1,427 |
| a frontend's MAME folder | 5,987 | 888 |
| a frontend's FBNeo folder | 3,211 | 505 |
(Romsets are found through `MAME_ROMPATH`; counts from the 2026-11-12 census.)
The local sets verify against MAME 0.285 (`mame -verifyroms ffight sf2 forgottn`:
all good).
Read from the non-merged tree: 2,681 machines; 62 keep their samples in a
region not named after the chip and were not read; one region had a file
missing or failing its SHA-1. **1,249 distinct sample region images** (by SHA-1
of the assembled region). Sizes from 64 KB to 24 MB; **648 are larger than the
chip's 256 KB and are banked by their boards**, 601 are not.
What the phrase tables say, in the 601 unbanked regions (entries 1-127; an
entry of all-0 or all-FF bytes counts as blank):
| | Entries | Regions with any |
| --- | --- | --- |
| used | 37,613 | 601 |
| start < end | 31,201 | 601 |
| **start = end** | **2,670** | 99 |
| **start > end** | **3,742** | 115 |
| end beyond the region | 1,608 | 59 |
| bits set above A17 | 8,068 | 118 |
| spare bytes (6, 7) not zero | 9,946 | 134 |
| start inside the table (< 0x400) | 374 | 95 |
| **entry 0 not blank** | | 87 |
Many of these regions are not phrase tables at their start (boards that bank the
table, or use the chip in unusual ways), so the odd entries are an upper bound
on what real programs ask for. The decoder rung uses only entries with start <
end that lie inside their region.
### CPS-1, the first consumer
40 distinct regions, **2,810 entries with start < end**, 9.5 MB summed over
those entries (entries overlap). Every table was read in full on 2026-11-12:
**47 entries with end = start - 1** (kod 17, kodr1 15, pang3 7, megaman 5,
mpumpkin 3), **1 other with start > end** (willow 36, `03B100`-`03ADFF`), **2
with start = end** (nemo 86 `030000`, dynwarj 127 `03FFFF`). The first draft of
this census counted willow's among the end = start - 1 entries; it is not one.
Valid phrases below count entries with start < end.
| Region (first set) | Sets | Size | Valid phrases | Files and SHA-1 |
| --- | --- | --- | --- | --- |
| 1941 | 4 | 0x40000 | 73 | `41_18.11c` 88089383f2d54fc97026a67f067d448eee5bd0c2
`41_19.12c` 8153c03aba005bab62bf0e8b3d15ec1c346326fd |
| 3wonders | 5 | 0x40000 | 125 | `rt_18.11c` 0ea03fdd9edff41eacfc52aa9e0421c10968356b
`rt_19.12c` 09f2ad522fe75d7bcca094b8c6696c3733b539d5 |
| 3wondersbi | 1 | 0x80000 | 0 | `2.u24` b78c77ab29fb667e796b07dc5f3a53b47250e713 |
| 3wondersr1 | 1 | 0x40000 | 125 | `rt_18.11c` 9959fc3339613042c95b90aad2bc1c3dafdb605e
`rt_19.12c` 09f2ad522fe75d7bcca094b8c6696c3733b539d5 |
| area88 | 3 | 0x20000 | 19 | `ar_30.12e` 7820815c8c67d484baf2fdad7e55d8c14b98b860 |
| captcomm | 6 | 0x40000 | 127 | `cc_18.11c` 9a1eaba8d104f59a5e61f89679bb5de0c0c64364
`cc_19.12c` b19197c7ad3aeaf5f41c26bf853b0c9b502ecfca |
| cawing | 6 | 0x40000 | 58 | `ca_18.11c` 06e10644fc60925b85d2ca0888c9fa057bfe996a
`ca_19.12c` 5cfb15f1b9729323707972646313aee8ab3ac4eb |
| chikij | 3 | 0x40000 | 95 | `ch_30.12c` 2dd5bd4076e7d5ded98b72919f868ea700df2e4f
`ch_31.13c` 294b93d0aea60663ffe96364671552e944a1264b |
| cps1mult | 1 | 0x400000 | 66 | `mx29f1610mcpsop44.u18` f5d78d7f4a807d5124cc8d48e57d283c3ddf972b
`mx29f1610mcpsop44.u19a` 9384780fad82310122ac930bafe2e2c48b562676 |
| cworld2j | 3 | 0x40000 | 98 | `q5_30.12c` 2423241f3340d8ab1b6bf9514ca8c3bba1273873
`q5_31.13c` a274b94ec4f042dddc239ecb9ac2e1e2375f5eb2 |
| dinohunt | 1 | 0x40000 | 98 | `u18` 0b3ac6cf2ce0323e3bfc9da3ebfcb0fd14bc405b
`u19` 3eeb9e33bb911359e03d44949ac58439a3d3d54b |
| dynwar | 3 | 0x40000 | 28 | `tke_18.11c` b490ce625bb7ce0904b0fd121fbfbd5252790f7a
`tke_19.12c` ab48aff639a7ac218b7d5304145e10e92d61fd9f |
| dynwarj | 2 | 0x40000 | 32 | `30.12e` c7b6b7d6dfe5f9f0e1521e7ce990229f480cf68d
`31.13e` 426eb90f2edf73eb468c94b4a094da3d46acbab2 |
| ffight | 14 | 0x40000 | 70 | `ff_18.11c` 36189e23209ce4ae5d9cbabd1574540d0591e7b3
`ff_19.12c` 974b5e72aa28b87ebfa7438efbdfeda769dedf5e |
| forgottn | 8 | 0x40000 | 31 | `lw-03u.12e` 720e4733787b9b11f4d1cdce0892b69475802844
`lw-04u.13e` 667f6e5736f76a1c4c450c4e2035574ea89d7910 |
| ganbare | 1 | 0x40000 | 42 | `mrnj_18.11c` 5c7dd7ff6a66f100b59cf9244e78f2c8702faca1
`mrnj_19.12c` f05246cf566c214b008a91816c71e7c03b7cc218 |
| gulunpa | 1 | 0x40000 | 61 | `18` 8e107d6413836c48fc57e4a9b89ae99a9e381e8b
`19` dc684abfa1ea276a00ec541ab8f3f9f131375faa |
| knights | 5 | 0x40000 | 78 | `kr_18.11c` 9616207e693bae85705f786cef60b9f6951b5067
`kr_19.12c` 01b3d92e4dedf55ea3933d387c7ddb9ba2549773 |
| kod | 6 | 0x40000 | 92 | `kd_18.11c` 270f27534a95cb0be3ff3f9ca71c502320d8090b
`kd_19.12c` 5fa7c2793e6febee54a83042d118ddd4f2b7d127 |
| kodr1 | 1 | 0x40000 | 91 | `kd_18.11c` fadf266b6b20bd6329a3e638918c5a3106413476
`kd_19.12c` c959a6fc3e7d893557f319debae91f28471f4be2 |
| lostwrld | 2 | 0x40000 | 31 | `lw-03.14c` 77d564f8b768c1cbd6e5b334f7ee86c4c3f9d62e
`lw-04.13c` ad24d7b6df2dc5e84a35aecb9ba9b0aaa27ab6e5 |
| megaman | 3 | 0x40000 | 122 | `rcm_18.11c` 4a5b7b2a6941ad68da7472c63362c7bcd353fa54
`rcm_19.12c` 967def6b6f93039dbc46373caabeb3301577be75 |
| mercs | 4 | 0x40000 | 67 | `so2_18.11c` d43d68a120550067bf0b181f88687ad230cd7908
`so2_19.12c` 93102272e358bc49d3936302efdc5bb68df84d68 |
| mpumpkin | 1 | 0x40000 | 67 | `mpa_18.11c` 3180a3f397b5c4fbbc2b8f84cf461764ddd10d4e
`mpa_19.12c` e26270962cc4b0f9a6a5c306fa09d2cdd524cfa9 |
| msword | 4 | 0x40000 | 66 | `ms_18.11c` d1a596ce2f8ac14a80b34335b173369a14b45f55
`ms_19.12c` bf48db5c438154e7b96fd31fde1be4aad5cf25eb |
| nemo | 4 | 0x40000 | 90 | `nme_18.11c` c1d0fb61ec46f17eb7edf69e1ad5ac91b5d51daa
`nme_19.12c` e9e8cc1b27a2cb3e87124061fabcf42982f0611f |
| pang3 | 8 | 0x40000 | 76 | `pa3_05.10d` 999465e4fbc35a34746d2db61ad49f61403d5af7
`pa3_06.11d` 27b9292bbc121cf585f53297a79fe8f0d0a729ae |
| pmonster | 1 | 0x40000 | 74 | `gbpj_18.11c` bc31397d6b0ae7357c1df9e537bbe5acbea430b2
`gbpj_19.12c` ac0b2a32f5ac1c624bf7a80636a6b0e3944b9acc |
| pnickj | 1 | 0x40000 | 52 | `pnij_24.12c` 95dc9d10940653b2fb37baf5c1ed27145b02104e
`pnij_25.13c` cf21e75674d81b2daae2083d02f9f4b6e52722c6 |
| pokonyan | 1 | 0x40000 | 56 | `xmqq-12c.bin` 401fe0294c6b7bc79426ab1922e02a97415cd2ef
`xmqq-13c.bin` 8f19a925bbd47ef965c41af233359a1552c7f8b0 |
| punisherbz | 1 | 0x40000 | 70 | `18.010` 36189e23209ce4ae5d9cbabd1574540d0591e7b3
`19.010` 3592c69f77c7cd6ee241d6c1079c34a3e58abb5b |
| qad | 1 | 0x40000 | 69 | `qdu_30.12c` d5cd4c69b5d135a2f2fea8ca9631251c9da79e70
`qdu_31.13c` 3896e0fcf375e9e5d9ba70cc1ed001cd702f9ff7 |
| qadjr | 1 | 0x40000 | 81 | `qad_18.11c` b2a98ac034c65b7ac8167431f05f35d4799032ea
`qad_19.12c` 785d49de484e9ac6971eaceebebfecb8e58563f6 |
| qtono2j | 1 | 0x40000 | 56 | `tn2j_18.11c` 07cb1076262a281e31a621cbcc10be0cae883175
`tn2j_19.12c` cf28891f84814cbfaa3adaade8bb08b1e0546a3d |
| sf2 | 87 | 0x40000 | 95 | `sf2_18.11c` 346bf42992b4c36c593e21901e22c87ae4a7d86d
`sf2_19.12c` 277c397dc12752719ec6b47d2224750bd1c07f79 |
| sfach | 3 | 0x40000 | 121 | `sfz18` 6369d0c1d08a30ee19b94e52ab1463a7784b9de5
`sfz19` 7e1b7d40ef77b5df628dd663d45a9a13c742cf58 |
| strider | 5 | 0x40000 | 28 | `18.11c` fb2b261995aeacfa13e7ee40b1a973dfb178f015
`19.12c` a14f5de2f6b5b29ae5161dca1f8c08c566301a91 |
| varth | 8 | 0x40000 | 89 | `va_18.11c` 8e878696192606b76a3a0e53553e638d9621cff7
`va_19.12c` 3da02ea6a7a56c85de898806d2a1cf6bc526c1b3 |
| willow | 4 | 0x40000 | 40 | `wl_18.11c` d1fee2f99c858dfb07edcd600da491c7b656afe0
`wl_19.12c` 316a77b663d78c8b9ff6d85756cb05aaaeef4003 |
| wofabl | 2 | 0x40000 | 51 | `sound.020` e76c1ce81689a55b573fb6e5c9a860cb756cd876 |
Two regions are larger than 256 KB (3wondersbi, a bootleg, and cps1mult, a
multi-game board); the rest fit the chip's space without banking.
## Test ROMs from the hardware recordings
In `reference/artemio/` (fetched by `scripts/fetch_references.py`): Artemio
Urbina's CPS-1 Z80 loop `sf2_9.12a` (SHA-1 `61c1da20b4014dba4fdeed572aa5920b6dc15c46`)
with its sample ROM `sf2_18.11c` (`ada0cbff5c99ce3d98f4c3b30df5a99071ab47a9`,
four tones of 20, 200, 1,000 and 2,000 Hz), jotego's sine ROM `patches.bin`
(`9566fe2c608af45425cfe453712c98eac9a9a3e7`, made with jt6295's `src/cmd/sine.go`),
and, opt-in, the MDFourier SF2 set whose sound ROMs are `sf2_18.11c`
`a0fe977670a72b772bacc85973f1fd385bfed5ca`, `sf2_19.12c`
`6719b48b60d6dd3b89c1ec9ba0c1579c74121944`, `sf2_9.12a`
`9a8fabacb5a43ce22de5018d7d302332535dcc2e`.