Skip to content
Back to skills

Hdd Expert

ASecurity

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.

  • 666 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added February 9, 2026
documentationdocumentation

Security analysis

A100/100

Scanned February 12, 2026

npx -y skills add majiayu000/claude-skill-registry --skill hdd-expert --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Hdd Expert?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Hdd Expert
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-hdd-expert/badge)](https://www.skillsdirectory.com/skills/majiayu000-hdd-expert)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: hdd-expert
description: 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.
---

# HDD Expert - ST-506/MFM

Expert knowledge for the ES-1841's hard disk controller.

## Key Specifications

| Property    | Value                    |
| ----------- | ------------------------ |
| I/O Ports   | `320h`-`327h`            |
| DMA Channel | 3                        |
| IRQ         | 5                        |
| Addressing  | CHS                      |

## I/O Ports

| Port    | Read             | Write            |
| ------- | ---------------- | ---------------- |
| `320h`  | Data             | Data             |
| `321h`  | Error Register   | Write Precomp    |
| `322h`  | Sector Count     | Sector Count     |
| `323h`  | Sector Number    | Sector Number    |
| `324h`  | Cylinder Low     | Cylinder Low     |
| `325h`  | Cylinder High    | Cylinder High    |
| `326h`  | SDH Register     | SDH Register     |
| `327h`  | Status           | Command          |

## Status Register (`327h`)

| Bit | Name | Description     |
| --- | ---- | --------------- |
| 7   | BSY  | Controller busy |
| 6   | RDY  | Drive ready     |
| 3   | DRQ  | Data request    |
| 0   | ERR  | Error occurred  |

## SDH Register (`326h`)

```text
Bit 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  | `10h`  |
| Read Sector  | `20h`  |
| Write Sector | `30h`  |
| Seek         | `70h`  |

## Command Sequence

1. Wait BSY=0, RDY=1
2. Write parameters (`322h`-`326h`)
3. Write command (`327h`)
4. Wait for IRQ or poll DRQ
5. Transfer data
6. Read status

## References

See [references/](references/) for detailed documentation.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.