summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/formats/cd90_640_dsk.c
diff options
context:
space:
mode:
author ImJezze <jezze@gmx.net>2015-07-20 08:11:41 +0200
committer ImJezze <jezze@gmx.net>2015-07-20 08:11:41 +0200
commit4bcb0c13f50ddb1cd3fd0341b4bb31d9c3c7fc7a (patch)
tree55eccacfca0e69435d0d4e6615205310ca11f271 /src/lib/formats/cd90_640_dsk.c
parentd132946c6f45aa8d271c6180e86f72dd08243048 (diff)
parent229785f695b26c702c8490792611f59d0366a933 (diff)
Merge pull request #5 from mamedev/master
Sync to base master
Diffstat (limited to 'src/lib/formats/cd90_640_dsk.c')
-rw-r--r--src/lib/formats/cd90_640_dsk.c56
1 files changed, 56 insertions, 0 deletions
diff --git a/src/lib/formats/cd90_640_dsk.c b/src/lib/formats/cd90_640_dsk.c
new file mode 100644
index 00000000000..1654d5d8c99
--- /dev/null
+++ b/src/lib/formats/cd90_640_dsk.c
@@ -0,0 +1,56 @@
+// license:GPL-2.0+
+// copyright-holders:Dirk Best
+/***************************************************************************
+
+ Thompson CD90-640 FDC
+
+ Disk image format
+
+ TODO:
+ - Gap sizes unverified for FM
+
+***************************************************************************/
+
+#include "cd90_640_dsk.h"
+
+cd90_640_format::cd90_640_format() : wd177x_format(formats)
+{
+}
+
+const char *cd90_640_format::name() const
+{
+ return "cd90_640";
+}
+
+const char *cd90_640_format::description() const
+{
+ return "CD90-640 disk image";
+}
+
+const char *cd90_640_format::extensions() const
+{
+ return "fd";
+}
+
+const cd90_640_format::format cd90_640_format::formats[] =
+{
+ {
+ floppy_image::FF_525, floppy_image::SSSD, floppy_image::FM,
+ 4000, 16, 40, 1, 128, {}, 1, {}, 14, 11, 12
+ },
+ {
+ floppy_image::FF_525, floppy_image::SSDD, floppy_image::MFM,
+ 2000, 16, 40, 1, 256, {}, 1, {}, 31, 22, 44
+ },
+ {
+ floppy_image::FF_525, floppy_image::DSSD, floppy_image::FM,
+ 4000, 16, 40, 2, 128, {}, 1, {}, 14, 11, 12
+ },
+ {
+ floppy_image::FF_525, floppy_image::DSDD, floppy_image::MFM,
+ 2000, 16, 40, 2, 256, {}, 1, {}, 31, 22, 44
+ },
+ {}
+};
+
+const floppy_format_type FLOPPY_CD90_640_FORMAT = &floppy_image_format_creator<cd90_640_format>;