summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/formats/thom_dsk.h
blob: 09ea1cbec0c33e139644a8f9321fb22a224d85e6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// license:BSD-3-Clause
// copyright-holders:Olivier Galibert
#ifndef MAME_FORMATS_THOM_DSK_H
#define MAME_FORMATS_THOM_DSK_H

#pragma once

#include "wd177x_dsk.h"

class thomson_525_format : public wd177x_format
{
public:
  thomson_525_format();

  virtual const char *name() const noexcept override;
  virtual const char *description() const noexcept override;
  virtual const char *extensions() const noexcept override;

  int get_image_offset(const format &f, int head, int track) const override;

private:
  static const format formats[];
};

class thomson_35_format : public wd177x_format
{
public:
  thomson_35_format();

  virtual const char *name() const noexcept override;
  virtual const char *description() const noexcept override;
  virtual const char *extensions() const noexcept override;

  int get_image_offset(const format &f, int head, int track) const override;

private:
  static const format formats[];
};


extern const thomson_525_format FLOPPY_THOMSON_525_FORMAT;
extern const thomson_35_format FLOPPY_THOMSON_35_FORMAT;

#endif // MAME_FORMATS_THOM_DSK_H