summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/formats/bw12_dsk.cpp
blob: 06c8be723472b86cc2b9cd42607ff999671e230d (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
56
57
58
59
60
// license:BSD-3-Clause
// copyright-holders:Olivier Galibert
/*********************************************************************

    formats/bw12_dsk.c

    bw12 format

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

#include <assert.h>

#include "formats/bw12_dsk.h"

bw12_format::bw12_format() : upd765_format(formats)
{
}

const char *bw12_format::name() const
{
	return "bw12";
}

const char *bw12_format::description() const
{
	return "Bondwell 12/14 disk image";
}

const char *bw12_format::extensions() const
{
	return "dsk";
}

// Unverified gap sizes
const bw12_format::format bw12_format::formats[] = {
	{ // 180KB BW 12
		floppy_image::FF_525, floppy_image::SSDD, floppy_image::MFM,
		2000, 18, 40, 1, 256, {}, 0, {}, 80, 50, 12, 80
	},
	// format track mfm h=02 n=01 sc=12 gpl=0c d=e5
	{ // 360KB BW 12
		floppy_image::FF_525, floppy_image::DSDD, floppy_image::MFM,
		2000, 18, 40, 2, 256, {}, 0, {}, 80, 50, 12, 80
	},
	{ // SVI-328
		floppy_image::FF_525, floppy_image::SSDD, floppy_image::MFM,
		2000, 17, 40, 1, 256, {}, 0, {}, 80, 50, 22, 80
	},
	{ // SVI-328
		floppy_image::FF_525, floppy_image::DSDD, floppy_image::MFM,
		2000, 17, 40, 2, 256, {}, 0, {}, 80, 50, 22, 80
	},
	{ // Kaypro II
		floppy_image::FF_525, floppy_image::SSDD, floppy_image::MFM,
		2000, 10, 40, 1, 512, {}, 0, {}, 80, 50, 22, 80
	},
	{}
};

const floppy_format_type FLOPPY_BW12_FORMAT = &floppy_image_format_creator<bw12_format>;