summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/formats/thom_dsk.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/formats/thom_dsk.cpp')
-rw-r--r--src/lib/formats/thom_dsk.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/lib/formats/thom_dsk.cpp b/src/lib/formats/thom_dsk.cpp
index ad2e4495ca2..f63b35f06ad 100644
--- a/src/lib/formats/thom_dsk.cpp
+++ b/src/lib/formats/thom_dsk.cpp
@@ -50,6 +50,12 @@ const thomson_525_format::format thomson_525_format::formats[] = {
{}
};
+int thomson_525_format::get_image_offset(const format &f, int head, int track) const
+{
+ return (track + (head ? f.track_count : 0)) * compute_track_size(f);
+}
+
+
thomson_35_format::thomson_35_format() : wd177x_format(formats)
{
@@ -90,5 +96,10 @@ const thomson_35_format::format thomson_35_format::formats[] = {
{}
};
+int thomson_35_format::get_image_offset(const format &f, int head, int track) const
+{
+ return (track + (head ? f.track_count : 0)) * compute_track_size(f);
+}
+
const thomson_525_format FLOPPY_THOMSON_525_FORMAT;
const thomson_35_format FLOPPY_THOMSON_35_FORMAT;