diff options
Diffstat (limited to 'src/mame/drivers/imsai.cpp')
-rw-r--r-- | src/mame/drivers/imsai.cpp | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/mame/drivers/imsai.cpp b/src/mame/drivers/imsai.cpp index 327d326ddc6..589d97fbeb6 100644 --- a/src/mame/drivers/imsai.cpp +++ b/src/mame/drivers/imsai.cpp @@ -105,18 +105,19 @@ void imsai_state::machine_reset() m_term_data = 0; } -MACHINE_CONFIG_START(imsai_state::imsai) +void imsai_state::imsai(machine_config &config) +{ /* basic machine hardware */ - MCFG_DEVICE_ADD("maincpu",I8085A, XTAL(6'000'000)) - MCFG_DEVICE_PROGRAM_MAP(imsai_mem) - MCFG_DEVICE_IO_MAP(imsai_io) + I8085A(config, m_maincpu, XTAL(6'000'000)); + m_maincpu->set_addrmap(AS_PROGRAM, &imsai_state::imsai_mem); + m_maincpu->set_addrmap(AS_IO, &imsai_state::imsai_io); /* video hardware */ - MCFG_DEVICE_ADD(m_terminal, GENERIC_TERMINAL, 0) - MCFG_GENERIC_TERMINAL_KEYBOARD_CB(PUT(imsai_state, kbd_put)) + GENERIC_TERMINAL(config, m_terminal, 0); + m_terminal->set_keyboard_callback(FUNC(imsai_state::kbd_put)); /* Devices */ - MCFG_DEVICE_ADD("uart", I8251, 0) + I8251(config, "uart", 0); PIT8253(config, m_pit, 0); m_pit->set_clk<0>(6_MHz_XTAL / 3); // Timer 0: baud rate gen for 8251 @@ -124,7 +125,7 @@ MACHINE_CONFIG_START(imsai_state::imsai) m_pit->out_handler<0>().append("uart", FUNC(i8251_device::write_rxc)); m_pit->set_clk<1>(6_MHz_XTAL / 3); // Timer 1: user m_pit->set_clk<2>(6_MHz_XTAL / 3); // Timer 2: user -MACHINE_CONFIG_END +} /* ROM definition */ ROM_START( imsai ) |