summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/rx01.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/rx01.cpp')
-rw-r--r--src/mame/machine/rx01.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mame/machine/rx01.cpp b/src/mame/machine/rx01.cpp
index b4cb85869ea..75b4edb0eab 100644
--- a/src/mame/machine/rx01.cpp
+++ b/src/mame/machine/rx01.cpp
@@ -163,7 +163,7 @@ void rx01_device::command_write(UINT16 data)
break;
}
}
- machine().scheduler().timer_set(attotime::from_msec(100), FUNC(command_execution_callback), 0, this);
+ machine().scheduler().timer_set(attotime::from_msec(100), timer_expired_delegate(FUNC(rx01_device::service_command),this));
}
UINT16 rx01_device::status_read()
@@ -177,7 +177,7 @@ void rx01_device::data_write(UINT16 data)
// printf("data_write %04x\n",data);
// data can be written only if TR is set
if (BIT(m_rxcs,7)) m_rxdb = data;
- machine().scheduler().timer_set(attotime::from_msec(100), FUNC(command_execution_callback), 0, this);
+ machine().scheduler().timer_set(attotime::from_msec(100), timer_expired_delegate(FUNC(rx01_device::service_command),this));
}
UINT16 rx01_device::data_read()
@@ -187,7 +187,7 @@ UINT16 rx01_device::data_read()
return m_rxdb;
}
-void rx01_device::service_command()
+TIMER_CALLBACK_MEMBER(rx01_device::service_command)
{
printf("service_command %d\n",m_state);
m_rxes |= m_image[m_unit]->floppy_drive_get_flag_state(FLOPPY_DRIVE_READY) << 7;