summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/ts816.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/ts816.cpp')
-rw-r--r--src/mame/drivers/ts816.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mame/drivers/ts816.cpp b/src/mame/drivers/ts816.cpp
index 62f2070594c..b6c59cccdb4 100644
--- a/src/mame/drivers/ts816.cpp
+++ b/src/mame/drivers/ts816.cpp
@@ -263,7 +263,8 @@ void ts816_state::init_ts816()
membank("bank2")->configure_entry(1, &rams[0x1e000]);
}
-MACHINE_CONFIG_START(ts816_state::ts816)
+void ts816_state::ts816(machine_config &config)
+{
/* basic machine hardware */
Z80(config, m_maincpu, XTAL(16'000'000) / 4);
m_maincpu->set_addrmap(AS_PROGRAM, &ts816_state::ts816_mem);
@@ -271,8 +272,8 @@ MACHINE_CONFIG_START(ts816_state::ts816)
m_maincpu->set_daisy_config(daisy_chain);
/* video hardware */
- MCFG_DEVICE_ADD(m_terminal, GENERIC_TERMINAL, 0)
- MCFG_GENERIC_TERMINAL_KEYBOARD_CB(PUT(ts816_state, kbd_put))
+ GENERIC_TERMINAL(config, m_terminal, 0);
+ m_terminal->set_keyboard_callback(FUNC(ts816_state::kbd_put));
//z80sio_device& sio0(Z80SIO(config, "sio0", XTAL(16'000'000) / 4));
//sio0.out_int_callback().set_inputline(m_maincpu, INPUT_LINE_IRQ0);
@@ -310,7 +311,7 @@ MACHINE_CONFIG_START(ts816_state::ts816)
z80dma_device& dma(Z80DMA(config, "dma", XTAL(16'000'000) / 4));
//dma.out_busreq_callback().set(FUNC(ts816_state::busreq_w));
dma.out_int_callback().set_inputline(m_maincpu, INPUT_LINE_IRQ0);
-MACHINE_CONFIG_END
+}
/* ROM definition */
ROM_START( ts816 )