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/msx_dsk.cpp | |
parent | a57b46ae933badd7441ce1644711dbb851e2b504 (diff) |
Rename *.c -> *.cpp in our source (nw)
Diffstat (limited to 'src/lib/formats/msx_dsk.cpp')
-rw-r--r-- | src/lib/formats/msx_dsk.cpp | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/src/lib/formats/msx_dsk.cpp b/src/lib/formats/msx_dsk.cpp new file mode 100644 index 00000000000..ab0b5bab529 --- /dev/null +++ b/src/lib/formats/msx_dsk.cpp @@ -0,0 +1,61 @@ +// license:BSD-3-Clause +// copyright-holders:Olivier Galibert +/********************************************************************* + + formats/msx_dsk.c + + MSX disk images + +*********************************************************************/ + +#include "msx_dsk.h" + +//msx_format::msx_format() : wd177x_format(formats) +msx_format::msx_format() : upd765_format(formats) +{ +} + +const char *msx_format::name() const +{ + return "msx"; +} + +const char *msx_format::description() const +{ + return "MSX disk image"; +} + +const char *msx_format::extensions() const +{ + return "dsk"; +} + +// Unverified gap sizes +const msx_format::format msx_format::formats[] = { + { /* 3 1/2 inch single sided double density */ + // 80x4e 12x00 3xf6 fc + // 26x4e 12x00 3xf5 fe 2x00 01 02 f7 24x4e 12x00 3xf5 fb 512xe5 f7 + // 54x4e 12x00 3xf5 fe 2x00 02 02 f7 24x4e 12x00 3xf5 fb 512xe5 f7 + // 54x4e 12x00 3xf5 fe 2x00 03 02 f7 24x4e 12x00 3xf5 fb 512xe5 f7 + // 54x4e 12x00 3xf5 fe 2x00 04 02 f7 24x4e 12x00 3xf5 fb 512xe5 f7 + // 54x4e 12x00 3xf5 fe 2x00 05 02 f7 24x4e 12x00 3xf5 fb 512xe5 f7 + // 54x4e 12x00 3xf5 fe 2x00 06 02 f7 24x4e 12x00 3xf5 fb 512xe5 f7 + // 54x4e 12x00 3xf5 fe 2x00 07 02 f7 24x4e 12x00 3xf5 fb 512xe5 f7 + // 54x4e 12x00 3xf5 fe 2x00 08 02 f7 24x4e 12x00 3xf5 fb 512xe5 f7 + // 54x4e 12x00 3xf5 fe 2x00 09 02 f7 24x4e 12x00 3xf5 fb 512xe5 f7 + // 1078x4e + floppy_image::FF_35, floppy_image::SSDD, floppy_image::MFM, + 2000, 9, 80, 1, 512, {}, 1, {}, 26, 24, 28, 80 + }, + { /* 3 1/2 inch double density */ + floppy_image::FF_35, floppy_image::DSDD, floppy_image::MFM, + 2000, 9, 80, 2, 512, {}, 1, {}, 26, 24, 28, 80 + }, + { /* 3 1/2 inch double density - 81 tracks */ + floppy_image::FF_35, floppy_image::DSDD, floppy_image::MFM, + 2000, 9, 81, 2, 512, {}, 1, {}, 26, 24, 28, 80 + }, + {} +}; + +const floppy_format_type FLOPPY_MSX_FORMAT = &floppy_image_format_creator<msx_format>; |