summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/mccpm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/mccpm.cpp')
-rw-r--r--src/mame/drivers/mccpm.cpp17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/mame/drivers/mccpm.cpp b/src/mame/drivers/mccpm.cpp
index abff5e29dcb..721265346df 100644
--- a/src/mame/drivers/mccpm.cpp
+++ b/src/mame/drivers/mccpm.cpp
@@ -80,11 +80,12 @@ void mccpm_state::machine_reset()
memcpy(m_p_ram, bios, 0x1000);
}
-MACHINE_CONFIG_START(mccpm_state::mccpm)
+void mccpm_state::mccpm(machine_config &config)
+{
/* basic machine hardware */
- MCFG_DEVICE_ADD("maincpu",Z80, XTAL(4'000'000))
- MCFG_DEVICE_PROGRAM_MAP(mccpm_mem)
- MCFG_DEVICE_IO_MAP(mccpm_io)
+ Z80(config, m_maincpu, XTAL(4'000'000));
+ m_maincpu->set_addrmap(AS_PROGRAM, &mccpm_state::mccpm_mem);
+ m_maincpu->set_addrmap(AS_IO, &mccpm_state::mccpm_io);
/* Devices */
clock_device &uart_clock(CLOCK(config, "uart_clock", 153600));
@@ -97,12 +98,12 @@ MACHINE_CONFIG_START(mccpm_state::mccpm)
sio.out_dtra_callback().set("rs232", FUNC(rs232_port_device::write_dtr));
sio.out_rtsa_callback().set("rs232", FUNC(rs232_port_device::write_rts));
- MCFG_DEVICE_ADD("rs232", RS232_PORT, default_rs232_devices, "terminal")
- MCFG_RS232_RXD_HANDLER(WRITELINE("sio", z80sio_device, rxa_w))
- MCFG_RS232_CTS_HANDLER(WRITELINE("sio", z80sio_device, ctsa_w))
+ rs232_port_device &rs232(RS232_PORT(config, "rs232", default_rs232_devices, "terminal"));
+ rs232.rxd_handler().set("sio", FUNC(z80sio_device::rxa_w));
+ rs232.cts_handler().set("sio", FUNC(z80sio_device::ctsa_w));
Z80PIO(config, "pio", XTAL(4'000'000));
-MACHINE_CONFIG_END
+}
/* ROM definition */
ROM_START( mccpm )