summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/cr511b.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/machine/cr511b.cpp')
-rw-r--r--src/devices/machine/cr511b.cpp27
1 files changed, 4 insertions, 23 deletions
diff --git a/src/devices/machine/cr511b.cpp b/src/devices/machine/cr511b.cpp
index ea9d772fb92..3ac800c1db7 100644
--- a/src/devices/machine/cr511b.cpp
+++ b/src/devices/machine/cr511b.cpp
@@ -1,4 +1,4 @@
-// license:GPL-2.0+
+// license:BSD-3-Clause
// copyright-holders:Dirk Best
/***************************************************************************
@@ -29,6 +29,7 @@ void cr511b_device::device_add_mconfig(machine_config &config)
CDDA(config, m_cdda);
m_cdda->add_route(0, ":lspeaker", 1.0);
m_cdda->add_route(1, ":rspeaker", 1.0);
+ m_cdda->set_cdrom_tag("cdrom");
}
@@ -50,7 +51,6 @@ cr511b_device::cr511b_device(const machine_config &mconfig, const char *tag, dev
m_dten_handler(*this),
m_scor_handler(*this),
m_xaen_handler(*this),
- m_frame_timer(nullptr),
//m_motor(false),
m_enabled(-1),
m_cmd(-1)
@@ -63,16 +63,6 @@ cr511b_device::cr511b_device(const machine_config &mconfig, const char *tag, dev
void cr511b_device::device_start()
{
- // resolve callbacks
- m_stch_handler.resolve_safe();
- m_sten_handler.resolve_safe();
- m_drq_handler.resolve_safe();
- m_dten_handler.resolve_safe();
- m_scor_handler.resolve_safe();
- m_xaen_handler.resolve_safe();
-
- m_frame_timer = timer_alloc(0, nullptr);
- m_frame_timer->adjust(attotime::never);
}
//-------------------------------------------------
@@ -83,15 +73,6 @@ void cr511b_device::device_reset()
{
}
-//-------------------------------------------------
-// device_timer - device-specific timer events
-//-------------------------------------------------
-
-void cr511b_device::device_timer(emu_timer &timer, device_timer_id tid, int param, void *ptr)
-{
-}
-
-
//**************************************************************************
// IMPLEMENTATION
//**************************************************************************
@@ -105,12 +86,12 @@ void cr511b_device::write(uint8_t data)
{
}
-WRITE_LINE_MEMBER( cr511b_device::enable_w )
+void cr511b_device::enable_w(int state)
{
m_enabled = state;
}
-WRITE_LINE_MEMBER( cr511b_device::cmd_w )
+void cr511b_device::cmd_w(int state)
{
m_cmd = state;
}