summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/pcfx.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/pcfx.cpp')
-rw-r--r--src/mame/drivers/pcfx.cpp47
1 files changed, 24 insertions, 23 deletions
diff --git a/src/mame/drivers/pcfx.cpp b/src/mame/drivers/pcfx.cpp
index 4562f434752..b478d2c5ebd 100644
--- a/src/mame/drivers/pcfx.cpp
+++ b/src/mame/drivers/pcfx.cpp
@@ -417,35 +417,36 @@ uint32_t pcfx_state::screen_update(screen_device &screen, bitmap_rgb32 &bitmap,
}
-MACHINE_CONFIG_START(pcfx_state::pcfx)
- MCFG_DEVICE_ADD( "maincpu", V810, XTAL(21'477'272) )
- MCFG_DEVICE_PROGRAM_MAP( pcfx_mem)
- MCFG_DEVICE_IO_MAP( pcfx_io)
+void pcfx_state::pcfx(machine_config &config)
+{
+ V810(config, m_maincpu, XTAL(21'477'272));
+ m_maincpu->set_addrmap(AS_PROGRAM, &pcfx_state::pcfx_mem);
+ m_maincpu->set_addrmap(AS_IO, &pcfx_state::pcfx_io);
- MCFG_SCREEN_ADD( "screen", RASTER )
- MCFG_SCREEN_UPDATE_DRIVER(pcfx_state, screen_update)
- MCFG_SCREEN_RAW_PARAMS(XTAL(21'477'272), huc6261_device::WPF, 64, 64 + 1024 + 64, huc6261_device::LPF, 18, 18 + 242)
+ screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER));
+ screen.set_screen_update(FUNC(pcfx_state::screen_update));
+ screen.set_raw(XTAL(21'477'272), huc6261_device::WPF, 64, 64 + 1024 + 64, huc6261_device::LPF, 18, 18 + 242);
- MCFG_DEVICE_ADD( "huc6270_a", HUC6270, 0 )
- MCFG_HUC6270_VRAM_SIZE(0x20000)
- MCFG_HUC6270_IRQ_CHANGED_CB(WRITELINE(*this, pcfx_state, irq12_w))
+ huc6270_device &huc6270_a(HUC6270(config, "huc6270_a", 0));
+ huc6270_a.set_vram_size(0x20000);
+ huc6270_a.irq().set(FUNC(pcfx_state::irq12_w));
- MCFG_DEVICE_ADD( "huc6270_b", HUC6270, 0 )
- MCFG_HUC6270_VRAM_SIZE(0x20000)
- MCFG_HUC6270_IRQ_CHANGED_CB(WRITELINE(*this, pcfx_state, irq14_w))
+ huc6270_device &huc6270_b(HUC6270(config, "huc6270_b", 0));
+ huc6270_b.set_vram_size(0x20000);
+ huc6270_b.irq().set(FUNC(pcfx_state::irq14_w));
- MCFG_DEVICE_ADD("huc6261", HUC6261, XTAL(21'477'272))
- MCFG_HUC6261_VDC1("huc6270_a")
- MCFG_HUC6261_VDC2("huc6270_b")
- MCFG_HUC6261_KING("huc6272")
+ HUC6261(config, m_huc6261, XTAL(21'477'272));
+ m_huc6261->set_vdc1_tag("huc6270_a");
+ m_huc6261->set_vdc2_tag("huc6270_b");
+ m_huc6261->set_king_tag("huc6272");
- MCFG_DEVICE_ADD( "huc6272", HUC6272, XTAL(21'477'272) )
- MCFG_HUC6272_IRQ_CHANGED_CB(WRITELINE(*this, pcfx_state, irq13_w))
- MCFG_HUC6272_RAINBOW("huc6271")
+ huc6272_device &huc6272(HUC6272(config, "huc6272", XTAL(21'477'272)));
+ huc6272.irq_changed_callback().set(FUNC(pcfx_state::irq13_w));
+ huc6272.set_rainbow_tag("huc6271");
- MCFG_DEVICE_ADD( "huc6271", HUC6271, XTAL(21'477'272) )
+ HUC6271(config, "huc6271", XTAL(21'477'272));
- MCFG_SOFTWARE_LIST_ADD("cd_list", "pcfx")
+ SOFTWARE_LIST(config, "cd_list").set_original("pcfx");
/* sound hardware */
SPEAKER(config, "lspeaker").front_left();
@@ -457,7 +458,7 @@ MACHINE_CONFIG_START(pcfx_state::pcfx)
huc6230.cdda_cb().set("huc6272", FUNC(huc6272_device::cdda_update));
huc6230.add_route(0, "lspeaker", 1.0);
huc6230.add_route(1, "rspeaker", 1.0);
-MACHINE_CONFIG_END
+}
ROM_START( pcfx )