summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/spc1500.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/spc1500.cpp')
-rw-r--r--src/mame/drivers/spc1500.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/mame/drivers/spc1500.cpp b/src/mame/drivers/spc1500.cpp
index e3763f556bd..552787c84ad 100644
--- a/src/mame/drivers/spc1500.cpp
+++ b/src/mame/drivers/spc1500.cpp
@@ -895,11 +895,13 @@ MACHINE_CONFIG_START(spc1500_state::spc1500)
MCFG_SCREEN_UPDATE_DEVICE("mc6845", mc6845_device, screen_update )
MCFG_PALETTE_ADD("palette", 8)
MCFG_PALETTE_INIT_OWNER(spc1500_state, spc)
- MCFG_MC6845_ADD("mc6845", MC6845, "screen", (VDP_CLOCK/48)) //unknown divider
- MCFG_MC6845_SHOW_BORDER_AREA(false)
- MCFG_MC6845_CHAR_WIDTH(8)
- MCFG_MC6845_UPDATE_ROW_CB(spc1500_state, crtc_update_row)
- MCFG_MC6845_RECONFIGURE_CB(spc1500_state, crtc_reconfig)
+ MC6845(config, m_vdg, (VDP_CLOCK/48)); //unknown divider
+ m_vdg->set_screen("screen");
+ m_vdg->set_show_border_area(false);
+ m_vdg->set_char_width(8);
+ m_vdg->set_update_row_callback(FUNC(spc1500_state::crtc_update_row), this);
+ m_vdg->set_reconfigure_callback(FUNC(spc1500_state::crtc_reconfig), this);
+
MCFG_VIDEO_START_OVERRIDE(spc1500_state, spc)
I8255(config, m_pio);