summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/formats/dmv_dsk.cpp
blob: 02469ed74d4cb6d79554fc6f6b7d00e06c43b53d (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
45
46
47
48
49
50
51
52
53
54
55
// license:BSD-3-Clause
// copyright-holders:Olivier Galibert
/*********************************************************************

    formats/dmv_dsk.c

    NCR Decision Mate V format

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

#include <assert.h>

#include "formats/dmv_dsk.h"

dmv_format::dmv_format() : upd765_format(formats)
{
}

const char *dmv_format::name() const
{
	return "dmv";
}

const char *dmv_format::description() const
{
	return "Decision Mate V disk image";
}

const char *dmv_format::extensions() const
{
	return "img";
}

// gap size from hardware reference manual
const dmv_format::format dmv_format::formats[] = {
	{
		floppy_image::FF_525, floppy_image::DSDD, floppy_image::MFM,
		2000,
		9, 40, 2,
		512, {},
		1, {},
		80, 50, 22, 80
	},
	{
		floppy_image::FF_525, floppy_image::DSDD, floppy_image::MFM,
		2000,
		8, 40, 2,
		512, {},
		1, {},
		80, 50, 22, 80
	},
	{}
};

const floppy_format_type FLOPPY_DMV_FORMAT = &floppy_image_format_creator<dmv_format>;