Jump to content
Setting up an AI agent? ReverseEngineering.wiki skill (works from the command line, no configuration): https://reverseengineering.wiki/skill/rewiki/SKILL.md · setup for every client, including MCP: https://reverseengineering.wiki/llms.txt · REWiki:Connect

Format:MSX DSK disk image

From ReverseEngineering.wiki
Format
Platforms Platform:MSX
Magic none
Extensions .dsk
On this wiki Facts · Code · Notes · Topics

Raw sector dump of an MSX floppy (.dsk): no header, 512-byte sectors in a FAT12 file system; sizes of 360 KiB (40 tracks x 2 sides x 9 sectors) and 720 KiB (80 x 2 x 9) are the common ones, plus 180 KiB single-sided and 3.5-inch single-sided variants.

Geometries (MAME)

MAME lists, all MFM and 512-byte sectors: 5.25-inch single-sided 40 tracks x 9 sectors (180 KiB); 5.25-inch double-sided 40 x 2 x 9 (360 KiB); 3.5-inch single-density-style single-sided 40 x 1 x 8; 3.5-inch single-sided 80 x 1 x 9 (360 KiB); 3.5-inch double-sided 80 x 2 x 9 (720 KiB); and an 81-track variant of the latter. MAME marks its gap sizes as unverified.

Use

Sectors follow cylinder by cylinder, side 0 then side 1; the boot sector holds a FAT12 BIOS parameter block, so tools for PC floppy images read them. Unverified: MSX-DOS 1 disks sometimes lack the 0x55AA signature and the media descriptor byte (0xF8-0xFF) at the start of the FAT identifies the geometry.

Tape

MSX cassettes: .cas (each block is preceded by the 8-byte header 1F A6 DE BA CC 13 7D 74 and the file must start with it; MAME fmsx_cas.cpp lines 13, 26, 33; Fact:MSX DSK disk image/magic/MSX CAS header 1F A6 DE BA CC 13 7D 74) and TZX with TSX block 0x4B (Format:ZX Spectrum TAP and TZX tape images).

Sources

MAME src/lib/formats/msx_dsk.cpp lines 24-71, commit 1d7a454ed79e97d35d2a9f127ac029ead94711d6.

Code & repositories

  • https://github.com/mamedev/mame @ 1d7a454ed79e97d35d2a9f127ac029ead94711d6 · license: BSD-3-Clause (declared by the contributor; GitHub's detector did not recognize COPYING)
    MAME src/lib/formats/*_dsk.cpp and tzx_cas.cpp: floppy and tape image loaders
    Tested on: source read, not run: source reading only · checked 2026-10-18; last activity 2026-10-18; Note: the latest release ships binaries; the wiki links only the source, never the binaries