# Video: CRTC, video controller, sprites, graphics and text planes **No manufacturer document exists for these chips in any form the family can use.** They are Sharp customs (VINAS = CRTC; VSOP on the first model and VICON on later ones = the video controller; CYNTHIA Jr. / CYNTHIA = sprites and BG; later boards add VIPS and CATHY, per community summaries). Sharp's own technical documents (the "#1000" technical documentation and the CZ-674C service manual, both named in XEiJ's reference list) and *Inside X68000* are the known primary sources; none is in hand (U1). Everything here is therefore HYPOTHESIS (community knowledge) unless marked OBSERVED, and the board's video milestones will be judged by detectors and by programs running at all, as the Saturn's VDPs are (validation.md). ## The planes (HYPOTHESIS) | Plane | Memory | Size and colours | Scroll | | --- | --- | --- | --- | | Text | E00000-E7FFFF: four 128 KB bit planes | 1024 x 1024, 16 colours (the first 16 entries of the text/sprite palette) | CRTC R10, R11 | | Graphics | C00000-DFFFFF, one 16-bit word per pixel position | 1024 x 1024 at 16 colours (one page), or 512 x 512 at 16 colours (four pages), 256 colours (two pages) or 65,536 colours (one page) | CRTC R12-R19, one X/Y pair per page | | Sprites | EB0000-EB03FF: 128 entries of X, Y, pattern/colour/flip, priority | 16 x 16, 16 colours per palette block; a per-line limit (commonly given as 32) | per sprite | | BG 0, BG 1 | name tables in EB8000-EBFFFF, patterns in the PCG | 8 x 8 or 16 x 16 cells, 64 x 64 cells | EB0800-EB0806 | Palettes: 256 graphics entries at E82000 and 256 text/sprite entries at E82200, 16 bits each (5 bits green, red, blue and an intensity bit, GGGGGRRRRRBBBBBI). The 65,536-colour mode reads graphics VRAM as direct colour through the palette RAM pairs. The video controller (E82400 R0, E82500 R1, E82600 R2) sets the graphics colour mode (mirroring CRTC R20), the priority order of sprites, text and graphics pages, which planes are on, and the special modes (half-tone translucency, the "special priority" pixels, graphic-on-text masking). CYNTHIA's registers at EB0808-EB0810 turn sprites and BG on and set their own horizontal and vertical timing, which must agree with the CRTC's or the sprite layer drifts (the IPL writes EB080A, EB080C, EB080E, EB0810 = FF and EB0808 = 10: OBSERVED values, meaning HYPOTHESIS). ## The CRTC (VINAS) Registers R00-R24 at E80000-E80030 (16-bit). R00-R08 are the 6845-style timing registers in units of 8 dots horizontally and lines vertically; R09 is the raster interrupt line (the MFP's CIRQ input); R10-R19 the scrolls; R20 the memory and display mode (colour depth, real-screen size, horizontal and vertical resolution, 15/24/31 kHz); R21-R23 text-plane access (simultaneous plane writes, bit masks, raster copy). The operation port E80480 starts a raster copy, a graphics fast clear or an image capture. **What the IPL writes (OBSERVED, `x68000` with the CZ-600CE IPL, first 60 frames):** | Register | Value | Reading (arithmetic on HYPOTHESIS meanings) | | --- | --- | --- | | R00 horizontal total | 0x0089 | 138 x 8 = 1,104 dots a line | | R01 horizontal sync end | 0x000E | 15 x 8 dots | | R02 horizontal display start | 0x001C | | | R03 horizontal display end | 0x007C | (0x7C - 0x1C) x 8 = 768 dots | | R04 vertical total | 0x0237 | 568 lines | | R05 vertical sync end | 0x0005 | | | R06 vertical display start | 0x0028 | | | R07 vertical display end | 0x0228 | 0x228 - 0x28 = 512 lines | | R08 external adjust | 0x001B | | | R09-R19 | 0 | no raster interrupt, no scroll | | R20 | 0x0316 (then the low byte 0x0B) | 768 x 512, 31 kHz | | R21 | 0x0133, then 0x0033 | | With MAME's 34.77 MHz screen clock that is 31.49 kHz a line and **55.45 Hz** a frame (arithmetic). MAME logs "visarea larger then reg[20]: 992x552" nine times in the 8-second run: a detector message about its own model, not a finding. The IPL's "cannot boot from disk" screen (MAME snapshot, frame 440: a centred grey box with a Japanese message and a disk icon, drive-status lamps drawn by MAME's own layout) is the board's first picture milestone. ## What the board must decide (unknowns, in the handoff brief) - U1: every register meaning above, from a usable reference. - U9: the per-line sprite limit and what happens past it; sprite/BG fetch timing against the CRTC; whether CYNTHIA's own timing registers can desynchronise from the CRTC's. - U10: the raster copy and fast clear: their duration and what the CPU sees during them. - U11: the half-tone and special-priority arithmetic. - U12: the exact dot clocks per mode and the 24 kHz modes. ## Modelling level Cycle level for the CRTC's timing (line counts, blanking, the raster interrupt, V-DISP and H-SYNC edges to the MFP), because programs time to them; line level for the composition of planes, sprites and BG (one line drawn at the end of its active period) until a test shows mid-line changes matter. That is a proposal, marked provisional.