diff options
Diffstat (limited to 'src/mame/drivers/magtouch.cpp')
-rw-r--r-- | src/mame/drivers/magtouch.cpp | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/src/mame/drivers/magtouch.cpp b/src/mame/drivers/magtouch.cpp index 5932ca4934d..5be7b28db81 100644 --- a/src/mame/drivers/magtouch.cpp +++ b/src/mame/drivers/magtouch.cpp @@ -193,16 +193,17 @@ void magtouch_state::magtouch_sb_conf(device_t *device) MCFG_DEVICE_SLOT_INTERFACE(pc_joysticks, nullptr, true) // remove joystick } -MACHINE_CONFIG_START(magtouch_state::magtouch) +void magtouch_state::magtouch(machine_config &config) +{ /* basic machine hardware */ - MCFG_DEVICE_ADD("maincpu", I386, 14318180*2) /* I386 ?? Mhz */ - MCFG_DEVICE_PROGRAM_MAP(magtouch_map) - MCFG_DEVICE_IO_MAP(magtouch_io) - MCFG_DEVICE_IRQ_ACKNOWLEDGE_DEVICE("pic8259_1", pic8259_device, inta_cb) + I386(config, m_maincpu, 14318180*2); /* I386 ?? Mhz */ + m_maincpu->set_addrmap(AS_PROGRAM, &magtouch_state::magtouch_map); + m_maincpu->set_addrmap(AS_IO, &magtouch_state::magtouch_io); + m_maincpu->set_irq_acknowledge_callback("pic8259_1", FUNC(pic8259_device::inta_cb)); /* video hardware */ pcvideo_trident_vga(config); - MCFG_DEVICE_REPLACE("vga", TVGA9000_VGA, 0) + TVGA9000_VGA(config.replace(), "vga", 0); pcat_common(config); @@ -230,10 +231,10 @@ MACHINE_CONFIG_START(magtouch_state::magtouch) m_isabus->drq3_callback().set("dma8237_1", FUNC(am9517a_device::dreq3_w)); // FIXME: determine ISA bus clock - MCFG_DEVICE_ADD("isa1", ISA8_SLOT, 0, "isa", magtouch_isa8_cards, "sb15", true) - MCFG_SLOT_OPTION_DEVICE_INPUT_DEFAULTS("sb15", magtouch_sb_def) - MCFG_SLOT_OPTION_MACHINE_CONFIG("sb15", magtouch_sb_conf) -MACHINE_CONFIG_END + isa8_slot_device &isa1(ISA8_SLOT(config, "isa1", 0, m_isabus, magtouch_isa8_cards, "sb15", true)); + isa1.set_option_device_input_defaults("sb15", DEVICE_INPUT_DEFAULTS_NAME(magtouch_sb_def)); + isa1.set_option_machine_config("sb15", magtouch_sb_conf); +} ROM_START(magtouch) |