# Quirks: behaviour a board must reproduce that emulators commonly miss Each entry: what, the source and tier, whether MAME models it, and how the board can test it. Labels Q1.. are cited from the other documents and from the brief. | # | Quirk | Source (tier) | MAME | Test | | --- | --- | --- | --- | --- | | Q1 | **One wait state on every 68000 bus cycle** (`/ONE WAIT` from PRG1; on QSound A-boards PRG2 exempts `F00000-FEFFFF`) | PAL fuse map decoded here (1); jtcps1 + its board loop counter (4 with a tier-1 measurement) | no (C1) | jtcps's loop-count method: a game-independent test program counting between vblanks; compare the count's ratio with jtcps's `2C00` PCB figure (the test ROM itself was not found: U22) | | Q2 | **The CPS-A steals the bus** at the start of lines: objects (one tile per line), row scroll, scroll refills, the palette copy in vblank; about 10% of a frame, 15% with a palette copy | die (1, as documents); jtcps measurements (1) | no | same loop counter, with layers switched off by video control (jtcps's table of counts per setting) | | Q3 | **256 sprite tiles per frame**, not 256 list entries: one object bus request per line, one 16x16 tile each; lines 239-244 make none | die (1); Sanglard's book (3) | no: draws every tile | a list of more than 256 tiles: tiles past the 256th are not drawn (which ones: U8) | | Q4 | **Sprites lag the tilemaps by one frame**: a double-buffered frame buffer is written during frame *n* and shown in *n+1*; the list is read one entry per line across the frame, not latched at vblank | die (1, "VERY work-in-progress" for the timing) | lag yes, by copying the list at vblank; per-line read no | a game that changes the list mid-frame: MAME's latch and the per-line read differ (U8) | | Q5 | **The palette is copied only when the palette base is written**, in the next vblank; PAL-CTRL pages with the first-enabled-page quirk; base bit 0 copies one page | die (1); MAME's Magic Sword board test (3) | copy on write yes; page quirk yes; bit 0 no (C3) | Ghouls'n Ghosts, Strider and 1941 set bit 0 at boot | | Q6 | **CPS-B-21 security**: ID read counter in bits 6-9; CHECK1/CHECK2 lock-out blanks the palette bus 64 frames after a wrong CHECK2 write | die (1) | neither (C7) | a test program; 3 Wonders runs its own check with known values | | Q7 | **Row scroll above 383 reads scroll 3's SRAM entries** | die (1) | no | a test program only; no game known to do it | | Q8 | **Out-of-range tile codes draw transparent**, per layer, by the B-board PAL | fuse maps decoded here (1) | yes, by table | the decoded mapper against MAME's ranges ([gfx-mapping.md](gfx-mapping.md)) | | Q9 | **Scroll layers are drawn from the CPS-A's internal SRAM**, refilled by bus requests on fixed lines (scroll 1 every 8 lines, scroll 2 every 16, scroll 3 every 32): a mid-frame change to tile RAM shows only from the next refill; a mid-frame scroll-register change acts at once | die (1) | no: MAME renders from RAM at the time of a partial update | raster-effect games (row scroll in SF2, Mega Twins, Carrier Air Wing, Magic Sword, Varth, Captain Commando) | | Q10 | **Video-control enable bits gate only the bus requests**: clearing scroll 1's bit freezes its SRAM, so the last two rows repeat over the screen | die (1); Tomaselli's Magic Sword tests (3) | scroll 2/3 bits as layer disables, scroll 1 not | Magic Sword's `3C` value ([cps-a.md](cps-a.md)) | | Q11 | **Sprite block tile codes add per nibble with no carry** (`0x4E` + (0,3) = `0x41`) | die (1) | yes | any multi-tile sprite crossing a nibble | | Q12 | **Writing CPS-A register `24` starts a graphics-ROM write** that holds the bus for about four frames (a development feature) | die (1) | no (logged as a bug for pzloop2, a CPS-2 game) | none on CPS-1 known | | Q13 | **Reads of the write-only CPS-A registers**: Pnickies reads `80010C-800116` at boot | MAME trace here (5) | unmapped read | the value returned is U2 | | Q14 | **Interrupt acknowledge clears both IPL lines** | MAME, from the board PAL (3) | yes | Ganbare's raster IRQ arriving with vblank | The common thread: MAME's CPS-1 runs the 68000 with no wait states and no stolen bus, renders tilemaps from RAM at partial-update time, and latches sprites at vblank. All of those are **timing**; a board that models them will run games slower than MAME (as the real board does) and will differ from MAME in frames where a game races the hardware. Those differences are expected findings, not bugs, and are recorded as such.