summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/formats/c4040_dsk.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/formats/c4040_dsk.h')
-rw-r--r--src/lib/formats/c4040_dsk.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/lib/formats/c4040_dsk.h b/src/lib/formats/c4040_dsk.h
new file mode 100644
index 00000000000..231b961c765
--- /dev/null
+++ b/src/lib/formats/c4040_dsk.h
@@ -0,0 +1,38 @@
+// license:BSD-3-Clause
+// copyright-holders:Curt Coder
+/*********************************************************************
+
+ formats/c4040_dsk.h
+
+ Commodore 4040 sector disk image format
+
+*********************************************************************/
+
+#ifndef C4040_DSK_H_
+#define C4040_DSK_H_
+
+#include "d64_dsk.h"
+
+class c4040_format : public d64_format {
+public:
+ c4040_format();
+
+ virtual const char *name() const;
+ virtual const char *description() const;
+ virtual const char *extensions() const;
+
+protected:
+ 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 c4040_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 c4040_gap2[];
+};
+
+extern const floppy_format_type FLOPPY_C4040_FORMAT;
+
+
+
+#endif