From 8b46bbe1af056c0d2944f2e8e05d6eff2302146c Mon Sep 17 00:00:00 2001 From: SarahW Date: Sat, 18 May 2019 15:48:43 +0100 Subject: [PATCH] Better FDC enabling/disabling on W83877*. Fixes floppy drive on FIC VA-503+ in Windows 9x. --- src/w83877tf.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/w83877tf.c b/src/w83877tf.c index 70d6ff2..6d86ad6 100644 --- a/src/w83877tf.c +++ b/src/w83877tf.c @@ -167,9 +167,7 @@ static void w83877tf_write_3fx(uint16_t port, uint8_t val, void *p) case 0x3f0: /*Enable/index register*/ if (val == 0xaa) { - fdc_remove(); - if (w83877tf->enable_regs && w83877tf->regs[0x20] >= 0x40) - fdc_add(); + fdc_3f1_enable(1); w83877tf->enable_regs = 0; } else if (!w83877tf->enable_regs) @@ -180,7 +178,7 @@ static void w83877tf_write_3fx(uint16_t port, uint8_t val, void *p) /*The FDC conflicts with the 3fx config registers, so disable it when enabling config registers*/ if (w83877tf->enable_regs) - fdc_remove(); + fdc_3f1_enable(0); } else w83877tf->index = val;