summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/apple2e.cpp
diff options
context:
space:
mode:
authorGravatarGravatar mooglyguy <therealmogminer@gmail.com>2018-09-05 09:44:34 +0200
committerGravatarGravatar mooglyguy <therealmogminer@gmail.com>2018-09-05 09:44:45 +0200
commit2e3ccabfc09989aacb8209d990706386cba81fda (patch) (github)
tree436f30436c39592a8e4bf3443cbc79cb195a462e /src/mame/drivers/apple2e.cpp
parent1e41f12ad2f7cb7e0055fe9643ffb3e363e81850 (diff)
downloadmame-2e3ccabfc09989aacb8209d990706386cba81fda.tar.bz2
mame-2e3ccabfc09989aacb8209d990706386cba81fda.zip
A better way of doing scanline timers, nw
Diffstat (limited to 'src/mame/drivers/apple2e.cpp')
-rw-r--r--src/mame/drivers/apple2e.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/mame/drivers/apple2e.cpp b/src/mame/drivers/apple2e.cpp
index 69c438f3e0b..40f39bd9fd3 100644
--- a/src/mame/drivers/apple2e.cpp
+++ b/src/mame/drivers/apple2e.cpp
@@ -3975,15 +3975,12 @@ static void apple2eaux_cards(device_slot_interface &device)
device.option_add("rw3", A2EAUX_RAMWORKS3); /* Applied Engineering RamWorks III */
}
-#define NOMCFG_TIMER_DRIVER_ADD_SCANLINE(_class, _callback, _screen, _first_vpos, _increment) \
- configure_scanline(timer_device::expired_delegate(&_class::_callback, #_class "::" #_callback, nullptr, (_class *)nullptr), _screen, _first_vpos, _increment);
-
MACHINE_CONFIG_START(apple2e_state::apple2e)
/* basic machine hardware */
M6502(config, m_maincpu, 1021800);
m_maincpu->set_addrmap(AS_PROGRAM, &apple2e_state::apple2e_map);
TIMER(config, m_scantimer, 0);
- m_scantimer->NOMCFG_TIMER_DRIVER_ADD_SCANLINE(apple2e_state, apple2_interrupt, "screen", 0, 1)
+ m_scantimer->configure_scanline(FUNC(apple2e_state::apple2_interrupt), "screen", 0, 1);
config.m_minimum_quantum = attotime::from_hz(60);
APPLE2_VIDEO(config, m_video, XTAL(14'318'181));