Coco FDC: Fix MT06640 (possibly also MT06639)

This commit is contained in:
Dirk Best 2017-08-02 23:26:13 +02:00
parent d89c9ef51b
commit 7972f7fb8b

View File

@ -273,11 +273,12 @@ void coco_fdc_device_base::dskreg_w(uint8_t data)
else if (data & 0x40)
drive = 3;
// the motor is always turned on or off for all drives
for (int i = 0; i < 4; i++)
{
floppy_image_device *floppy = m_floppies[i]->get_device();
if (floppy)
floppy->mon_w(((i == drive) && (data & 0x08)) ? CLEAR_LINE : ASSERT_LINE);
floppy->mon_w(BIT(data, 3) ? 0 : 1);
}
head = ((data & 0x40) && (drive != 3)) ? 1 : 0;