# Video: tiles, sprites, palette **The thinnest subject of this Phase 0.** No tier 1-3 document is in hand ([boards.md](boards.md), [sources.md](sources.md)); the facts below are MAME's machine descriptions and screens (tier 5) and arithmetic on them. The video is Sega's own discrete design, not a TMS9918 (unlike the SG-1000, sms-python), so nothing carries over from the family's console boards. ## What MAME's lists show (OBSERVED) | Item | MAME | Reading | | --- | --- | --- | | screen | 512 x 224 visible of 640 x 260, pixel clock 10 MHz, 60.096 Hz | MAME draws at 512 wide; whether the hardware's tile and sprite resolution is 256 with doubled pixels or a true 512 is U10 (the snapshots' text is 2 pixels per dot horizontally, HYPOTHESIS: a 256-wide tile layer) | | tile ROMs | 48 KB (3 x 16 KB) on System 1, 96 KB (3 x 32 KB) on System 2 | three ROMs in parallel suggests 3 bitplanes, 8 colours a tile (HYPOTHESIS) | | sprite ROMs | 32-224 KB | | | `lookup_proms` | 256 bytes on all 92 sets | a priority or colour lookup PROM (HYPOTHESIS; MAME's region name) | | `color_proms` | 768 bytes on 29 sets (all System 2, Brain, Heavy Metal, Gardia's sets) | three 256 x 4-bit PROMs for R, G, B (HYPOTHESIS from the size); the other sets write a palette in RAM (0xD800-0xDFFF is written on `wboyu`, [boards.md](boards.md)) | | rotation | 70 unrotated, 18 at 270 degrees, 4 at 90 | | ## What the board will need to learn U10-U14 in the handoff brief: the tile layer count and scroll registers (Wonder Boy and Pitfall II scroll; System 2 adds layers and banking per MAME's larger tile ROM), the sprite format, size and per-line limit, the sprite and tile collision detection that Sega's 1980s boards are known for (registers near 0xF000 in other Sega Z80 boards, HYPOTHESIS; nothing was written there in 60 frames of `wboyu`), the priority rules the lookup PROM encodes, the palette format and the DAC levels. ## How to learn it without a document - MAME's pictures (`--snap`) are a detector: a frame-exact comparison finds differences but does not judge them. - The MiSTer System 1 core (MiSTer-X, GPL-3.0) is a tier-4 HDL reimplementation that runs 18 titles; built and run in emu-tools-gpl it is a second detector, its source never opened here (the closed-box rule). - MAME's `system1_v.cpp` is BSD-3-Clause by its `license:` line; reading it for facts would answer most of U10-U14 at once (open decision 2). - A board document: MacDonald's notes if he wrote any (set aside: their host's robots.txt), or a schematic. Aubrey may bring such a document himself (sources.md's rule for set-aside sites).