# Video: C116 palette, C123 tilemaps, the sprite generator ## Timing (OBSERVED, every System 1 set) Pixel clock 6.144 MHz; 384 dots x 264 lines per frame; visible 288 x 224 (dots 73-360, lines 16-239); 60.606061 Hz. The main CPU's trace shows frame and beam position per instruction (`frame`, `beamy` columns), so the board's raster interrupt timing can be compared against MAME's at milestone 2. ## What the devices are (OBSERVED: MAME's device list; facts from other sources tagged) | Device (MAME) | Role | Evidence beyond the name | | --- | --- | --- | | `namco_c116` | palette and colour output | jrok: "a programmable 24-bit palette", 256 colours per layer. The CUS117 space has a 32 KB handler at $2E0000 (HYPOTHESIS: the C116) | | `namco_c123tmap` | tilemap layers | jrok: "six graphics layers, four with hardware scrolling". ROM regions per set: `c123tmap` (character ROMs, 3-8 per set) and `c123tmap:mask` (one mask ROM per set) (OBSERVED, listxml). RAM: HYPOTHESIS $2F0000, 32 KB | | `namcos1_sprite` | sprites from the `sprite` ROM region (1-8 ROMs per set) | sprite list at $2FC800 (`spriteram` share) with a write handler (HYPOTHESIS: a list copy triggered by a write) | How the layers mix (priority), the sprite format, the shadow and "colour" tricks the games use, and the tilemap's line-scroll behaviour have **no document in hand**. Unknowns U4-U7 in the brief; their only detector is MAME's picture. ## Shared with System 2 (OBSERVED, `-listxml` over all of MAME 0.285) | Device | MAME drivers | Family boards | | --- | --- | --- | | `namco_c116` | namcos1 (40), namcos2 (60), namconb1 (20), namcofl (5) | namcos1, namcos2 | | `namco_c123tmap` | namcos1 (40), namcos2 (60), namconb1 (20), namcofl (5) | namcos1, namcos2 | So these two chips are the first **second-consumer extraction** candidates of this pair of boards (the chip rule: a non-CPU chip gets its own core when a second family board needs it). Proposal (open decision 4): build them inside namcos1-python behind pin-shaped classes, and extract them with history (`namco-c123-python`, holding C116 and C123 together, since every board that has one has the other) when namcos2-python reaches its video milestone. Whether System 2's C123 is programmed identically (System 2 drives it from a 68000, 16 bits wide) is U5 in [namcos2-python's brief](../../namcos2-python/docs/handoff-brief.md).