summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib
diff options
context:
space:
mode:
author Dirk Best <mail@dirk-best.de>2015-06-01 10:14:02 +0200
committer Dirk Best <mail@dirk-best.de>2015-06-01 10:14:37 +0200
commit476d027582fd1fe1ce535e662161bed8f207ec65 (patch)
treeb2062bcc3bf6c74d991d1321ed5ffe44f3840660 /src/lib
parent508cceb599402b3ca487c12bd93b5c19e8ae8831 (diff)
mz2000: updated to use new wd fdc. fix softlist to use the correct
interface. change x1_dsk to 2d_dsk and use it for the mz2000 as well.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/formats/2d_dsk.c41
-rw-r--r--src/lib/formats/2d_dsk.h (renamed from src/lib/formats/x1_dsk.h)14
-rw-r--r--src/lib/formats/x1_dsk.c41
3 files changed, 48 insertions, 48 deletions
diff --git a/src/lib/formats/2d_dsk.c b/src/lib/formats/2d_dsk.c
new file mode 100644
index 00000000000..7f304b4eaa0
--- /dev/null
+++ b/src/lib/formats/2d_dsk.c
@@ -0,0 +1,41 @@
+// license:GPL-2.0+
+// copyright-holders:Dirk Best
+/***************************************************************************
+
+ 2D
+
+ Disk image format used by early Sharp computers
+
+***************************************************************************/
+
+#include "2d_dsk.h"
+
+_2d_format::_2d_format() : wd177x_format(formats)
+{
+}
+
+const char *_2d_format::name() const
+{
+ return "2d";
+}
+
+const char *_2d_format::description() const
+{
+ return "2D disk image";
+}
+
+const char *_2d_format::extensions() const
+{
+ return "2d";
+}
+
+const _2d_format::format _2d_format::formats[] =
+{
+ {
+ floppy_image::FF_525, floppy_image::DSDD, floppy_image::MFM,
+ 2000, 16, 40, 2, 256, {}, 1, {}, 32, 22, 54
+ },
+ {}
+};
+
+const floppy_format_type FLOPPY_2D_FORMAT = &floppy_image_format_creator<_2d_format>;
diff --git a/src/lib/formats/x1_dsk.h b/src/lib/formats/2d_dsk.h
index 0774c6bf27e..ab70b95f21a 100644
--- a/src/lib/formats/x1_dsk.h
+++ b/src/lib/formats/2d_dsk.h
@@ -2,7 +2,7 @@
// copyright-holders:Dirk Best
/***************************************************************************
- Sharp X1
+ Sharp 2D
Disk image format
@@ -10,15 +10,15 @@
#pragma once
-#ifndef __X1_DSK_H__
-#define __X1_DSK_H__
+#ifndef __2D_DSK_H__
+#define __2D_DSK_H__
#include "wd177x_dsk.h"
-class x1_format : public wd177x_format
+class _2d_format : public wd177x_format
{
public:
- x1_format();
+ _2d_format();
virtual const char *name() const;
virtual const char *description() const;
@@ -28,6 +28,6 @@ private:
static const format formats[];
};
-extern const floppy_format_type FLOPPY_X1_FORMAT;
+extern const floppy_format_type FLOPPY_2D_FORMAT;
-#endif // __X1_DSK_H__
+#endif // __2D_DSK_H__
diff --git a/src/lib/formats/x1_dsk.c b/src/lib/formats/x1_dsk.c
deleted file mode 100644
index b6a5d1890da..00000000000
--- a/src/lib/formats/x1_dsk.c
+++ /dev/null
@@ -1,41 +0,0 @@
-// license:GPL-2.0+
-// copyright-holders:Dirk Best
-/***************************************************************************
-
- Sharp X1
-
- Disk image format
-
-***************************************************************************/
-
-#include "x1_dsk.h"
-
-x1_format::x1_format() : wd177x_format(formats)
-{
-}
-
-const char *x1_format::name() const
-{
- return "x1";
-}
-
-const char *x1_format::description() const
-{
- return "Sharp X1 disk image";
-}
-
-const char *x1_format::extensions() const
-{
- return "2d";
-}
-
-const x1_format::format x1_format::formats[] =
-{
- {
- floppy_image::FF_525, floppy_image::DSDD, floppy_image::MFM,
- 2000, 16, 40, 2, 256, {}, 1, {}, 32, 22, 54
- },
- {}
-};
-
-const floppy_format_type FLOPPY_X1_FORMAT = &floppy_image_format_creator<x1_format>;