From 123cd2000030ba5e95bbb83581002127cc6ea477 Mon Sep 17 00:00:00 2001 From: Olivier Galibert Date: Sun, 7 Feb 2021 22:50:23 +0100 Subject: apple2gs/iwm: Work --- src/devices/machine/iwm.cpp | 5 +++-- src/mame/drivers/apple2gs.cpp | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/devices/machine/iwm.cpp b/src/devices/machine/iwm.cpp index c408ea6741b..b1a9830cd4c 100644 --- a/src/devices/machine/iwm.cpp +++ b/src/devices/machine/iwm.cpp @@ -219,7 +219,7 @@ u8 iwm_device::control(int offset, u8 data) m_rw = MODE_IDLE; } - if(0) { + if(1) { u8 s = m_control & 0xc0; const char *slot = "?"; if(s == 0x00 && !m_active) @@ -388,6 +388,7 @@ void iwm_device::sync() if(is_sync()) { if(m_rsh >= 0x80) { m_data = m_rsh; + logerror("%s %010d DATAR2 %s %02x\n", cycles_to_time(m_last_sync).to_string(), m_last_sync, m_floppy->tag(), m_data); m_rsh = 0; } else if(m_rsh >= 0x04) { m_data = m_rsh; @@ -398,7 +399,7 @@ void iwm_device::sync() } else if(m_rsh >= 0x80) { m_data = m_rsh; m_async_update = 0; - // logerror("%s %010d DATAR %s %02x\n", cycles_to_time(m_last_sync).to_string(), m_last_sync, m_floppy->tag(), m_data); + logerror("%s %010d DATAR %s %02x\n", cycles_to_time(m_last_sync).to_string(), m_last_sync, m_floppy->tag(), m_data); m_rsh = 0; } break; diff --git a/src/mame/drivers/apple2gs.cpp b/src/mame/drivers/apple2gs.cpp index 6452d3d7385..9146c767bdd 100644 --- a/src/mame/drivers/apple2gs.cpp +++ b/src/mame/drivers/apple2gs.cpp @@ -726,7 +726,7 @@ private: m_slow_counter += 0x0001999a; \ int cycles = (m_slow_counter >> 16) & 0xffff; \ m_slow_counter &= 0xffff; \ - m_maincpu->adjust_icount(-cycles); \ + if(0) m_maincpu->adjust_icount(-cycles); \ } \ } -- cgit v1.2.3