diff options
Diffstat (limited to 'src/devices/bus/a2bus/agat_fdc.cpp')
-rw-r--r-- | src/devices/bus/a2bus/agat_fdc.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/devices/bus/a2bus/agat_fdc.cpp b/src/devices/bus/a2bus/agat_fdc.cpp index bc995dde0bb..33b4ff87339 100644 --- a/src/devices/bus/a2bus/agat_fdc.cpp +++ b/src/devices/bus/a2bus/agat_fdc.cpp @@ -384,7 +384,7 @@ uint8_t a2bus_agat_fdc_device::read_cnxx(uint8_t offset) */ uint8_t a2bus_agat_fdc_device::d14_i_b() { - u8 data = 0x3; + u8 data = 0x0; // all signals active low if (floppy) @@ -421,6 +421,16 @@ void a2bus_agat_fdc_device::d14_o_c(uint8_t data) { m_unit = BIT(data, 3); + switch (m_unit) + { + case 0: + floppy = floppy0 ? floppy0->get_device() : nullptr; + break; + case 1: + floppy = floppy1 ? floppy1->get_device() : nullptr; + break; + } + if (floppy) { floppy->dir_w(!BIT(data, 2)); |