diff options
author | Ivan Vangelista <mesgnet@yahoo.it> | 2019-02-19 18:16:28 +0100 |
---|---|---|
committer | Ivan Vangelista <mesgnet@yahoo.it> | 2019-02-19 18:16:28 +0100 |
commit | 7ebde83736ae780aeb54b8262fedde528aacb529 (patch) | |
tree | 69495bc0a86e5aa2d0cd16230947594e89c3193c /src/mame/drivers/thedealr.cpp | |
parent | e49c52f54c3dcec1a86d73f7ec7dbc8881d844d2 (diff) |
mame\drivers: removed MCFG and MACHINE_CONFIG macros from most drivers starting with t (nw)
Diffstat (limited to 'src/mame/drivers/thedealr.cpp')
-rw-r--r-- | src/mame/drivers/thedealr.cpp | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/src/mame/drivers/thedealr.cpp b/src/mame/drivers/thedealr.cpp index 8b3c140d685..2519435c9fd 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(address_map &map); + void thedealr_main(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(address_map &map) +void thedealr_state::thedealr_main(address_map &map) { map(0x0000, 0x07ff).ram().share("nvram"); @@ -540,15 +540,16 @@ TIMER_DEVICE_CALLBACK_MEMBER(thedealr_state::thedealr_interrupt) m_maincpu->set_input_line(INPUT_LINE_IRQ0, ASSERT_LINE); } -MACHINE_CONFIG_START(thedealr_state::thedealr) - +void thedealr_state::thedealr(machine_config &config) +{ // basic machine hardware - MCFG_DEVICE_ADD("maincpu", R65C02, XTAL(16'000'000)/8) // 2 MHz? - MCFG_DEVICE_PROGRAM_MAP(thedealr) + R65C02(config, m_maincpu, XTAL(16'000'000)/8); // 2 MHz? + m_maincpu->set_addrmap(AS_PROGRAM, &thedealr_state::thedealr_main); + TIMER(config, "scantimer").configure_scanline(FUNC(thedealr_state::thedealr_interrupt), "screen", 0, 1); - MCFG_DEVICE_ADD("subcpu", R65C02, XTAL(16'000'000)/8) // 2 MHz? - MCFG_DEVICE_PROGRAM_MAP(thedealr_sub) + R65C02(config, m_subcpu, XTAL(16'000'000)/8); // 2 MHz? + m_subcpu->set_addrmap(AS_PROGRAM, &thedealr_state::thedealr_sub); NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0); @@ -577,7 +578,7 @@ MACHINE_CONFIG_START(thedealr_state::thedealr) 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 +} /*************************************************************************** |