summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/compucolor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/compucolor.cpp')
-rw-r--r--src/mame/drivers/compucolor.cpp19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/mame/drivers/compucolor.cpp b/src/mame/drivers/compucolor.cpp
index fea08626904..7be709ab659 100644
--- a/src/mame/drivers/compucolor.cpp
+++ b/src/mame/drivers/compucolor.cpp
@@ -395,17 +395,18 @@ void compucolor2_state::machine_reset()
m_rs232->write_dtr(1);
}
-MACHINE_CONFIG_START(compucolor2_state::compucolor2)
+void compucolor2_state::compucolor2(machine_config &config)
+{
// basic machine hardware
- MCFG_DEVICE_ADD(I8080_TAG, I8080, XTAL(17'971'200)/9)
- MCFG_DEVICE_PROGRAM_MAP(compucolor2_mem)
- MCFG_DEVICE_IO_MAP(compucolor2_io)
- MCFG_DEVICE_IRQ_ACKNOWLEDGE_DRIVER(compucolor2_state,int_ack)
+ I8080(config, m_maincpu, XTAL(17'971'200)/9);
+ m_maincpu->set_addrmap(AS_PROGRAM, &compucolor2_state::compucolor2_mem);
+ m_maincpu->set_addrmap(AS_IO, &compucolor2_state::compucolor2_io);
+ m_maincpu->set_irq_acknowledge_callback(FUNC(compucolor2_state::int_ack));
// video hardware
- MCFG_SCREEN_ADD("screen", RASTER)
- MCFG_SCREEN_RAW_PARAMS(XTAL(17'971'200)/2, 93*6, 0, 64*6, 268, 0, 256)
- MCFG_SCREEN_UPDATE_DRIVER(compucolor2_state, screen_update)
+ screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER));
+ screen.set_raw(XTAL(17'971'200)/2, 93*6, 0, 64*6, 268, 0, 256);
+ screen.set_screen_update(FUNC(compucolor2_state::screen_update));
PALETTE(config, m_palette, palette_device::RGB_3BIT);
@@ -439,7 +440,7 @@ MACHINE_CONFIG_START(compucolor2_state::compucolor2)
// software list
SOFTWARE_LIST(config, "flop_list").set_original("compclr2_flop");
-MACHINE_CONFIG_END
+}
ROM_START( compclr2 )
ROM_REGION( 0x4000, I8080_TAG, 0 )