# Core issue 0002 (tms9918-python `df9d8ae`): with `roll_over_4k=True` the OS-7 BIOS clears only 4K of VRAM ## What The ColecoVision BIOS clears VRAM before it sets R1 bit 7 (16K mode): it writes 16,384 zero bytes to `$BE` from address `$0000` while R1 is still 0 (4K mode), and sets R1 to `$C0` at clock 772,205 (both counted on this board; the same in MAME's trace). With the core's C11 default `roll_over_4k=True` the address counter wraps inside 4K, so the 16K of writes land on 4,096 cells four times and **12K of cells are never cleared**. With the core's power-on VRAM of zeros (its U4) nothing shows. With any other power-on contents the BIOS's no-cartridge screen shows the leftovers. `mux_4k` alone (MacDonald's row/column mapping, `roll_over_4k=False`) is harmless here: the 16K of writes reach all 16K cells and the screen is clean. ## Evidence (measured on this board, 2026-11-12) Power-on VRAM seeded with 16,384 bytes from `random.Random(1)`, 120 frames of the BIOS with no cartridge, frame compared by colour index with the same run under MAME's settings (`roll_over_4k=False, mux_4k=False`): | `roll_over_4k` | `mux_4k` | seeded non-zero cells left | pixels differing from MAME's model | | --- | --- | ---: | ---: | | True (core default) | True (core default) | 11,732 | 11,253 | | True | False | 12,103 | 21,213 | | False | True | 5 | 0 | | False | False | 5 | 0 | With power-on VRAM zero (the core's default) all four settings give 0 differing pixels against MAME's snapshot and Gearcoleco's frame. ## What this does and does not show It is not a measurement of the chip. It is a consequence: if the counter rolls over at 4K in 4K mode (C11, MacDonald on a TMS9929A plus Guttag's 1982 message), then a ColecoVision whose DRAM does not power up all-zero would show garbage on its title screen until the BIOS's later writes cover it. Coleco wrote a 16K clear before switching to 16K mode, which suggests its programmers expected 16K of reach in 4K mode. Whether real consoles show garbage on a cold boot is not in any source this board holds (no capture, no documented report found); DRAM power-on contents are not documented either. A cold-boot photograph or capture of a real console's title screen, or a test that writes past 4K in 4K mode and reads back, would settle it. ## Minimal reproduction ```python import random from colecovision_python import Board, BoardOptions from colecovision_python.images import load_bios seed = bytes(random.Random(1).randrange(256) for _ in range(16384)) board = Board(load_bios(), options=BoardOptions(vdp={"power_on_vram": seed})) while board.vdp.frame_count < 120: board.step() print(sum(1 for i, x in enumerate(board.vdp.vram) if x == seed[i] and x)) # 11732 ``` ## Board-side handling None: the board keeps the core's defaults and its power-on VRAM of zeros, so nothing is visible today. The core's C11 record should name this consequence; the decision on the default is the core's (and Aubrey's).