apple2: recognize another form of DOS 3.3 in ProDOS order [R. Belmont, Peter Ferrie]

This commit is contained in:
arbee 2018-04-23 19:53:57 -04:00 committed by Vas Crabb
parent 3306c9fb4d
commit 0cdfe25938

View File

@ -617,6 +617,7 @@ bool a2_16sect_format::load(io_generic *io, uint32_t form_factor, floppy_image *
static const unsigned char sos_block1[4] = { 0xc9, 0x20, 0xf0, 0x3e };
static const unsigned char a3a2emul_block1[6] = { 0x8d, 0xd0, 0x03, 0x4c, 0xc7, 0xa4 };
static const unsigned char cpm22_block1[8] = { 0xa2, 0x55, 0xa9, 0x00, 0x9d, 0x00, 0x0d, 0xca };
static const unsigned char subnod_block1[8] = { 0x63, 0xaa, 0xf0, 0x76, 0x8d, 0x63, 0xaa, 0x8e };
io_generic_read(io, sector_data, fpos, 256*16);
@ -662,6 +663,10 @@ bool a2_16sect_format::load(io_generic *io, uint32_t form_factor, floppy_image *
m_prodos_order = true;
} // check for CP/M disks in ProDOS order
else if (!memcmp(cpm22_block1, &sector_data[0x100], 8))
{
m_prodos_order = true;
} // check for subnodule disk
else if (!memcmp(subnod_block1, &sector_data[0x100], 8))
{
m_prodos_order = true;
}