diff options
Diffstat (limited to 'src/lib/formats')
-rw-r--r-- | src/lib/formats/abcfd2_dsk.c | 62 | ||||
-rw-r--r-- | src/lib/formats/abcfd2_dsk.h | 30 |
2 files changed, 92 insertions, 0 deletions
diff --git a/src/lib/formats/abcfd2_dsk.c b/src/lib/formats/abcfd2_dsk.c new file mode 100644 index 00000000000..8cc87ae20cd --- /dev/null +++ b/src/lib/formats/abcfd2_dsk.c @@ -0,0 +1,62 @@ +// license:BSD-3-Clause +// copyright-holders:Curt Coder +/********************************************************************* + + formats/abcfd2_dsk.c + + Scandia Metric ABC FD2 disk image formats + +*********************************************************************/ + +#include <assert.h> + +#include "formats/abcfd2_dsk.h" + +abc_fd2_format::abc_fd2_format() : wd177x_format(formats) +{ +} + +const char *abc_fd2_format::name() const +{ + return "abc_fd2"; +} + +const char *abc_fd2_format::description() const +{ + return "Scandia Metric ABC FD2 disk image"; +} + +const char *abc_fd2_format::extensions() const +{ + return "dsk"; +} + +const abc_fd2_format::format abc_fd2_format::formats[] = { + // track description + // 28xff 6x00 fe 2x00 01 00 f7 11xff 6x00 fb 128xe5 f7 + // 27xff 6x00 fe 2x00 02 00 f7 11xff 6x00 fb 128xe5 f7 + // 27xff 6x00 fe 2x00 03 00 f7 11xff 6x00 fb 128xe5 f7 + // 27xff 6x00 fe 2x00 04 00 f7 11xff 6x00 fb 128xe5 f7 + // 27xff 6x00 fe 2x00 05 00 f7 11xff 6x00 fb 128xe5 f7 + // 27xff 6x00 fe 2x00 06 00 f7 11xff 6x00 fb 128xe5 f7 + // 27xff 6x00 fe 2x00 07 00 f7 11xff 6x00 fb 128xe5 f7 + // 27xff 6x00 fe 2x00 08 00 f7 11xff 6x00 fb 128xe5 f7 + // 27xff 6x00 fe 2x00 09 00 f7 11xff 6x00 fb 128xe5 f7 + // 27xff 6x00 fe 2x00 0a 00 f7 11xff 6x00 fb 128xe5 f7 + // 27xff 6x00 fe 2x00 0b 00 f7 11xff 6x00 fb 128xe5 f7 + // 27xff 6x00 fe 2x00 0c 00 f7 11xff 6x00 fb 128xe5 f7 + // 27xff 6x00 fe 2x00 0d 00 f7 11xff 6x00 fb 128xe5 f7 + // 27xff 6x00 fe 2x00 0e 00 f7 11xff 6x00 fb 128xe5 f7 + // 27xff 6x00 fe 2x00 0f 00 f7 11xff 6x00 fb 128xe5 f7 + // 27xff 6x00 fe 2x00 10 00 f7 11xff 6x00 fb 128xe5 f7 + // 117xff + + { // 80K 5 1/4 inch single density single sided + floppy_image::FF_525, floppy_image::SSSD, floppy_image::FM, + 4000, 16, 40, 1, 128, {}, 1, {}, 28, 11, 27 + }, + + {} +}; + +const floppy_format_type FLOPPY_ABC_FD2_FORMAT = &floppy_image_format_creator<abc_fd2_format>; diff --git a/src/lib/formats/abcfd2_dsk.h b/src/lib/formats/abcfd2_dsk.h new file mode 100644 index 00000000000..a97e46cb5ed --- /dev/null +++ b/src/lib/formats/abcfd2_dsk.h @@ -0,0 +1,30 @@ +// license:BSD-3-Clause +// copyright-holders:Curt Coder +/********************************************************************* + + formats/abcfd2_dsk.h + + Scandia Metric ABC FD2 disk image formats + +*********************************************************************/ + +#ifndef ABC_FD2_DSK_H_ +#define ABC_FD2_DSK_H_ + +#include "wd177x_dsk.h" + +class abc_fd2_format : public wd177x_format { +public: + abc_fd2_format(); + + virtual const char *name() const; + virtual const char *description() const; + virtual const char *extensions() const; + +private: + static const format formats[]; +}; + +extern const floppy_format_type FLOPPY_ABC_FD2_FORMAT; + +#endif |