# Video: two generations of Data East customs No Data East data sheet for any of these chips is known to exist outside the company. What we have: chip names and counts per set from MAME's device list (OBSERVED: MAME's model, not read), the pins and their wiring on jotego's Sly Spy trace (JTSLY, tier 3), jotego's notes from building an FPGA dec0 (JTCOP: tier 3 where he cites the schematics, 4 for his core), and the graphics ROM sizes in MAME's sets. Everything about the chips' insides is therefore HYPOTHESIS until the board renders a game and its pictures are compared with the detectors (MAME tier 5, JTCOP's FPGA tier 4 if built in emu-tools-gpl). ## Generation 1 (dec0 and the bac06 rows): BAC06 tilemaps, MXC06 sprites ### BAC06 ("DECO BAC06 Tilemap" in MAME) - **Count.** Three on every dec0 board (`tilegen1..3`), two on `stadhero` and `actfancr`. JTCOP's table: BAC06 at 3A (main board) on region B0, 16 KB of RAM, MAME's `gfx1` (the 8x8 text layer in MAME's sets, `char`); at 7A on B1, 4 KB, `gfx2` (`tiles1`); at 6E (second board) on B2, 4 KB, `gfx3` (`tiles2`). JTCOP says "MSFT Yes" for B0 and B1 and "No" for B2 (column meaning not given in the README: U13). - **Scroll RAM.** JTCOP: column scroll 0x80 bytes = 0x40 values; row scroll 0x400 bytes = 0x200 values (per chip, where fitted). - **Pins** (JTSLY net names on the BA0/BA1/BA2 sheets; functions HYPOTHESIS from the names): a 16-bit map RAM bus per chip (`BxMAPAD0-15`, `BxMAPDB0-15`, the chip's own tile RAM), a 16-bit graphics ROM address out (`BAxCGAD0-15`) with `CGADLD` (address load), `CGSEL0/1` (ROM bank or plane select), the CPU-side strobes `NRAMRD`, `NRAMWRH`, `NRAMWRL`, `BUDS`/`BLDS`, mode pins `NMODE`, `NSIFT` (shift) and `NMAPSEL`, a vertical count `VCNT`, and an 8-bit colour output (`GFXn_COL0-7`) with `GFXn_BLANK` toward the colour mixer. Clock 12 MHz. - **Graphics ROM sizes** (OBSERVED, MAME's sets): Robocop `char` 128 KB, `tiles1` 256 KB, `tiles2` 128 KB; Midnight Resistance 128 KB, 512 KB, 256 KB. - **What the board will need to learn**: tile sizes (8x8 and 16x16 per chip and mode), playfield shapes, the scroll modes, the register bits. The only route in hand is to observe register writes (MAME traces with watchpoints on 240000-24DFFF) and match pictures, with every rule tagged OBSERVED or FITTED. U13. ### MXC06 ("DECO MXC06 Sprite") - One per dec0 board, also on Vapor Trail (the first DECO 55 board keeps the old sprite chip). - JTSLY: 32-bit graphics ROM data in (`CGAD0-31`), an 11-bit address and 16-bit data bus to object RAM (`MATAB0-10`, `MATDB0-15`), a 12 MHz clock and `HAFCK`, `DSPLD`, `EDLD`, `EDIN`, `NVLOAD`, `VINV` (vertical invert: flip screen, HYPOTHESIS), and an object colour output (`OBJ_COL`). - JTCOP: "the line buffer is not in the schematics ... there is no frame buffer memory either. The MXC-06 chip must have had internal memory for line buffers." The sprite RAM is double-buffered: 2 KB of object RAM and a 2 KB "obj table buffer" (MAME: "Buffered 16-bit Sprite RAM"), copied by the `368917K9` custom over a `DMADB` bus (JTSLY; HYPOTHESIS). - Sprite ROM: 384 KB on Robocop and Bad Dudes (four 64 KB + four 32 KB), 512 KB on Midnight Resistance. ### Colour and priority - JTSLY's colour-mixing sheet: the three BAC06 colour codes and the object colour meet at a **MB7114H** bipolar PROM (256 x 4 by Fujitsu's part numbering; no data sheet pinned) and two TMM2018 palette RAMs (2K x 8) whose outputs go to resistor ladders; a 6 MHz ("6.01MHz") clock latches the colour DAC. HYPOTHESIS: the PROM decides priority among the layers. MAME's Robocop and Bad Dudes sets carry two PROMs (`mb7116e.12c`, 512 bytes; `mb7122e.17e`, 1 KB), Midnight Resistance one (`tb-7.22f`, 256 bytes): read in place from the player's set, they are the priority and timing logic as shipped (tier 1 data, U14 says what each does). - Palette format: written by the 68000 as two 2 KB blocks (OBSERVED at 310000 and 314000). Bit layout U15. ### Karnov (generation 0) MAME has no tilemap device for Karnov: its tilemaps live in the driver, with a "DECO Karnov Sprites" device and a "DECO RM-C3 PALETTE" (`deco_rmc3`). The Karnov manual (MKA) has parts lists but no schematic. Karnov is a later row (milestone M8). ## Generation 2 (deco16): DECO 55 tilemaps, DECO 52 sprites | Chip (MAME's name) | Sets | What MAME's device grouping says | | --- | --- | --- | | "DECO 55 / 56 / 74 / 141 Tilemap Generator" (`deco16ic`) | 1 or 2 per board on 91 of 94 deco16 machines (none on Lemmings) | MAME treats four part numbers as one device; the others (56, 74, 141) are widely described as the same tilemap generator with graphics-ROM scrambling (MAME's `decocrpt.cpp`, "deco56/74" decryption by its file's topic: HYPOTHESIS until a set's ROMs are compared) | | "DECO 52 Sprite" (`decospr`) | 1 on most, 2 on Boogie Wings, Lemmings, Thunder Zone | the sprite generator; also on the out-of-scope ARM boards and, as a clone, on the Korean `tumbleb` boards | | "Data East 99 'ACE' Chip" (`deco_ace`) | Boogie Wings (5 sets) | colour and alpha blending (name only: U16) | | "DECO Common Video Functions" (`decocomn`) | the `rohga.cpp` sets | MAME's shared helper, not a chip: no board part implied | | "DECO MXC06 Sprite" | Vapor Trail | generation 1's sprite chip on a DECO 55 board | OBSERVED on Caveman Ninja: each DECO 55's window is 64 KB (140000-14FFFF and 150000-15FFFF), written as a register block plus four 2-4 KB blocks (two playfields' tile RAM and two scroll RAMs). HYPOTHESIS: two playfields per chip, four layers with two chips. The deco16 boards' graphics ROMs are mask ROMs of 512 KB (`mag-00` ... `mag-06` on Caveman Ninja: 2 MB of sprites, 1.5 MB of tiles). ## What stays in the board (chip rule) BAC06, MXC06, DECO 55/52/99 are used by this family and the out-of-scope ARM boards only. They stay in `deco16_python` as modules with pin-shaped interfaces (a register window, a RAM port, a ROM port, a colour output per dot or per line). If an ARM sibling (`deco32-python`) is built, the DECO 55 and 52 become the first candidates for extraction (decision 2).