summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/mtx.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/mtx.cpp')
-rw-r--r--src/mame/drivers/mtx.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/mame/drivers/mtx.cpp b/src/mame/drivers/mtx.cpp
index e322d4ab9c2..6e0f934bd51 100644
--- a/src/mame/drivers/mtx.cpp
+++ b/src/mame/drivers/mtx.cpp
@@ -10,7 +10,6 @@
TODO:
- - cassette
- FDX floppy
- HDX hard disk
- HRX high resolution graphics
@@ -260,9 +259,14 @@ static const z80_daisy_config rs128_daisy_chain[] =
TIMER_DEVICE_CALLBACK_MEMBER(mtx_state::cassette_tick)
{
- int data = ((m_cassette)->input() > +0.0) ? 0 : 1;
+ bool cass_ws = (m_cassette->input() > +0.03) ? 1 : 0;
- m_z80ctc->trg3(data);
+ if (cass_ws != m_cassold)
+ {
+ m_cassold = cass_ws;
+ m_z80ctc->trg3(1);
+ m_z80ctc->trg3(0); // this causes interrupt
+ }
}
/*-------------------------------------------------