summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/formats/c3040_dsk.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/formats/c3040_dsk.h')
-rw-r--r--src/lib/formats/c3040_dsk.h40
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 &current_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