diff options
Diffstat (limited to 'src/mame/drivers/cortex.cpp')
-rw-r--r-- | src/mame/drivers/cortex.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mame/drivers/cortex.cpp b/src/mame/drivers/cortex.cpp index f685fbbc61c..bdecceeafdb 100644 --- a/src/mame/drivers/cortex.cpp +++ b/src/mame/drivers/cortex.cpp @@ -196,10 +196,11 @@ MACHINE_CONFIG_START(cortex_state::cortex) MCFG_ADDRESSABLE_LATCH_Q6_OUT_CB(WRITELINE("beeper", beep_device, set_state)) /* video hardware */ - MCFG_DEVICE_ADD( "crtc", TMS9929A, XTAL(10'738'635) / 2 ) - MCFG_TMS9928A_OUT_INT_LINE_CB(INPUTLINE("maincpu", INT_9995_INT1)) - MCFG_DEVCB_CHAIN_OUTPUT(WRITELINE(*this, cortex_state, vdp_int_w)) - MCFG_TMS9928A_VRAM_SIZE(0x4000) + 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)); + 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 ) |