diff options
author | 2015-11-08 12:56:12 +0100 | |
---|---|---|
committer | 2015-11-08 12:56:12 +0100 | |
commit | 7c19aac60e12d6f5ea301bdb34d7826a01e0b06f (patch) | |
tree | f310d86aa2c6bfc19d115307dedde4eb0cd52dad /src/lib/formats/smx_dsk.cpp | |
parent | a57b46ae933badd7441ce1644711dbb851e2b504 (diff) |
Rename *.c -> *.cpp in our source (nw)
Diffstat (limited to 'src/lib/formats/smx_dsk.cpp')
-rw-r--r-- | src/lib/formats/smx_dsk.cpp | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/src/lib/formats/smx_dsk.cpp b/src/lib/formats/smx_dsk.cpp new file mode 100644 index 00000000000..9158a586c13 --- /dev/null +++ b/src/lib/formats/smx_dsk.cpp @@ -0,0 +1,48 @@ +// license:BSD-3-Clause +// copyright-holders:Olivier Galibert +/********************************************************************* + + formats/smx_dsk.c + + Specialist MX format + +*********************************************************************/ + +#include <assert.h> + +#include "formats/smx_dsk.h" + +smx_format::smx_format() : wd177x_format(formats) +{ +} + +const char *smx_format::name() const +{ + return "smx"; +} + +const char *smx_format::description() const +{ + return "Specialist MX/Orion/B2M disk image"; +} + +const char *smx_format::extensions() const +{ + return "odi,cpm,img"; +} + +// Unverified gap sizes +const smx_format::format smx_format::formats[] = +{ + { // Specialist MX/Orion/B2M disk image + floppy_image::FF_525, floppy_image::DSQD, floppy_image::MFM, + 2000, 5, 80, 2, 1024, {}, 1, {}, 100, 22, 20 + }, + { // Lucksian Key Orion disk image + floppy_image::FF_525, floppy_image::DSQD, floppy_image::MFM, + 2000, 9, 80, 2, 512, {}, 1, {}, 100, 22, 20 + }, + {} +}; + +const floppy_format_type FLOPPY_SMX_FORMAT = &floppy_image_format_creator<smx_format>; |