summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/tutor.cpp
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2018-08-21 11:12:59 -0400
committer AJR <ajrhacker@users.noreply.github.com>2018-08-21 11:18:42 -0400
commit71da8e2ae2521d4c895520c85e45e3ccfdb56e30 (patch)
treed4cf5356574b4171d15d14d0f10567bcb49b7aff /src/mame/drivers/tutor.cpp
parentb3e306b985c98019687f46fb08cd4f999ec751f7 (diff)
tms9928a: Configuration modernization (nw)
- Replace callback configuration macros with devcb3 (slightly shortening function names in the process) - Change configured clock to be twice the dot clock (as on hardware), rather than equal to it - Allow the VDP to configure the screen in device_config_complete (taking into account 60 Hz/50 Hz variations), making MCFG_TMS9928A_SCREEN_ADD_NTSC/_PAL macros obsolete - Add notes on clock outputs msx.cpp: Use a template to simplify configuration of all the MSX1 VDP variants (nw) bbcbc: Increase clock speed to a more plausible rate WARNING: Withheld for now due to Vas's quibbles with the similar approach used in 577f198564faff49f2636600598a15644db354bb.
Diffstat (limited to 'src/mame/drivers/tutor.cpp')
-rw-r--r--src/mame/drivers/tutor.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mame/drivers/tutor.cpp b/src/mame/drivers/tutor.cpp
index dfb2aea74fe..1878f588a1e 100644
--- a/src/mame/drivers/tutor.cpp
+++ b/src/mame/drivers/tutor.cpp
@@ -753,10 +753,10 @@ MACHINE_CONFIG_START(tutor_state::tutor)
m_maincpu->set_addrmap(AS_IO, &tutor_state::tutor_io);
/* video hardware */
- MCFG_DEVICE_ADD( "tms9928a", TMS9928A, XTAL(10'738'635) / 2 )
- MCFG_TMS9928A_VRAM_SIZE(0x4000)
- MCFG_TMS9928A_SCREEN_ADD_NTSC( "screen" )
- MCFG_SCREEN_UPDATE_DEVICE( "tms9928a", tms9928a_device, screen_update )
+ tms9928a_device &vdp(TMS9928A(config, "tms9928a", XTAL(10'738'635)));
+ vdp.set_screen("screen");
+ vdp.set_vram_size(0x4000);
+ SCREEN(config, "screen", SCREEN_TYPE_RASTER);
/* sound */
SPEAKER(config, "mono").front_center();