diff --git a/src/w83877tf.c b/src/w83877tf.c index 6d86ad6..bc4dccc 100644 --- a/src/w83877tf.c +++ b/src/w83877tf.c @@ -235,14 +235,20 @@ static void w83877_common_init(int chip, uint16_t base, uint8_t key) w83877tf_global.regs[0x16] = 0x04; else w83877tf_global.regs[0x16] = 0x05; - w83877tf_global.regs[0x20] = 0xfc; - w83877tf_global.regs[0x23] = 0xde; - w83877tf_global.regs[0x24] = 0xfe; - w83877tf_global.regs[0x25] = 0xbe; - w83877tf_global.regs[0x26] = 0x23; - w83877tf_global.regs[0x27] = 0x05; - w83877tf_global.regs[0x28] = 0x43; - w83877tf_global.regs[0x29] = 0x60; + w83877tf_global.regs[0x20] = 0; + w83877tf_global.regs[0x23] = 0; + w83877tf_global.regs[0x24] = 0; + w83877tf_global.regs[0x25] = 0; + w83877tf_global.regs[0x26] = 0; + w83877tf_global.regs[0x27] = 0; + w83877tf_global.regs[0x28] = 0; + w83877tf_global.regs[0x29] = 0; + + fdc_remove(); + lpt1_remove(); + lpt2_remove(); + serial1_remove(); + serial2_remove(); w83877tf_global.chip = chip; w83877tf_global.unlock_key = key;