summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib
diff options
context:
space:
mode:
author Dirk Best <mail@dirk-best.de>2021-03-03 13:38:54 +0100
committer Dirk Best <mail@dirk-best.de>2021-03-03 13:38:54 +0100
commit23769b0970273f7dc73224a31befc4994c419109 (patch)
treee21415095d18c5b55b1da34701135a4dfaad3876 /src/lib
parentc57c3c99301cc884e154ea10ad4efd3874d6fd53 (diff)
rc759: Add RTC and floppy, start cleanup
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/formats/rc759_dsk.cpp41
-rw-r--r--src/lib/formats/rc759_dsk.h33
2 files changed, 74 insertions, 0 deletions
diff --git a/src/lib/formats/rc759_dsk.cpp b/src/lib/formats/rc759_dsk.cpp
new file mode 100644
index 00000000000..5c706558139
--- /dev/null
+++ b/src/lib/formats/rc759_dsk.cpp
@@ -0,0 +1,41 @@
+// license: BSD-3-Clause
+// copyright-holders: Dirk Best
+/***************************************************************************
+
+ Regnecentralen RC759 Piccoline
+
+ Disk image format
+
+***************************************************************************/
+
+#include "rc759_dsk.h"
+
+rc759_format::rc759_format() : wd177x_format(formats)
+{
+}
+
+const char *rc759_format::name() const
+{
+ return "rc759";
+}
+
+const char *rc759_format::description() const
+{
+ return "RC759 disk image";
+}
+
+const char *rc759_format::extensions() const
+{
+ return "img";
+}
+
+const rc759_format::format rc759_format::formats[] =
+{
+ {
+ floppy_image::FF_525, floppy_image::DSHD, floppy_image::MFM,
+ 1200, 8, 77, 2, 1024, {}, 1, {}, 50, 22, 54
+ },
+ {}
+};
+
+const floppy_format_type FLOPPY_RC759_FORMAT = &floppy_image_format_creator<rc759_format>;
diff --git a/src/lib/formats/rc759_dsk.h b/src/lib/formats/rc759_dsk.h
new file mode 100644
index 00000000000..ad976221d07
--- /dev/null
+++ b/src/lib/formats/rc759_dsk.h
@@ -0,0 +1,33 @@
+// license: BSD-3-Clause
+// copyright-holders: Dirk Best
+/***************************************************************************
+
+ Regnecentralen RC759 Piccoline
+
+ Disk image format
+
+***************************************************************************/
+
+#ifndef MAME_FORMATS_RC759_DSK_H
+#define MAME_FORMATS_RC759_DSK_H
+
+#pragma once
+
+#include "wd177x_dsk.h"
+
+class rc759_format : public wd177x_format
+{
+public:
+ rc759_format();
+
+ virtual const char *name() const override;
+ virtual const char *description() const override;
+ virtual const char *extensions() const override;
+
+private:
+ static const format formats[];
+};
+
+extern const floppy_format_type FLOPPY_RC759_FORMAT;
+
+#endif // MAME_FORMATS_RC759_DSK_H