From 194b93093425ccc6598fe888db4005d651d3d6e1 Mon Sep 17 00:00:00 2001 From: cracyc Date: Wed, 30 Apr 2014 04:13:31 +0000 Subject: (mess) radio86: convert to new 8257 and 8275 (nw) i8257: fix off-by-one (nw) --- Unior doesn't quite display properly. Only remaining user of 8257dma is dkong. --- src/mess/video/radio86.c | 113 ----------------------------------------------- 1 file changed, 113 deletions(-) delete mode 100644 src/mess/video/radio86.c (limited to 'src/mess/video/radio86.c') diff --git a/src/mess/video/radio86.c b/src/mess/video/radio86.c deleted file mode 100644 index 97a7ddf3e79..00000000000 --- a/src/mess/video/radio86.c +++ /dev/null @@ -1,113 +0,0 @@ -/*************************************************************************** - - Radio-86RK video driver by Miodrag Milanovic - - 06/03/2008 Preliminary driver. - -****************************************************************************/ - - -#include "emu.h" -#include "video/i8275.h" -#include "includes/radio86.h" - -I8275_DISPLAY_PIXELS(radio86_display_pixels) -{ - radio86_state *state = device->machine().driver_data(); - int i; - const rgb_t *palette = state->m_palette->palette()->entry_list_raw(); - const UINT8 *charmap = state->m_charmap; - UINT8 pixels = charmap[(linecount & 7) + (charcode << 3)] ^ 0xff; - if (vsp) { - pixels = 0; - } - if (lten) { - pixels = 0xff; - } - if (rvv) { - pixels ^= 0xff; - } - for(i=0;i<6;i++) { - bitmap.pix32(y, x + i) = palette[(pixels >> (5-i)) & 1 ? (hlgt ? 2 : 1) : 0]; - } -} - - -I8275_DISPLAY_PIXELS(mikrosha_display_pixels) -{ - radio86_state *state = device->machine().driver_data(); - int i; - const rgb_t *palette = state->m_palette->palette()->entry_list_raw(); - const UINT8 *charmap = state->m_charmap + (state->m_mikrosha_font_page & 1) * 0x400; - UINT8 pixels = charmap[(linecount & 7) + (charcode << 3)] ^ 0xff; - if (vsp) { - pixels = 0; - } - if (lten) { - pixels = 0xff; - } - if (rvv) { - pixels ^= 0xff; - } - for(i=0;i<6;i++) { - bitmap.pix32(y, x + i) = palette[(pixels >> (5-i)) & 1 ? (hlgt ? 2 : 1) : 0]; - } -} - -I8275_DISPLAY_PIXELS(apogee_display_pixels) -{ - radio86_state *state = device->machine().driver_data(); - int i; - const rgb_t *palette = state->m_palette->palette()->entry_list_raw(); - const UINT8 *charmap = state->m_charmap + (gpa & 1) * 0x400; - UINT8 pixels = charmap[(linecount & 7) + (charcode << 3)] ^ 0xff; - if (vsp) { - pixels = 0; - } - if (lten) { - pixels = 0xff; - } - if (rvv) { - pixels ^= 0xff; - } - for(i=0;i<6;i++) { - bitmap.pix32(y, x + i) = palette[(pixels >> (5-i)) & 1 ? (hlgt ? 2 : 1) : 0]; - } -} - -I8275_DISPLAY_PIXELS(partner_display_pixels) -{ - radio86_state *state = device->machine().driver_data(); - int i; - const rgb_t *palette = state->m_palette->palette()->entry_list_raw(); - const UINT8 *charmap = state->m_charmap + 0x400 * (gpa * 2 + hlgt); - UINT8 pixels = charmap[(linecount & 7) + (charcode << 3)] ^ 0xff; - if (vsp) { - pixels = 0; - } - if (lten) { - pixels = 0xff; - } - if (rvv) { - pixels ^= 0xff; - } - for(i=0;i<6;i++) { - bitmap.pix32(y, x + i) = palette[(pixels >> (5-i)) & 1]; - } -} - -static const rgb_t radio86_palette[3] = { - rgb_t(0x00, 0x00, 0x00), // black - rgb_t(0xa0, 0xa0, 0xa0), // white - rgb_t(0xff, 0xff, 0xff) // highlight -}; - -PALETTE_INIT_MEMBER(radio86_state,radio86) -{ - palette.set_pen_colors(0, radio86_palette, ARRAY_LENGTH(radio86_palette)); -} - -void radio86_state::video_start() -{ - m_charmap = memregion("gfx1")->base(); -} -- cgit v1.2.3-70-g09d2