diff options
author | 2018-08-21 11:12:59 -0400 | |
---|---|---|
committer | 2018-08-21 11:18:42 -0400 | |
commit | 71da8e2ae2521d4c895520c85e45e3ccfdb56e30 (patch) | |
tree | d4cf5356574b4171d15d14d0f10567bcb49b7aff /src/mame/drivers/cortex.cpp | |
parent | b3e306b985c98019687f46fb08cd4f999ec751f7 (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/cortex.cpp')
-rw-r--r-- | src/mame/drivers/cortex.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/mame/drivers/cortex.cpp b/src/mame/drivers/cortex.cpp index 101bb5adf95..c2d1f89f762 100644 --- a/src/mame/drivers/cortex.cpp +++ b/src/mame/drivers/cortex.cpp @@ -198,13 +198,12 @@ MACHINE_CONFIG_START(cortex_state::cortex) control.q_out_cb<6>().set("beeper", FUNC(beep_device::set_state)); /* video hardware */ - tms9929a_device &crtc(TMS9929A(config, "crtc", XTAL(10'738'635) / 2)); - crtc.out_int_line_callback().set_inputline(m_maincpu, INT_9995_INT1); - crtc.out_int_line_callback().append(FUNC(cortex_state::vdp_int_w)); + tms9929a_device &crtc(TMS9929A(config, "crtc", XTAL(10'738'635))); + crtc.set_screen("screen"); + crtc.int_callback().set_inputline(m_maincpu, INT_9995_INT1); + crtc.int_callback().append(FUNC(cortex_state::vdp_int_w)); crtc.set_vram_size(0x4000); - device = &crtc; // FIXME: this line is needed because the following macro is nasty - MCFG_TMS9928A_SCREEN_ADD_PAL( "screen" ) - MCFG_SCREEN_UPDATE_DEVICE( "crtc", tms9928a_device, screen_update ) + SCREEN(config, "screen", SCREEN_TYPE_RASTER); MCFG_DEVICE_ADD("keyboard", GENERIC_KEYBOARD, 0) MCFG_GENERIC_KEYBOARD_CB(PUT(cortex_state, kbd_put)) |