Claude-skill-registry hdd-expert
Expert on ST-506/MFM Hard Disk Controller for ES-1841. Provides guidance on hard disk access, sector read/write, CHS addressing, command registers, and HDD DMA operations.
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/hdd-expert" ~/.claude/skills/majiayu000-claude-skill-registry-hdd-expert && rm -rf "$T"
manifest:
skills/data/hdd-expert/SKILL.mdsource content
HDD Expert - ST-506/MFM
Expert knowledge for the ES-1841's hard disk controller.
Key Specifications
| Property | Value |
|---|---|
| I/O Ports | - |
| DMA Channel | 3 |
| IRQ | 5 |
| Addressing | CHS |
I/O Ports
| Port | Read | Write |
|---|---|---|
| Data | Data |
| Error Register | Write Precomp |
| Sector Count | Sector Count |
| Sector Number | Sector Number |
| Cylinder Low | Cylinder Low |
| Cylinder High | Cylinder High |
| SDH Register | SDH Register |
| Status | Command |
Status Register (327h
)
327h| Bit | Name | Description |
|---|---|---|
| 7 | BSY | Controller busy |
| 6 | RDY | Drive ready |
| 3 | DRQ | Data request |
| 0 | ERR | Error occurred |
SDH Register (326h
)
326hBit 7: 1 (always) Bit 6: LBA mode (0=CHS) Bit 5: 1 (always) Bit 4: Drive select Bits 0-3: Head number
Commands
| Command | Code |
|---|---|
| Recalibrate | |
| Read Sector | |
| Write Sector | |
| Seek | |
Command Sequence
- Wait BSY=0, RDY=1
- Write parameters (
-322h
)326h - Write command (
)327h - Wait for IRQ or poll DRQ
- Transfer data
- Read status
References
See references/ for detailed documentation.