# Core issue 0001 (tms9918-python `df9d8ae`): no way to choose the counters' power-on phase ## What `TMS9918.__init__` and `reset()` always put the line and dot counters at line 0, dot 0 (the core's U4). A board whose CPU and VDP come out of reset at another phase has no public way to say so. The ColecoVision's phase is unknown (this board's U6); the board defaults to MAME 0.285's, so that pictures and frame-flag times line up with the detector (MAME starts at raster line 244, beam x 0 = core line 203, dot 315). ## Evidence - `docs/api.md` of the core: `reset()` sets the counters to line 0, dot 0; no keyword or method sets them elsewhere. - MAME's trace (`tests/mame_traces/coleco-nocart/error.log`, first line): `0 40 0 0 0 FFFF FFFF 0 0 0 0 0 244 0` (beamy 244, beamx 0 at clock 0). ## Minimal reproduction ```python from tms9918_python import TMS9918, TMS9928A vdp = TMS9918(TMS9928A) vdp.run(203 * 684 + 315 * 2) # the only way to reach MAME's phase assert vdp.status & 0x80 # F was set on the way, before "power-on" ``` ## Board-side stopgap (marked `STOPGAP` in `board.py`) The board runs the core to the phase before the CPU's first clock, then reads status once (public API) so F, 5S and C are back at their power-on value (the number bits are not touched, and with BLANK = 0 the run evaluated no sprites), and discards the frame that run may have produced. Side effects of that read at that point: the flip-flop (already clear) is cleared. Nothing else. ## What would fix it A constructor keyword, e.g. `power_on_position=(line, dot)`, that starts the counters there (and a matching argument to `reset()` if a board wants it), with the core's U4 default unchanged.