summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/64h156.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/machine/64h156.cpp')
-rw-r--r--src/devices/machine/64h156.cpp27
1 files changed, 11 insertions, 16 deletions
diff --git a/src/devices/machine/64h156.cpp b/src/devices/machine/64h156.cpp
index 2e9d70b2c5f..6613b34ab69 100644
--- a/src/devices/machine/64h156.cpp
+++ b/src/devices/machine/64h156.cpp
@@ -86,13 +86,8 @@ c64h156_device::c64h156_device(const machine_config &mconfig, const char *tag, d
void c64h156_device::device_start()
{
- // resolve callbacks
- m_write_atn.resolve_safe();
- m_write_sync.resolve_safe();
- m_write_byte.resolve_safe();
-
// allocate timer
- t_gen = timer_alloc(0);
+ t_gen = timer_alloc(FUNC(c64h156_device::update_tick), this);
// register for state saving
save_item(NAME(m_mtr));
@@ -130,10 +125,10 @@ void c64h156_device::device_reset()
//-------------------------------------------------
-// device_timer - handler timer events
+// update_tick - pump the device life cycle
//-------------------------------------------------
-void c64h156_device::device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr)
+TIMER_CALLBACK_MEMBER(c64h156_device::update_tick)
{
live_sync();
live_run();
@@ -455,7 +450,7 @@ void c64h156_device::yb_w(uint8_t data)
// test_w - test write
//-------------------------------------------------
-WRITE_LINE_MEMBER( c64h156_device::test_w )
+void c64h156_device::test_w(int state)
{
}
@@ -464,7 +459,7 @@ WRITE_LINE_MEMBER( c64h156_device::test_w )
// accl_w -
//-------------------------------------------------
-WRITE_LINE_MEMBER( c64h156_device::accl_w )
+void c64h156_device::accl_w(int state)
{
if (m_accl != state)
{
@@ -481,7 +476,7 @@ WRITE_LINE_MEMBER( c64h156_device::accl_w )
// ted_w -
//-------------------------------------------------
-WRITE_LINE_MEMBER( c64h156_device::ted_w )
+void c64h156_device::ted_w(int state)
{
if (m_ted != state)
{
@@ -502,7 +497,7 @@ WRITE_LINE_MEMBER( c64h156_device::ted_w )
// mtr_w - motor write
//-------------------------------------------------
-WRITE_LINE_MEMBER( c64h156_device::mtr_w )
+void c64h156_device::mtr_w(int state)
{
if (m_mtr != state)
{
@@ -529,7 +524,7 @@ WRITE_LINE_MEMBER( c64h156_device::mtr_w )
// oe_w - output enable write
//-------------------------------------------------
-WRITE_LINE_MEMBER( c64h156_device::oe_w )
+void c64h156_device::oe_w(int state)
{
if (m_oe != state)
{
@@ -551,7 +546,7 @@ WRITE_LINE_MEMBER( c64h156_device::oe_w )
// soe_w - SO enable write
//-------------------------------------------------
-WRITE_LINE_MEMBER( c64h156_device::soe_w )
+void c64h156_device::soe_w(int state)
{
if (m_soe != state)
{
@@ -568,7 +563,7 @@ WRITE_LINE_MEMBER( c64h156_device::soe_w )
// atni_w - serial attention input write
//-------------------------------------------------
-WRITE_LINE_MEMBER( c64h156_device::atni_w )
+void c64h156_device::atni_w(int state)
{
LOG("ATNI %u\n", state);
@@ -582,7 +577,7 @@ WRITE_LINE_MEMBER( c64h156_device::atni_w )
// atna_w - serial attention acknowledge write
//-------------------------------------------------
-WRITE_LINE_MEMBER( c64h156_device::atna_w )
+void c64h156_device::atna_w(int state)
{
LOG("ATNA %u\n", state);