summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/formats/nascom_dsk.cpp
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2015-11-08 12:56:12 +0100
committer Miodrag Milanovic <mmicko@gmail.com>2015-11-08 12:56:12 +0100
commit7c19aac60e12d6f5ea301bdb34d7826a01e0b06f (patch)
treef310d86aa2c6bfc19d115307dedde4eb0cd52dad /src/lib/formats/nascom_dsk.cpp
parenta57b46ae933badd7441ce1644711dbb851e2b504 (diff)
Rename *.c -> *.cpp in our source (nw)
Diffstat (limited to 'src/lib/formats/nascom_dsk.cpp')
-rw-r--r--src/lib/formats/nascom_dsk.cpp53
1 files changed, 53 insertions, 0 deletions
diff --git a/src/lib/formats/nascom_dsk.cpp b/src/lib/formats/nascom_dsk.cpp
new file mode 100644
index 00000000000..258de89c326
--- /dev/null
+++ b/src/lib/formats/nascom_dsk.cpp
@@ -0,0 +1,53 @@
+// license:GPL-2.0+
+// copyright-holders:Dirk Best
+/***************************************************************************
+
+ Nascom 1/2/3
+
+ Disk image format
+
+***************************************************************************/
+
+#include "nascom_dsk.h"
+
+nascom_format::nascom_format() : wd177x_format(formats)
+{
+}
+
+const char *nascom_format::name() const
+{
+ return "nascom";
+}
+
+const char *nascom_format::description() const
+{
+ return "Nascom disk image";
+}
+
+const char *nascom_format::extensions() const
+{
+ return "dsk";
+}
+
+const nascom_format::format nascom_format::formats[] =
+{
+ { // 320k 5 1/4 inch double density single sided (NASDOS)
+ floppy_image::FF_525, floppy_image::SSQD, floppy_image::MFM,
+ 2000, 16, 80, 1, 256, {}, 1, {}, 32, 22, 54
+ },
+ { // 640k 5 1/4 inch double density double sided (NASDOS)
+ floppy_image::FF_525, floppy_image::DSQD, floppy_image::MFM,
+ 2000, 16, 80, 2, 256, {}, 1, {}, 32, 22, 54
+ },
+ { // 385k 5 1/4 inch double density single sided (CP/M)
+ floppy_image::FF_525, floppy_image::SSQD, floppy_image::MFM,
+ 2000, 10, 77, 1, 512, {}, 1, {}, 32, 22, 32
+ },
+ { // 770k 5 1/4 inch double density double sided (CP/M)
+ floppy_image::FF_525, floppy_image::DSQD, floppy_image::MFM,
+ 2000, 10, 77, 2, 512, {}, 1, {}, 32, 22, 32
+ },
+ {}
+};
+
+const floppy_format_type FLOPPY_NASCOM_FORMAT = &floppy_image_format_creator<nascom_format>;