summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/formats/apricotpc_dsk.cpp
blob: a956b95ec9034d0a77b78902588d071f3a8811e1 (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
// license: BSD-3-Clause
// copyright-holders: Dirk Best
/***************************************************************************

    ACT Apricot PC/Xi

    Disk image format

    Notes:
    - The system has a WD2797 FDC, but the format is similar to the UPD765
    - Use /M0 to create single sided disks with 70 tracks
    - Use /M1 to create double sided disks with 80 tracks (default)

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

#include "apricotpc_dsk.h"

apricotpc_format::apricotpc_format() : upd765_format(formats)
{
}

const char *apricotpc_format::name() const noexcept
{
	return "apricotpc";
}

const char *apricotpc_format::description() const noexcept
{
	return "ACT Apricot PC/Xi disk image";
}

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

const apricotpc_format::format apricotpc_format::formats[] =
{
	{
		floppy_image::FF_35, floppy_image::SSDD, floppy_image::MFM,
		2000, 9, 70, 1, 512, {}, 1, {}, 80, 50, 22, 84
	},
	{
		floppy_image::FF_35, floppy_image::DSDD, floppy_image::MFM,
		2000, 9, 80, 2, 512, {}, 1, {}, 80, 50, 22, 84
	},
	{}
};

const apricotpc_format FLOPPY_APRICOTPC_FORMAT;