summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/svi3x8/slot/sv806.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/svi3x8/slot/sv806.cpp')
-rw-r--r--src/devices/bus/svi3x8/slot/sv806.cpp27
1 files changed, 15 insertions, 12 deletions
diff --git a/src/devices/bus/svi3x8/slot/sv806.cpp b/src/devices/bus/svi3x8/slot/sv806.cpp
index 833bcc546be..80b775108d0 100644
--- a/src/devices/bus/svi3x8/slot/sv806.cpp
+++ b/src/devices/bus/svi3x8/slot/sv806.cpp
@@ -39,18 +39,21 @@ const tiny_rom_entry *sv806_device::device_rom_region() const
// device_add_mconfig - add device configuration
//-------------------------------------------------
-MACHINE_CONFIG_START(sv806_device::device_add_mconfig)
- MCFG_SCREEN_ADD_MONOCHROME("80col", RASTER, rgb_t::green())
- MCFG_SCREEN_RAW_PARAMS((XTAL(12'000'000) / 6) * 8, 864, 0, 640, 317, 0, 192)
- MCFG_SCREEN_UPDATE_DEVICE("crtc", hd6845_device, screen_update)
-
- MCFG_PALETTE_ADD_MONOCHROME("palette")
-
- MCFG_MC6845_ADD("crtc", HD6845, "80col", XTAL(12'000'000) / 6)
- MCFG_MC6845_SHOW_BORDER_AREA(false)
- MCFG_MC6845_CHAR_WIDTH(8)
- MCFG_MC6845_UPDATE_ROW_CB(sv806_device, crtc_update_row)
-MACHINE_CONFIG_END
+void sv806_device::device_add_mconfig(machine_config &config)
+{
+ screen_device &screen(SCREEN(config, "80col", SCREEN_TYPE_RASTER));
+ screen.set_color(rgb_t::green());
+ screen.set_raw((XTAL(12'000'000) / 6) * 8, 864, 0, 640, 317, 0, 192);
+ screen.set_screen_update("crtc", FUNC(hd6845_device::screen_update));
+
+ PALETTE(config, m_palette, 2).set_init("palette", FUNC(palette_device::palette_init_monochrome));
+
+ HD6845(config, m_crtc, XTAL(12'000'000) / 6);
+ m_crtc->set_screen("80col");
+ m_crtc->set_show_border_area(false);
+ m_crtc->set_char_width(8);
+ m_crtc->set_update_row_callback(FUNC(sv806_device::crtc_update_row), this);
+}
//**************************************************************************