Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

LCDC Structure

LCDC's 8 bits are stored as drlatch_ee cells sharing the CUPA write strobe (writes). Each bit has a distinct consumer path in a distinct mode; this page is the index. LCDC storage lives here — consumer-path detail lives with the mode that consumes the bit.

At a glance

  • Every LCDC consumer path is combinational from the latch — there is no clocked stage between an LCDC cell and its consumer.
  • The static race analysis classifies every LCDC cell as per-frame domain (diff = 59.6 ge from the CPU data bus through the enable chain): stable absent CPU writes, no per-dot races.
LCDC bitGate / wire nameConsumerChapter
0 (BG_AND_WIN_EN)VYXE / LCDC_BGENpBG/window pixel plane gate (RAJY/TADE); mid-Mode-3 toggle behaviourLCD output
1 (OBJ_EN)XYLO / LCDC_SPENpSprite trigger (AROR → per-sprite NAND3 decode)Sprite pipeline
1 (OBJ_EN)XYLO / LCDC_SPENpPixel MUX gates (XULA, WOXA)Sprite pipeline
2 (OBJ_SIZE)XYMO / LCDC_SPSIZEpY-compare decoder (GOVU) — Mode 2OAM scan
2 (OBJ_SIZE)XYMO / LCDC_SPSIZEpSprite tile VRAM ma4 (GEJY) — Mode 3Sprite pipeline
3 (BG_MAP)XAFO / LCDC_BGMAPpBG tilemap address during fetch counter=0BG pipeline
4 (TILE_SEL)WEXU / LCDC_BGTILEpBG tile-data address at counter=2/4BG pipeline
5 (WIN_EN)WYMO / LCDC_WINENpWindow enable (XOFO → PYNU.r)Window control
6 (WIN_MAP)WOKY / LCDC_WINMAPpWindow tilemap address at counter=0BG pipeline
7 (LCDEN)XONA / LCDC_LCDENpVID_RST gate (LCDC.7 → XONA → XODO)Register writes
7 (LCDEN)XONA / LCDC_LCDENpCPL/FR audio/PPU-clock mux (KAHE, KUPA AO22) — all modes including LCD-offLCD output

A CUPA write mid-rendering transitions the latch output within the CUPA pulse window (1.493 dots spanning T3–T4), and consumer effects propagate combinationally. Per-bit sampling cadence within a fetch cycle, and mid-Mode-3 write behaviour, are detailed in the consumer chapters.

LCDC.7 has two distinct consumer paths: the VID_RST gate (reset-and-enable for the PPU's internal machinery) and the CPL/FR mux selector — the AO22 mux that keeps the LCD's column-alternator pins toggling on APU clocks while the LCD is off, protecting the glass from DC bias.