summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/centronics/epson_lx800.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/centronics/epson_lx800.cpp')
-rw-r--r--src/devices/bus/centronics/epson_lx800.cpp22
1 files changed, 10 insertions, 12 deletions
diff --git a/src/devices/bus/centronics/epson_lx800.cpp b/src/devices/bus/centronics/epson_lx800.cpp
index d9f9a056e33..f0b4dd4a968 100644
--- a/src/devices/bus/centronics/epson_lx800.cpp
+++ b/src/devices/bus/centronics/epson_lx800.cpp
@@ -66,7 +66,8 @@ void epson_lx800_device::lx800_mem(address_map &map)
// device_add_mconfig - add device configuration
//-------------------------------------------------
-MACHINE_CONFIG_START(epson_lx800_device::device_add_mconfig)
+void epson_lx800_device::device_add_mconfig(machine_config &config)
+{
/* basic machine hardware */
upd7810_device &upd(UPD7810(config, m_maincpu, 14.7456_MHz_XTAL));
upd.set_addrmap(AS_PROGRAM, &epson_lx800_device::lx800_mem);
@@ -82,7 +83,7 @@ MACHINE_CONFIG_START(epson_lx800_device::device_add_mconfig)
upd.an4_func().set(FUNC(epson_lx800_device::an4_r));
upd.an5_func().set(FUNC(epson_lx800_device::an5_r));
- MCFG_DEFAULT_LAYOUT(layout_lx800)
+ config.set_default_layout(layout_lx800);
/* audio hardware */
SPEAKER(config, "mono").front_center();
@@ -90,12 +91,12 @@ MACHINE_CONFIG_START(epson_lx800_device::device_add_mconfig)
m_beep->add_route(ALL_OUTPUTS, "mono", 0.05);
/* gate array */
- MCFG_DEVICE_ADD("ic3b", E05A03, 0)
- MCFG_E05A03_PE_LP_CALLBACK(WRITELINE(*this, epson_lx800_device, paperempty_led_w))
- MCFG_E05A03_RESO_CALLBACK(WRITELINE(*this, epson_lx800_device, reset_w))
- MCFG_E05A03_PE_CALLBACK(WRITELINE(*this, epson_lx800_device, centronics_pe_w))
- MCFG_E05A03_DATA_CALLBACK(READ8(*this, epson_lx800_device, centronics_data_r))
-MACHINE_CONFIG_END
+ e05a03_device &ic3b(E05A03(config, "ic3b", 0));
+ ic3b.pe_lp_wr_callback().set(FUNC(epson_lx800_device::paperempty_led_w));
+ ic3b.reso_wr_callback().set(FUNC(epson_lx800_device::reset_w));
+ ic3b.pe_wr_callback().set(FUNC(epson_lx800_device::centronics_pe_w));
+ ic3b.data_rd_callback().set(FUNC(epson_lx800_device::centronics_data_r));
+}
//-------------------------------------------------
@@ -184,10 +185,7 @@ ioport_constructor epson_lx800_device::device_input_ports() const
//-------------------------------------------------
epson_lx800_device::epson_lx800_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) :
- device_t(mconfig, EPSON_LX800, tag, owner, clock),
- device_centronics_peripheral_interface(mconfig, *this),
- m_maincpu(*this, "maincpu"),
- m_beep(*this, "beeper")
+ epson_lx800_device(mconfig, EPSON_LX800, tag, owner, clock)
{
}