diff options
Diffstat (limited to 'src/mame/machine/m24_z8000.cpp')
-rw-r--r-- | src/mame/machine/m24_z8000.cpp | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/mame/machine/m24_z8000.cpp b/src/mame/machine/m24_z8000.cpp index 1a89c3d9943..99d8b78428a 100644 --- a/src/mame/machine/m24_z8000.cpp +++ b/src/mame/machine/m24_z8000.cpp @@ -68,13 +68,14 @@ void m24_z8000_device::z8000_io(address_map &map) map(0x80c1, 0x80c1).rw(FUNC(m24_z8000_device::handshake_r), FUNC(m24_z8000_device::handshake_w)); } -MACHINE_CONFIG_START(m24_z8000_device::device_add_mconfig) - MCFG_DEVICE_ADD("z8000", Z8001, XTAL(8'000'000)/2) - MCFG_DEVICE_PROGRAM_MAP(z8000_prog) - MCFG_DEVICE_DATA_MAP(z8000_data) - MCFG_DEVICE_IO_MAP(z8000_io) - MCFG_DEVICE_IRQ_ACKNOWLEDGE_DRIVER(m24_z8000_device, int_cb) - MCFG_Z8000_MO(WRITELINE(*this, m24_z8000_device, mo_w)) +void m24_z8000_device::device_add_mconfig(machine_config &config) +{ + Z8001(config, m_z8000, XTAL(8'000'000)/2); + m_z8000->set_addrmap(AS_PROGRAM, &m24_z8000_device::z8000_prog); + m_z8000->set_addrmap(AS_DATA, &m24_z8000_device::z8000_data); + m_z8000->set_addrmap(AS_IO, &m24_z8000_device::z8000_io); + m_z8000->set_irq_acknowledge_callback(FUNC(m24_z8000_device::int_cb)); + m_z8000->mo().set(FUNC(m24_z8000_device::mo_w)); pit8253_device &pit8253(PIT8253(config, "pit8253", 0)); pit8253.set_clk<0>(19660000/15); //8251 @@ -85,7 +86,7 @@ MACHINE_CONFIG_START(m24_z8000_device::device_add_mconfig) pit8253.out_handler<2>().set(FUNC(m24_z8000_device::timer_irq_w)); I8251(config, "i8251", 0); -MACHINE_CONFIG_END +} const uint8_t m24_z8000_device::pmem_table[16][4] = {{0, 1, 2, 3}, {1, 2, 3, 255}, {4, 5, 6, 7}, {46, 40, 41, 42}, |