diff options
Diffstat (limited to 'src/mess/video/primo.c')
-rw-r--r-- | src/mess/video/primo.c | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/src/mess/video/primo.c b/src/mess/video/primo.c deleted file mode 100644 index 55332149128..00000000000 --- a/src/mess/video/primo.c +++ /dev/null @@ -1,47 +0,0 @@ -// license:BSD-3-Clause -// copyright-holders:Krzysztof Strzecha -/*************************************************************************** - - primo.c - - Functions to emulate the video hardware of Primo. - - Krzysztof Strzecha - -***************************************************************************/ - -#include "emu.h" -#include "includes/primo.h" - - - -void primo_state::primo_draw_scanline(bitmap_ind16 &bitmap, int primo_scanline) -{ - int x, i; - UINT8 data; - - /* set up scanline */ - UINT16 *scanline = &bitmap.pix16(primo_scanline); - - /* address of current line in Primo video memory */ - const UINT8* primo_video_ram_line = (const UINT8*)m_maincpu->space(AS_PROGRAM).get_read_ptr(m_video_memory_base + 32 * primo_scanline); - - for (x=0; x<256; x+=8) - { - data = primo_video_ram_line[x/8]; - - for (i=0; i<8; i++) - scanline[x+i]=(data & (0x80>>i)) ? 1 : 0; - - } -} - - -UINT32 primo_state::screen_update_primo(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) -{ - int primo_scanline; - - for (primo_scanline=0; primo_scanline<192; primo_scanline++) - primo_draw_scanline( bitmap, primo_scanline); - return 0; -} |