summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/formats/dmv_dsk.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/formats/dmv_dsk.cpp')
-rw-r--r--src/lib/formats/dmv_dsk.cpp55
1 files changed, 55 insertions, 0 deletions
diff --git a/src/lib/formats/dmv_dsk.cpp b/src/lib/formats/dmv_dsk.cpp
new file mode 100644
index 00000000000..02469ed74d4
--- /dev/null
+++ b/src/lib/formats/dmv_dsk.cpp
@@ -0,0 +1,55 @@
+// license:BSD-3-Clause
+// copyright-holders:Olivier Galibert
+/*********************************************************************
+
+ formats/dmv_dsk.c
+
+ NCR Decision Mate V format
+
+*********************************************************************/
+
+#include <assert.h>
+
+#include "formats/dmv_dsk.h"
+
+dmv_format::dmv_format() : upd765_format(formats)
+{
+}
+
+const char *dmv_format::name() const
+{
+ return "dmv";
+}
+
+const char *dmv_format::description() const
+{
+ return "Decision Mate V disk image";
+}
+
+const char *dmv_format::extensions() const
+{
+ return "img";
+}
+
+// gap size from hardware reference manual
+const dmv_format::format dmv_format::formats[] = {
+ {
+ floppy_image::FF_525, floppy_image::DSDD, floppy_image::MFM,
+ 2000,
+ 9, 40, 2,
+ 512, {},
+ 1, {},
+ 80, 50, 22, 80
+ },
+ {
+ floppy_image::FF_525, floppy_image::DSDD, floppy_image::MFM,
+ 2000,
+ 8, 40, 2,
+ 512, {},
+ 1, {},
+ 80, 50, 22, 80
+ },
+ {}
+};
+
+const floppy_format_type FLOPPY_DMV_FORMAT = &floppy_image_format_creator<dmv_format>;