# Core issue 0003 (tms9918-python `df9d8ae`): sprite status bits change at other moments than MAME's, and nothing reproduces MAME's for lockstep ## What Lockstep replays of whole games against MAME 0.285 (port accesses with their clocks, the board run with MAME's choice on every board switch and the core's MAME keywords: `windows=False, roll_over_4k=False, mux_4k=False, flag_dot=(193, 10), offscreen_collisions=False`) end, in 10 of 12 smoke titles, at a **status read whose 5S, C or number bits differ**. Everything before it is identical (tens of thousands to half a million accesses). The core's choices are its documented provisional claims (its C5, C6, U4, U10: the vertical checks for line N run during line N - 1 at the drawing's slots; the number is written only while 5S is clear; power-on number 0); MAME evaluates each line's sprites in one go at the start of that line and copies its per-line "fifth sprite" into the low bits whenever 5S is clear. Neither is a judge (no hardware-tier source exists for when these bits change inside a line). This is not a request to change the core's defaults. It is a request for a way to run the core with MAME's status bookkeeping for detector lockstep (as `windows=False` and `flag_dot=(193, 10)` already allow), or a recorded decision that none will exist, so the board's long lockstep (M7: 6 games, 20 M instructions) has a defined end point. ## Evidence (this board, 2026-11-12; `scripts/smoke_pictures.py tests/smoke/m3.tsv --mame --io`) First differing access per title (board value, MAME value, both at the same clock): | Title | Accesses identical before it | Read | Board | MAME | Reading | | --- | ---: | --- | --- | --- | --- | | Carnival | 56,952 | status at line 0, dot ~150 | `$44` | `$1F` | 32 sprites at Y = 0 (lines 1-16): the core set 5S (fifth = #4) at line 0, dot 6, while evaluating line 1; MAME sets it at the start of line 1 | | BurgerTime | 44,248 | status | `$44` | `$1F` | same shape | | Smurf | 56,652 | status | `$47` | `$1F` | same shape | | Q-bert | 517,062 | status | `$45` | `$1F` | same shape | | Root Beer Tapper | 52,025 | status | `$04` | `$1F` | number written by the core's evaluation, MAME's still 31 | | Donkey Kong | 66,954 | status at line 18 | `$BF` | `$E8` | a read at line 15 of the frame before landed after the core's fifth-sprite check for line 16 and before MAME's | | Venture | 39,378 | status | `$8D` | `$9F` | number | | Pitfall! | 106,318 | status | `$F1` | `$E7` | number | | Frogger | 156 | first status read, frame 0 | `$80` | `$9F` | number at power-on / display enabled mid-frame (core U4) | | Popeye | 32,801 | status | `$80` | `$9F` | same | Mr. Do! ran its whole 1,701 frames (149,725 accesses) with 0 differences. ## Minimal reproduction `python scripts/replay_io.py tests/mame_traces/io-Carnival_(USA,_Europe) "/Carnival (USA, Europe).zip"` after `scripts/smoke_pictures.py --io` has made the MAME log; or by hand: 32 sprites at Y = 0 with the display on, then a status read during line 0 after dot 6: the core returns 5S set with number 4, MAME 0x1F. ## Board-side handling None: the board does not touch the core's status. The lockstep reports stop at the first such read and name it.