summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/formats/os9_dsk.h
blob: 338e290e07b7bbb7bd98b3cd363c13b99fd4fb56 (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
// license:BSD-3-Clause
// copyright-holders:tim lindner, 68bit
/*********************************************************************

    formats/os9_dsk.h

    OS-9 disk images

*********************************************************************/
#ifndef MAME_FORMATS_OS9_DSK_H
#define MAME_FORMATS_OS9_DSK_H

#pragma once

#include "wd177x_dsk.h"

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

	virtual const char *name() const override;
	virtual const char *description() const override;
	virtual const char *extensions() const override;
	virtual int identify(io_generic *io, uint32_t form_factor) override;
	virtual int find_size(io_generic *io, uint32_t form_factor) override;
	virtual const wd177x_format::format &get_track_format(const format &f, int head, int track) override;

private:
	static const format formats[];
	static const format formats_track0[];
};

extern const floppy_format_type FLOPPY_OS9_FORMAT;

#endif // MAME_FORMATS_OS9_DSK_H