diff options
author | 2015-04-21 23:52:22 +0300 | |
---|---|---|
committer | 2015-04-21 23:52:22 +0300 | |
commit | 67d09b16e9c3bfdbbbd5badebb34ce1dd2aba01a (patch) | |
tree | 80bf2f449bd8090fac2260e5cde1ab969c381fc6 /src/lib/formats/c3040_dsk.h | |
parent | 2dc5e399ed3fc2a1622277195da5d8ec5bc8eef2 (diff) |
(MESS) c3040: Disk format WIP. (nw)
Diffstat (limited to 'src/lib/formats/c3040_dsk.h')
-rw-r--r-- | src/lib/formats/c3040_dsk.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/src/lib/formats/c3040_dsk.h b/src/lib/formats/c3040_dsk.h new file mode 100644 index 00000000000..cbf320273a8 --- /dev/null +++ b/src/lib/formats/c3040_dsk.h @@ -0,0 +1,40 @@ +// license:BSD-3-Clause +// copyright-holders:Curt Coder +/********************************************************************* + + formats/c3040_dsk.h + + Commodore 3040 sector disk image format + +*********************************************************************/ + +#ifndef C3040_DSK_H_ +#define C3040_DSK_H_ + +#include "d64_dsk.h" + +class c3040_format : public d64_format { +public: + c3040_format(); + + virtual const char *name() const; + virtual const char *description() const; + virtual const char *extensions() const; + +protected: + virtual int get_sectors_per_track(const format &f, int track) { return c3040_sectors_per_track[track]; } + virtual floppy_image_format_t::desc_e* get_sector_desc(const format &f, int ¤t_size, int sector_count, UINT8 id1, UINT8 id2, int gap_2); + virtual int get_gap2(const format &f, int head, int track) { return c3040_gap2[track]; } + virtual void fix_end_gap(floppy_image_format_t::desc_e* desc, int remaining_size); + + static const format file_formats[]; + + static const int c3040_gap2[]; + static const int c3040_sectors_per_track[]; +}; + +extern const floppy_format_type FLOPPY_C3040_FORMAT; + + + +#endif |