Claude-skill-registry crtc-expert
Expert on MC6845 CRTC for ES-1841 video timing. Provides guidance on video timing, cursor control, display addressing, V-Blank detection, and CGA register programming.
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/crtc-expert" ~/.claude/skills/majiayu000-claude-skill-registry-crtc-expert && rm -rf "$T"
manifest:
skills/data/crtc-expert/SKILL.mdsource content
CRTC Expert - MC6845 / KR1810VG85
Expert knowledge for the ES-1841's CRT controller.
Key Specifications
| Property | Value |
|---|---|
| Soviet Clone | KR1810VG85 |
| I/O Ports | / (index/data) |
| Registers | R0-R17 |
| Video RAM | |
I/O Ports
| Port | Function |
|---|---|
| Index register (W) |
| Data register (R/W) |
| Mode Control (W) |
| Color Select (W) |
| Status Register (R) |
Key Registers
| Reg | Name | 80×25 Value |
|---|---|---|
| R0 | Horizontal Total | |
| R1 | Horizontal Displayed | |
| R4 | Vertical Total | |
| R6 | Vertical Displayed | |
| R9 | Max Scan Line | |
| R12-13 | Start Address | Display offset |
| R14-15 | Cursor Address | Cursor pos |
Status Register (3DAh
)
3DAh| Bit | Function |
|---|---|
| 0 | Display enable (1=retrace) |
| 3 | Vertical Sync (1=V-Blank) |
CRITICAL: ES-1841 BIOS hangs if V-Blank (bit 3) doesn't toggle correctly!
V-Blank Timing
V-Blank Start = R6 × (R9 + 1) V-Blank End = (R4 + 1) × (R9 + 1)
Status must update on every read.
Mode Control (3D8h
)
3D8h| Bit | Function |
|---|---|
| 0 | 80-column (1) / 40-col (0) |
| 1 | Graphics (1) / Text (0) |
| 3 | Video enable |
| 4 | Hi-res 640×200 |
| 5 | Blink enable |
References
- references/implementation-guide.md - Complete CRTC/CGA implementation guide with code examples
- See references/ for detailed hardware documentation