summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/formats/mtx_dsk.cpp
diff options
context:
space:
mode:
author Nigel Barnes <Pernod70@users.noreply.github.com>2019-03-10 17:23:39 +0000
committer Nigel Barnes <Pernod70@users.noreply.github.com>2019-03-10 17:23:39 +0000
commit5511ce41e2b5a23394c75b0e743c3bcafdb87b15 (patch)
tree5d2cb4dc1642094abb6816f9da86509fd07530d0 /src/lib/formats/mtx_dsk.cpp
parentf9ae1fd4080bad4870247c4fc21fee3ba8b7af1f (diff)
mtx: Added expansion bus with SDX floppy controller.
- 80 column card with SDX in CP/M mode. - ROM/RAM banking fixed for CP/M, and MTX500 now correctly detected. - Support for Type 03 and Type 07 .mfloppy images. - Added alternate MTX2 romset (German). - Keyboard ROM now selected in Configuration. - Quickload .RUN files.
Diffstat (limited to 'src/lib/formats/mtx_dsk.cpp')
-rw-r--r--src/lib/formats/mtx_dsk.cpp53
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>;