← All cores
Arcade-SystemC2 (Mezzow)
Cites hardware documentation that MAME's driver does not — 1
- README.md:65 No service manual, schematic or die shot for System C/C-2 has been located; MAME is the authority for everything here; every hardware fact in this core is cited
Says it was checked on “real hardware” — 1
- README.md:214 **Audio is confirmed by ear on hardware** as of 2026-09-04: uPD7759 voice samples play, and the FM and PSG sit together in the mix.
Cites MAME source — 60
- Arcade-SystemC2.sv:304 A C-2 board is NTSC only (segac2.cpp sets is_pal(false) and 262 lines), so the same reconfiguration runs once, unconditionally, and never again.
- Arcade-SystemC2.sv:386 All 64 KB of work RAM at 0xE00000 is battery backed on the board (segac2.cpp:775 shares it as "nvram"), so a cabinet that has been switched on before starts from the previous session rather than from any constant.
- Arcade-SystemC2.sv:392 c2_system's port B is the save port and already maps one for one: BRAM_A is a flat byte address over exactly 64 KB and BRAM_A[0] picks the byte lane, so file byte N is the 68000 byte at 0xE00000 + N -- the same layout MAME writes.
- Arcade-SystemC2.sv:571 The bit order is from INPUT_PORTS_START(systemc_generic) in segac2.cpp: P1/P2 0 B1, 1 B2, 2 B3, 3 unused, 4 down, 5 up, 6 right, 7 left SERVICE 0 coin1, 1 coin2, 2 test, 3 service1, 4 start1, 5 start2 MiSTer joystick bits: 0 right, 1 left
- Arcade-SystemC2.sv:594 The TEST switch is momentary (segac2.cpp:824, PORT_SERVICE_NO_TOGGLE), and a press of it *latches* the game into the service menu -- ten frames is enough.
- rtl/c2_io.sv:7 Modelled from MAME 0.276 src/mame/sega/315_5296.cpp.
- rtl/c2_io.sv:19 MAME masks the direction with 0x0F for that set (segac2.cpp:1931).
- rtl/c2_io.sv:60 The pull-ups on the board mean an input-configured output port reads as 0 at the far end, which is how MAME models it (it calls the output handler with 0).
- rtl/c2_palette.sv:9 Index (11 bits), from segac2.cpp recompute_palette_tables():
- rtl/c2_palette.sv:23 Colour word is xBGRBBBB GGGGRRRR: four bits per channel plus one extra "half" bit each in 14:12, giving five bits per channel (segac2.cpp:481).
- rtl/c2_palette.sv:25 MAME's own comment next to the highlight case is "how is it calculated on c2?", so treat any difference there as unverified rather than as a defect in this module.
- rtl/c2_palette.sv:70 palette_r / palette_w, segac2.cpp:466 and :460.
- rtl/c2_palette.sv:79 pal is the 9-bit value MAME calls bgpal/sppal with the colour index folded into the low nibble: bit 8 selects the sprite half, 7:6 the palbase, 5:4 the palette line, 3:0 the colour.
- rtl/c2_palette.sv:84 segac2.cpp:1767 switches on bits 7:6 of the VDP's raw line: 0x80 is the only code that selects sp_pal_lookup, and 315_5313.cpp:2181 only emits it for `(sprite) normal pri, no shadow sprite, no highlight`.
- rtl/c2_palette.sv:95 recompute_palette_tables(), segac2.cpp:532.
- rtl/c2_palette.sv:156 MAME pal5bit
- rtl/c2_prot.sv:23 Every one of the 18 protection functions in segac2.cpp is combinational, so each chip collapses to a 256x4 table.
- rtl/c2_prot.sv:29 control_w bit 1 low clears both FIFO stages (segac2.cpp:637).
- rtl/c2_romload.sv:21 segac2.cpp:375 takes the bank count from the declared region size, so ribbit has four banks even though only the first is dumped -- which is why c2_rom.py emits the declared size, not the used one.
- rtl/c2_romload.sv:57 0xFF is "no override" and is what every set but one wants; tfrceacjpb needs 0x0F because it writes a bad DDR value and would otherwise read the service port as though TEST were held (segac2.cpp:1931).
- rtl/c2_romload.sv:68 borencha and borenchj want 0xFF instead -- they never write the YM3438 panning registers and rely on the fill to leave them enabled, which is MAME's reason for NVRAM(DEFAULT_ALL_1) (segac2.cpp:1873).
- rtl/c2_system.sv:12 Differences from a Mega Drive that matter, all from MAME 0.276 segac2.cpp:
- rtl/c2_system.sv:101 Reads of the 315-5296, so a divergence that shows up only in what the game *reads* can be compared against MAME the way the writes already are.
- rtl/c2_system.sv:228 segac2.cpp int_callback only clears the VDP's pending H-int, and only on a level 4 acknowledge.
- rtl/c2_system.sv:238 MAME asserts it with HOLD_LINE, i.e. it stays up until acknowledged, so latch the VDP's self-clearing pulse.
- rtl/c2_system.sv:473 That is what MAME's screen bitmap contains, and comparing a 344x243 bordered frame against a 320x224 one only ever reports SIZE MISMATCH.
- rtl/c2_system.sv:475 An arcade monitor showed the border; MAME's bitmap does not, and MAME is the reference.
- rtl/c2_system.sv:564 control_w bit 0 blanks the whole screen, which Bloxeed uses while it rewrites tiles (segac2.cpp:632, and screen_update_segac2_new fills the bitmap with black when it is clear).
- rtl/c2_system.sv:587 control_w, segac2.cpp:628.
- rtl/c2_system.sv:650 D7 is the MB3773P watchdog output, D6 the uPD7759 /BUSY (segac2.cpp:559).
- rtl/c2_system.sv:718 A CPU write to 0x880000 loads the sample number and pulses /START low then high (segac2_upd7759_w, segac2.cpp:434).
- rtl/c2_system.sv:752 The bank comes from I/O port H bits 3:2, masked by how many banks the loaded sample ROM actually has (segac2.cpp:604).
- rtl/c2_system.sv:791 They transfer because this is the same jt12 + jt89 pair under the same weights: segac2.cpp routes the FM at 0.50 (:1912) and the VDP at 0.50 (:1893) with 315_5313.cpp:248 putting SEGAPSG into the VDP at 0.50 -- the megadriv values, unchange
- rtl/c2_system.sv:794 Do not read those weights as a peak ratio; each MAME device normalises its own output differently, which is why the ratio here comes from a mix that was tuned against hardware rather than from arithmetic on the route numbers.
- rtl/c2_system.sv:799 The uPD7759 goes in at MAME's weight for it, equal to the FM (:1925 0.50 against :1912 0.50).
- rtl/c2_system.sv:818 The board is mono, and only the YM3438's left output reaches the amplifier: segac2.cpp:1912 routes output 0 alone and the line below it says "right channel not connected".
- rtl/c2_system.sv:836 Reset fill is 0xFF, not 0x00: borencha has no sound otherwise, because it lacks the init code its sibling set has (segac2.cpp:1873).
- rtl/c2_system.sv:846 The whole 64 KB at 0xE00000 is battery backed on the board (segac2.cpp:775 shares it as "nvram"), so on any machine that has been switched on before it holds the previous session's contents.
- rtl/c2_system.sv:851 It used to be 0xFF for every set, copying MAME's NVRAM(DEFAULT_ALL_1).
- rtl/c2_system.sv:851 That value was chosen in MAME for borencha alone -- it never writes the YM3438 panning registers and needs the fill to leave them enabled -- and it is wrong for wwanpanm and soniccar, whose sound driver reads its pending-sample byte out of
- rtl/c2_system.sv:859 Measured both ways in MAME, see NOTES.md.
- rtl/c2_system.sv:934 A byte write to the even address of the same word puts the data on D15-D8, where the device cannot see it -- MAME's mask drops it, and so must this.
- rtl/c2_system.sv:970 Taken bit for bit from the mirror masks in segac2.cpp:766-782.
- rtl/c2_system.sv:1217 The sound driver polls the YM3438 status before nearly every write -- MAME's puyo does 5478 reads in 60 frames, getting 0x00 and 0x80.
- rtl/vdp.vhd:2874 Measured against MAME: the captured frame had a black first row, every row below it carried the content of the row above, and the bottom line was missing.
- README.md:15 assistant** (Anthropic's Claude), working from MAME's source under human direction.
- README.md:26 framework, and the MAME team whose driver is the only public documentation of this hardware.
- README.md:63 **MAME** (`src/mame/sega/segac2.cpp` by David Haywood and Aaron Giles, `src/mame/sega/315_5296.cpp` by hap with thanks to Charles MacDonald, `src/devices/video/
- README.md:65 No service manual, schematic or die shot for System C/C-2 has been located; MAME is the authority for everything here; every hardware fact in this core is cited
- README.md:82 **Protection tables.** The 317-xxxx chips are a two-stage FIFO around a purely combinational 8-in/4-out function — 25 of them in MAME's driver, one per chip — s
- README.md:166 `wwjumbo` and `wwpajero` were added to `segac2.cpp` after the MAME 0.276 this core is pinned to; their layout and switch definitions are carried as data alongsi
- README.md:224 Only the four sets above have MRAs and have been tested; the rest of `segac2.cpp` is untested.
- README.md:225 Residual differences against MAME, all in mid-display raster timing rather than in what is drawn: Puyo Puyo frames 120 and 300 (851 and 177 pixels of 71680), Se
- README.md:228 does not write the two uPD7759 samples MAME writes at frame 285.
- README.md:229 **Three sets do not work.** Two of them fail for the same reason: MAME gives the machine a small per-game bus quirk that this core has no equivalent for.
- README.md:232 | set | what MAME does that the core does not |
- README.md:249 The Megalo 50 moving-seat device that MAME wires to Puyo Puyo and Ribbit!
- README.md:269 A Verilator bench runs each game's ROMs through the whole core — including the real `sdram.sv` against an SDRAM model, not a flat memory — and compares its fram
- README.md:276 Sound is checked as a register stream, not as "it is not silent": a MAME Lua trace and the bench are compared write for write, per device, with the frame each s
- README.md:282 The 317-xxxx protection tables are generated by parsing and evaluating the boolean expressions in `segac2.cpp` rather than re-typing them, then checked against
Says it matches, follows or was checked against MAME — 4
- README.md:18 The core has been checked against MAME reference frames in simulation and runs the games listed
- README.md:106 | Columns (World) | `columns` | System C | yes | none | boots and plays; **7/7 frames pixel-identical to MAME** |
- README.md:219 What is gated in simulation is still the register stream the 68000 writes to each chip, which matches MAME write for write on all four local sets, plus a check
- README.md:267 The core is verified against MAME 0.276 rather than by looking at it.
Keeps a MAME approximation — 1
- README.md:21 undocumented the core does what MAME does, and where MAME's own comments say "guess", so does
Shares text with the MAME driver without saying so — 4