diff options
author | AJR <ajrhacker@users.noreply.github.com> | 2020-04-19 17:29:02 -0400 |
---|---|---|
committer | AJR <ajrhacker@users.noreply.github.com> | 2020-04-19 17:29:04 -0400 |
commit | e73753d2dcc1b80a423fab7960283023cb6059fd (patch) | |
tree | de643c336c8cbb2739f7dd503460404cea0e57b6 /src/devices/bus/isa/cga.cpp | |
parent | ecb6aecf7c9328f0c4ecb134efd6c442495b0cbc (diff) |
cga_m24: Correct CRTC type
Diffstat (limited to 'src/devices/bus/isa/cga.cpp')
-rw-r--r-- | src/devices/bus/isa/cga.cpp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/devices/bus/isa/cga.cpp b/src/devices/bus/isa/cga.cpp index 5b825bac73f..a91d14dd560 100644 --- a/src/devices/bus/isa/cga.cpp +++ b/src/devices/bus/isa/cga.cpp @@ -1696,9 +1696,19 @@ DEFINE_DEVICE_TYPE(ISA8_CGA_M24, isa8_cga_m24_device, "cga_m24", "Olivetti M24 C void isa8_cga_m24_device::device_add_mconfig(machine_config &config) { - isa8_cga_device::device_add_mconfig(config); + screen_device &screen(SCREEN(config, CGA_SCREEN_NAME, SCREEN_TYPE_RASTER)); + screen.set_raw(XTAL(14'318'181), 912, 0, 640, 462, 0, 400); + screen.set_screen_update(FUNC(isa8_cga_m24_device::screen_update)); + + PALETTE(config, m_palette).set_entries(/* CGA_PALETTE_SETS * 16*/ 65536); - subdevice<screen_device>(CGA_SCREEN_NAME)->set_raw(XTAL(14'318'181), 912, 0, 640, 462, 0, 400); + HD6845S(config, m_crtc, XTAL(14'318'181)/16); + m_crtc->set_screen(nullptr); + m_crtc->set_show_border_area(false); + m_crtc->set_char_width(8); + m_crtc->set_update_row_callback(FUNC(isa8_cga_m24_device::crtc_update_row)); + m_crtc->out_hsync_callback().set(FUNC(isa8_cga_m24_device::hsync_changed)); + m_crtc->out_vsync_callback().set(FUNC(isa8_cga_m24_device::vsync_changed)); m_crtc->set_reconfigure_callback(FUNC(isa8_cga_m24_device::reconfigure)); } |