4.1 Layer Diagram
┌─────────────────────────────────────────────┐
│ D3-TUI Application │
├─────────────────────────────────────────────┤
│ ┌─────────────────────────────────────────┐ │
│ │ D3-TUI Core │ │
│ │ (Terminal, Render, Font, Input, VMU) │ │
│ └──────────────┬────────────────────────┘ │
│ │ │
│ ┌──────────────▼────────────────────────┐ │
│ │ SPECTRE Wrapper Layer │ │
│ │ (d3tui_shachi.h/.c) │ │
│ └──────────────┬────────────────────────┘ │
│ │ │
│ ┌──────────────▼────────────────────────┐ │
│ │ SPECTRE Specs │ │
│ │ (shachi/vmu.h, shachi/sh4math.h, ...) │ │
│ └──────────────┬────────────────────────┘ │
│ │ │
│ ┌──────────────▼────────────────────────┐ │
│ │ KOS │ │
│ └─────────────────────────────────────────┘ │
└─────────────────────────────────────────────┘