summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices
diff options
context:
space:
mode:
author shattered <shattered@users.noreply.github.com>2020-11-10 01:58:10 +0000
committer GitHub <noreply@github.com>2020-11-10 12:58:10 +1100
commitc73e27e69991355802ace8abae4e2eb1265a666c (patch)
tree4d756e3beccee9917a1abab6964e2ed42a7d435e /src/devices
parent275671e39343b6457b5f3999da91eba29ac7efcb (diff)
agat.cpp: Native keyboard, video and floppy improvements. (#7449)
Diffstat (limited to 'src/devices')
-rw-r--r--src/devices/bus/a2bus/agat_fdc.cpp12
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));