Introduction
An .mdr file is an image of a cartridge for the ZX Microdrive, the tape-loop storage device of
the Sinclair ZX Spectrum. Carlo Delhez devised the format for his Spectator emulator for the Sinclair QL, and
other Spectrum emulators adopted it.
Structure
A full cartridge is 254 sectors of 543 bytes followed by one byte that, if not zero, marks the cartridge as write-protected: 137,923 bytes in all. Each sector holds a 15-byte header block with the sector number and cartridge name, then a 528-byte record block with flags, record number, length, file name and 512 bytes of data. The checksums are sums of the bytes modulo 255. Some emulators allow fewer than 254 sectors.
Not described
Known, not yet covered
- Reference: the layout of the format is not yet described here: the byte offsets, the record flags and the file headers are in published descriptions of the format.
- Viewer: the site has no viewer for this format.
Links
Software
- Spectator – Spectrum emulator for the Sinclair QL that introduced the format
- XZX – Spectrum emulator that supports the format
- Z80 – Spectrum emulator that uses these cartridge files
- Warajevo – Spectrum emulator that uses nearly the same format
Developers
- libspectrum – ZX Spectrum file library that reads and writes MDR (C)
Reference
- MDR format description – the sector layout, mirror copy
- Sinclair FAQ: file formats – notes on MDR among other Spectrum formats