By Ricardo Bittencourt
Updated by Tony Cruise (2010)
Modernized by Leandro V. Catarin (2025)
- Introduction
- Syntax
- Examples
- Implemented Suggestions
- What's New
- Acknowledgments
- The Author
Hello, MSX community!
In 2025, with the goal of preserving the legacy of this essential tool, I set out to modernize DSKTOOL for retro computing enthusiasts. The .DSK format remains crucial for MSX emulation and preservation, but the tools needed an update.
Among the new features, advanced boot sector operations allow deeper disk management—perfect for homebrew developers and preservationists. The command syntax has been modernized for intuitive use while keeping the original commands available for compatibility.
DSKTOOL <dsk_file> [files] [options]
Command | Description |
---|---|
ls |
List disk contents |
x |
Extract files |
rm |
Delete files |
a |
Add files |
Command | Description |
sx |
Save boot sector to a binary file |
sw |
Write boot sector from a binary file |
s |
Initialize boot sector (0 = zeros, 1 = MSX-DOS default) |
📌 Note:
-
The
[files]
parameter supports wildcards (*
and?
). -
For boot operations, specify either a filename (
sx/sw
) or an initialization mode (s
).
DSKTOOL ls GAMEPACK.DSK
DSKTOOL x UTILS.DSK *.COM
DSKTOOL sw SYSTEM.DSK CUSTOM.BIN
DSKTOOL a SYSTEM.DSK NEWKERNEL.SYS
DSKTOOL s BLANK.DSK 0
DSKTOOL sw BLANK.DSK MYBOOT.BIN
DSKTOOL a BLANK.DSK MYPROG*.*
DSKTOOL sx MYSTERY.DSK BOOTSAVE.BIN
New suggestions are always welcome! The MSX scene continues to evolve, and our tools should too.
✅ Added boot sector operations (save, restore, initialize).
✅ Modernized command set (ls/x/rm) while keeping original commands.
✅ Improved error handling and user feedback.
✅ Preparations for future disk format support.
✅ Refactored codebase for multi-platform support.
✅ Fixed memory leak in add_single_file
.
✅ Fixed bug with files larger than 64 KB.
Standing on the shoulders of giants, I acknowledge:
🖥️ Ricardo Bittencourt and Tony Cruise, original creators of DSKTOOL.
📖 Eduardo Barbosa and Edison Moraes, authors of the "MSX Bible".
🔧 DJ Delorie and Charles Sandmann, DJGPP pioneers.
🆓 Richard Stallman, free software champion.
🌍 MSX.org community, keeping our passion alive.
🇧🇷 Brazilian MSX community, for keeping the retro flame burning!
Leandro V. Catarin
💾 MSX enthusiast since childhood, now giving back to the community that shaped my computing journey.
📧 Contact: [[email protected]]
🚀 Keep the MSX spirit alive!