diff options
author | 2019-03-26 11:13:37 +1100 | |
---|---|---|
committer | 2019-03-26 11:13:37 +1100 | |
commit | 97b67170277437131adf6ed4d60139c172529e4f (patch) | |
tree | 7a5cbf608f191075f1612b1af15832c206a3fe2d /src/lib/formats/mtx_dsk.cpp | |
parent | b380514764cf857469bae61c11143a19f79a74c5 (diff) |
(nw) Clean up the mess on master
This effectively reverts b380514764cf857469bae61c11143a19f79a74c5 and
c24473ddff715ecec2e258a6eb38960cf8c8e98e, restoring the state at
598cd5227223c3b04ca31f0dbc1981256d9ea3ff.
Before pushing, please check that what you're about to push is sane.
Check your local commit log and ensure there isn't anything out-of-place
before pushing to mainline. When things like this happen, it wastes
everyone's time. I really don't need this in a week when real work⢠is
busting my balls and I'm behind where I want to be with preparing for
MAME release.
Diffstat (limited to 'src/lib/formats/mtx_dsk.cpp')
-rw-r--r-- | src/lib/formats/mtx_dsk.cpp | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/src/lib/formats/mtx_dsk.cpp b/src/lib/formats/mtx_dsk.cpp new file mode 100644 index 00000000000..95420f40aab --- /dev/null +++ b/src/lib/formats/mtx_dsk.cpp @@ -0,0 +1,53 @@ +// license:BSD-3-Clause +// copyright-holders:Nigel Barnes +/*************************************************************************** + + Memotech MTX + + Disk image format + +***************************************************************************/ + +#include "mtx_dsk.h" + +mtx_format::mtx_format() : wd177x_format(formats) +{ +} + +const char *mtx_format::name() const +{ + return "mtx"; +} + +const char *mtx_format::description() const +{ + return "Memotech MTX disk image"; +} + +const char *mtx_format::extensions() const +{ + return "mfloppy"; +} + +const mtx_format::format mtx_format::formats[] = +{ + { // 320k 5 1/4 inch double density single sided (Type 03) + floppy_image::FF_525, floppy_image::DSDD, floppy_image::MFM, + 2000, 16, 40, 2, 256, {}, 1, {}, 32, 22, 54 + }, + { // 640k 5 1/4 inch double density double sided (Type 07) + floppy_image::FF_525, floppy_image::DSQD, floppy_image::MFM, + 2000, 16, 80, 2, 256, {}, 1, {}, 32, 22, 54 + }, + { // 320k 3 1/2 inch double density single sided (Type 03) + floppy_image::FF_35, floppy_image::DSDD, floppy_image::MFM, + 2000, 16, 40, 2, 256, {}, 1, {}, 32, 22, 54 + }, + { // 640k 3 1/2 inch double density double sided (Type 07) + floppy_image::FF_35, floppy_image::DSQD, floppy_image::MFM, + 2000, 16, 80, 2, 256, {}, 1, {}, 32, 22, 54 + }, + {} +}; + +const floppy_format_type FLOPPY_MTX_FORMAT = &floppy_image_format_creator<mtx_format>; |