diff options
Diffstat (limited to 'src/mame/drivers/thedealr.cpp')
-rw-r--r-- | src/mame/drivers/thedealr.cpp | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/src/mame/drivers/thedealr.cpp b/src/mame/drivers/thedealr.cpp index 2519435c9fd..17c6c56ee5f 100644 --- a/src/mame/drivers/thedealr.cpp +++ b/src/mame/drivers/thedealr.cpp @@ -75,7 +75,7 @@ private: uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); DECLARE_WRITE_LINE_MEMBER(screen_vblank); - void thedealr_main(address_map &map); + void thedealr(address_map &map); void thedealr_sub(address_map &map); virtual void machine_start() override; @@ -282,7 +282,7 @@ WRITE8_MEMBER(thedealr_state::unk_w) // popmessage("UNK %02x", data); } -void thedealr_state::thedealr_main(address_map &map) +void thedealr_state::thedealr(address_map &map) { map(0x0000, 0x07ff).ram().share("nvram"); @@ -540,16 +540,15 @@ TIMER_DEVICE_CALLBACK_MEMBER(thedealr_state::thedealr_interrupt) m_maincpu->set_input_line(INPUT_LINE_IRQ0, ASSERT_LINE); } -void thedealr_state::thedealr(machine_config &config) -{ - // basic machine hardware - R65C02(config, m_maincpu, XTAL(16'000'000)/8); // 2 MHz? - m_maincpu->set_addrmap(AS_PROGRAM, &thedealr_state::thedealr_main); +MACHINE_CONFIG_START(thedealr_state::thedealr) - TIMER(config, "scantimer").configure_scanline(FUNC(thedealr_state::thedealr_interrupt), "screen", 0, 1); + // basic machine hardware + MCFG_DEVICE_ADD("maincpu", R65C02, XTAL(16'000'000)/8) // 2 MHz? + MCFG_DEVICE_PROGRAM_MAP(thedealr) + MCFG_TIMER_DRIVER_ADD_SCANLINE("scantimer", thedealr_state, thedealr_interrupt, "screen", 0, 1) - R65C02(config, m_subcpu, XTAL(16'000'000)/8); // 2 MHz? - m_subcpu->set_addrmap(AS_PROGRAM, &thedealr_state::thedealr_sub); + MCFG_DEVICE_ADD("subcpu", R65C02, XTAL(16'000'000)/8) // 2 MHz? + MCFG_DEVICE_PROGRAM_MAP(thedealr_sub) NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0); @@ -578,7 +577,7 @@ void thedealr_state::thedealr(machine_config &config) aysnd.port_a_read_callback().set_ioport("DSW2"); aysnd.port_b_read_callback().set_ioport("DSW1"); aysnd.add_route(ALL_OUTPUTS, "mono", 0.50); -} +MACHINE_CONFIG_END /*************************************************************************** |