Fixed AHA-154xCF FDC port configuration via EEPROM.

This commit is contained in:
OBattler
2021-03-20 19:41:07 +01:00
parent 587d7330e1
commit c54c4c842c

View File

@@ -193,7 +193,7 @@ aha154x_eeprom(x54x_t *dev, uint8_t cmd,uint8_t arg,uint8_t len,uint8_t off,uint
if (dev->type == AHA_154xCF) {
if (dev->fdc_address > 0) {
fdc_remove(dev->fdc);
fdc_set_base(dev->fdc, dev->fdc_address);
fdc_set_base(dev->fdc, (dev->nvr[0] & EE0_ALTFLOP) ? 0x370 : 0x3f0);
}
}
}
@@ -745,6 +745,13 @@ aha_setnvr(x54x_t *dev)
f = NULL;
} else
aha_initnvr(dev);
if (dev->type == AHA_154xCF) {
if (dev->fdc_address > 0) {
fdc_remove(dev->fdc);
fdc_set_base(dev->fdc, (dev->nvr[0] & EE0_ALTFLOP) ? 0x370 : 0x3f0);
}
}
}