summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/sacstate.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/sacstate.cpp')
-rw-r--r--src/mame/drivers/sacstate.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/mame/drivers/sacstate.cpp b/src/mame/drivers/sacstate.cpp
index 78fbaa66432..5f0e7a9c912 100644
--- a/src/mame/drivers/sacstate.cpp
+++ b/src/mame/drivers/sacstate.cpp
@@ -133,16 +133,17 @@ void sacstate_state::machine_reset()
m_val = ioport("CONFIG")->read();
}
-MACHINE_CONFIG_START(sacstate_state::sacstate)
+void sacstate_state::sacstate(machine_config &config)
+{
/* basic machine hardware */
- MCFG_DEVICE_ADD("maincpu",I8008, 800000)
- MCFG_DEVICE_PROGRAM_MAP(sacstate_mem)
- MCFG_DEVICE_IO_MAP(sacstate_io)
+ I8008(config, m_maincpu, 800000);
+ m_maincpu->set_addrmap(AS_PROGRAM, &sacstate_state::sacstate_mem);
+ m_maincpu->set_addrmap(AS_IO, &sacstate_state::sacstate_io);
/* video hardware */
- MCFG_DEVICE_ADD(m_terminal, GENERIC_TERMINAL, 0)
- MCFG_GENERIC_TERMINAL_KEYBOARD_CB(PUT(sacstate_state, kbd_put))
-MACHINE_CONFIG_END
+ GENERIC_TERMINAL(config, m_terminal, 0);
+ m_terminal->set_keyboard_callback(FUNC(sacstate_state::kbd_put));
+}
/* ROM definition */
ROM_START( sacstate )