summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/e05a03.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/machine/e05a03.cpp')
-rw-r--r--src/devices/machine/e05a03.cpp39
1 files changed, 16 insertions, 23 deletions
diff --git a/src/devices/machine/e05a03.cpp b/src/devices/machine/e05a03.cpp
index 3b5ca84b556..a3c70907549 100644
--- a/src/devices/machine/e05a03.cpp
+++ b/src/devices/machine/e05a03.cpp
@@ -1,4 +1,4 @@
-// license:GPL-2.0+
+// license:BSD-3-Clause
// copyright-holders:Dirk Best
/***************************************************************************
@@ -16,22 +16,22 @@
DEFINE_DEVICE_TYPE(E05A03, e05a03_device, "e05a03", "Epson E05A03 Gate Array")
-e05a03_device::e05a03_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
- : device_t(mconfig, E05A03, tag, owner, clock),
+e05a03_device::e05a03_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) :
+ device_t(mconfig, E05A03, tag, owner, clock),
m_write_nlq_lp(*this),
m_write_pe_lp(*this),
m_write_reso(*this),
m_write_pe(*this),
- m_read_data(*this),
+ m_read_data(*this, 0),
m_shift(0),
m_busy_leading(0),
m_busy_software(0),
m_nlqlp(0),
m_cndlp(0),
- #if 0
+#if 0
m_pe(0),
m_pelp(0),
- #endif
+#endif
m_printhead(0),
m_pf_motor(0),
m_cr_motor(0)
@@ -44,23 +44,16 @@ e05a03_device::e05a03_device(const machine_config &mconfig, const char *tag, dev
void e05a03_device::device_start()
{
- /* resolve callbacks */
- m_write_nlq_lp.resolve_safe();
- m_write_pe_lp.resolve_safe();
- m_write_reso.resolve_safe();
- m_write_pe.resolve_safe();
- m_read_data.resolve_safe(0);
-
/* register for state saving */
save_item(NAME(m_shift));
save_item(NAME(m_busy_leading));
save_item(NAME(m_busy_software));
save_item(NAME(m_nlqlp));
save_item(NAME(m_cndlp));
- #if 0
+#if 0
save_item(NAME(m_pe));
save_item(NAME(m_pelp));
- #endif
+#endif
save_item(NAME(m_printhead));
save_item(NAME(m_pf_motor));
save_item(NAME(m_cr_motor));
@@ -90,7 +83,7 @@ void e05a03_device::device_reset()
IMPLEMENTATION
***************************************************************************/
-WRITE8_MEMBER( e05a03_device::write )
+void e05a03_device::write(offs_t offset, uint8_t data)
{
logerror("%s: e05a03_w(%02x): %02x\n", machine().describe_context(), offset, data);
@@ -127,7 +120,7 @@ WRITE8_MEMBER( e05a03_device::write )
}
}
-READ8_MEMBER( e05a03_device::read )
+uint8_t e05a03_device::read(offs_t offset)
{
uint8_t result = 0;
@@ -155,25 +148,25 @@ READ8_MEMBER( e05a03_device::read )
}
/* home position signal */
-WRITE_LINE_MEMBER( e05a03_device::home_w )
+void e05a03_device::home_w(int state)
{
}
/* printhead solenoids trigger */
-WRITE_LINE_MEMBER( e05a03_device::fire_w )
+void e05a03_device::fire_w(int state)
{
}
-WRITE_LINE_MEMBER( e05a03_device::strobe_w )
+void e05a03_device::strobe_w(int state)
{
}
-READ_LINE_MEMBER( e05a03_device::busy_r )
+int e05a03_device::busy_r()
{
return 1;
}
-WRITE_LINE_MEMBER( e05a03_device::resi_w )
+void e05a03_device::resi_w(int state)
{
if (!state)
{
@@ -182,7 +175,7 @@ WRITE_LINE_MEMBER( e05a03_device::resi_w )
}
}
-WRITE_LINE_MEMBER( e05a03_device::init_w )
+void e05a03_device::init_w(int state)
{
resi_w(state);
}