trunk/src/lib/formats/excali64_dsk.c
| r242591 | r242592 | |
| 1 | | // license:BSD-3-Clause |
| 2 | | // copyright-holders:Olivier Galibert |
| 3 | | /********************************************************************* |
| 4 | | |
| 5 | | formats/excali64_dsk.c |
| 6 | | |
| 7 | | Excalibur 64 disk image format |
| 8 | | |
| 9 | | *********************************************************************/ |
| 10 | | |
| 11 | | #include "emu.h" |
| 12 | | #include "formats/excali64_dsk.h" |
| 13 | | |
| 14 | | excali64_format::excali64_format() : wd177x_format(formats) |
| 15 | | { |
| 16 | | } |
| 17 | | |
| 18 | | const char *excali64_format::name() const |
| 19 | | { |
| 20 | | return "excali64"; |
| 21 | | } |
| 22 | | |
| 23 | | const char *excali64_format::description() const |
| 24 | | { |
| 25 | | return "Excalibur 64 disk image"; |
| 26 | | } |
| 27 | | |
| 28 | | const char *excali64_format::extensions() const |
| 29 | | { |
| 30 | | return "raw"; |
| 31 | | } |
| 32 | | |
| 33 | | // Unverified gap sizes |
| 34 | | const excali64_format::format excali64_format::formats[] = { |
| 35 | | { /* 800K 19cm double density */ |
| 36 | | floppy_image::FF_525, floppy_image::DSDD, floppy_image::MFM, |
| 37 | | 2000, 5, 80, 2, 1024, {}, 1, {}, 100, 22, 84 |
| 38 | | }, |
| 39 | | {} |
| 40 | | }; |
| 41 | | |
| 42 | | const floppy_format_type FLOPPY_EXCALI64_FORMAT = &floppy_image_format_creator<excali64_format>; |
trunk/src/lib/formats/excali64_dsk.h
| r242591 | r242592 | |
| 1 | | /********************************************************************* |
| 2 | | |
| 3 | | formats/excali64_dsk.h |
| 4 | | |
| 5 | | Excalibur 64 disk image format |
| 6 | | |
| 7 | | *********************************************************************/ |
| 8 | | |
| 9 | | #ifndef EXCALI64_DSK_H_ |
| 10 | | #define EXCALI64_DSK_H_ |
| 11 | | |
| 12 | | #include "wd177x_dsk.h" |
| 13 | | |
| 14 | | class excali64_format : public wd177x_format { |
| 15 | | public: |
| 16 | | excali64_format(); |
| 17 | | |
| 18 | | virtual const char *name() const; |
| 19 | | virtual const char *description() const; |
| 20 | | virtual const char *extensions() const; |
| 21 | | |
| 22 | | private: |
| 23 | | static const format formats[]; |
| 24 | | }; |
| 25 | | |
| 26 | | extern const floppy_format_type FLOPPY_EXCALI64_FORMAT; |
| 27 | | |
| 28 | | #endif |