summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/formats/2d_dsk.cpp
blob: 7f304b4eaa04b59d9378c85c339acf56c5268653 (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
// license:GPL-2.0+
// copyright-holders:Dirk Best
/***************************************************************************

    2D

    Disk image format used by early Sharp computers

***************************************************************************/

#include "2d_dsk.h"

_2d_format::_2d_format() : wd177x_format(formats)
{
}

const char *_2d_format::name() const
{
	return "2d";
}

const char *_2d_format::description() const
{
	return "2D disk image";
}

const char *_2d_format::extensions() const
{
	return "2d";
}

const _2d_format::format _2d_format::formats[] =
{
	{
		floppy_image::FF_525, floppy_image::DSDD, floppy_image::MFM,
		2000, 16, 40, 2, 256, {}, 1, {}, 32, 22, 54
	},
	{}
};

const floppy_format_type FLOPPY_2D_FORMAT = &floppy_image_format_creator<_2d_format>;