mirror of
https://github.com/holub/mame
synced 2025-05-24 14:56:21 +03:00

BSD licenses to tags since when he copied & pasted them he forgot to remove one instance of my name, which I caught while searching. ;-)
76 lines
1.7 KiB
C
76 lines
1.7 KiB
C
// license:BSD-3-Clause
|
|
// copyright-holders:Olivier Galibert
|
|
/*********************************************************************
|
|
|
|
formats/kaypro_dsk.c
|
|
|
|
Kaypro disk image format
|
|
|
|
There is no inter-sector info on these disks. It is simply a
|
|
dump of the 512 bytes from each sector and track in order.
|
|
It is just like a headerless quickload.
|
|
|
|
*********************************************************************/
|
|
|
|
#include "emu.h"
|
|
#include "formats/kaypro_dsk.h"
|
|
|
|
kayproii_format::kayproii_format() : wd177x_format(formats)
|
|
{
|
|
}
|
|
|
|
const char *kayproii_format::name() const
|
|
{
|
|
return "kaypro";
|
|
}
|
|
|
|
const char *kayproii_format::description() const
|
|
{
|
|
return "Kaypro disk image";
|
|
}
|
|
|
|
const char *kayproii_format::extensions() const
|
|
{
|
|
return "dsk";
|
|
}
|
|
|
|
// gap info is a total guess
|
|
const kayproii_format::format kayproii_format::formats[] = {
|
|
{ /* 191K 13cm double density single sided */
|
|
floppy_image::FF_525, floppy_image::SSDD, floppy_image::MFM,
|
|
2000, 10, 40, 1, 512, {}, 1, {}, 32, 22, 31
|
|
},
|
|
{}
|
|
};
|
|
|
|
kaypro2x_format::kaypro2x_format() : wd177x_format(formats)
|
|
{
|
|
}
|
|
|
|
const char *kaypro2x_format::name() const
|
|
{
|
|
return "kaypro";
|
|
}
|
|
|
|
const char *kaypro2x_format::description() const
|
|
{
|
|
return "Kaypro disk image";
|
|
}
|
|
|
|
const char *kaypro2x_format::extensions() const
|
|
{
|
|
return "dsk";
|
|
}
|
|
|
|
// gap info is a total guess
|
|
const kaypro2x_format::format kaypro2x_format::formats[] = {
|
|
{ /* 382K 13cm double density double sided */
|
|
floppy_image::FF_525, floppy_image::DSDD, floppy_image::MFM,
|
|
2000, 10, 80, 2, 512, {}, 1, {}, 32, 22, 31
|
|
},
|
|
{}
|
|
};
|
|
|
|
const floppy_format_type FLOPPY_KAYPROII_FORMAT = &floppy_image_format_creator<kayproii_format>;
|
|
const floppy_format_type FLOPPY_KAYPRO2X_FORMAT = &floppy_image_format_creator<kaypro2x_format>;
|