summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/formats/tvc_dsk.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/formats/tvc_dsk.cpp')
-rw-r--r--src/lib/formats/tvc_dsk.cpp48
1 files changed, 48 insertions, 0 deletions
diff --git a/src/lib/formats/tvc_dsk.cpp b/src/lib/formats/tvc_dsk.cpp
new file mode 100644
index 00000000000..8a2254cb7cc
--- /dev/null
+++ b/src/lib/formats/tvc_dsk.cpp
@@ -0,0 +1,48 @@
+// license:BSD-3-Clause
+// copyright-holders:Olivier Galibert
+/*********************************************************************
+
+ formats/tvc_dsk.c
+
+ tvc format
+
+*********************************************************************/
+
+#include <assert.h>
+
+#include "formats/tvc_dsk.h"
+
+tvc_format::tvc_format() : wd177x_format(formats)
+{
+}
+
+const char *tvc_format::name() const
+{
+ return "tvc";
+}
+
+const char *tvc_format::description() const
+{
+ return "Videoton TVC HBF disk image";
+}
+
+const char *tvc_format::extensions() const
+{
+ return "img,dsk";
+}
+
+// Unverified gap sizes
+const tvc_format::format tvc_format::formats[] =
+{
+ { // 720K 5.25 inch
+ floppy_image::FF_525, floppy_image::DSQD, floppy_image::MFM,
+ 2000, 9, 80, 2, 512, {}, 1, {}, 100, 22, 20
+ },
+ { // 360K 5.25 inch
+ floppy_image::FF_525, floppy_image::SSQD, floppy_image::MFM,
+ 2000, 9, 80, 1, 512, {}, 1, {}, 100, 22, 20
+ },
+ {}
+};
+
+const floppy_format_type FLOPPY_TVC_FORMAT = &floppy_image_format_creator<tvc_format>;