diff options
author | 2015-09-30 17:21:14 +0200 | |
---|---|---|
committer | 2015-09-30 17:21:14 +0200 | |
commit | 1fc48ce120a376c288daeeed98daccecf1b60d7b (patch) | |
tree | 72cefcede17f3a27fa8256b43bfac9756db82312 /src/mess/video/pk8020.c | |
parent | 87a576c55501bd7125b51ca786a010229669df0e (diff) |
move mess into mame (nw)
Diffstat (limited to 'src/mess/video/pk8020.c')
-rw-r--r-- | src/mess/video/pk8020.c | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/src/mess/video/pk8020.c b/src/mess/video/pk8020.c deleted file mode 100644 index 31088bb6a53..00000000000 --- a/src/mess/video/pk8020.c +++ /dev/null @@ -1,59 +0,0 @@ -// license:BSD-3-Clause -// copyright-holders:Miodrag Milanovic -/*************************************************************************** - - PK-8020 driver by Miodrag Milanovic - based on work of Sergey Erokhin from pk8020.narod.ru - - 18/07/2008 Preliminary driver. - -****************************************************************************/ - -#include "emu.h" -#include "includes/pk8020.h" -#include "machine/ram.h" - -void pk8020_state::video_start() -{ -} - -UINT32 pk8020_state::screen_update_pk8020(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) -{ - int y, x, b, j; - UINT8 *gfx = m_region_gfx1->base(); - UINT8 *ram = m_ram->pointer(); - - for (y = 0; y < 16; y++) - { - for (x = 0; x < 64; x++) - { - UINT8 chr = ram[x +(y*64) + 0x40000]; - UINT8 attr= ram[x +(y*64) + 0x40400]; - for (j = 0; j < 16; j++) { - UINT32 addr = 0x10000 + x + ((y*16+j)*64) + (m_video_page * 0xC000); - UINT8 code1 = ram[addr]; - UINT8 code2 = ram[addr + 0x4000]; - UINT8 code3 = ram[addr + 0x8000]; - UINT8 code4 = gfx[((chr<<4) + j) + (m_font*0x1000)]; - if (attr) code4 ^= 0xff; - for (b = 0; b < 8; b++) - { - UINT8 col = (((code4 >> b) & 0x01) ? 0x08 : 0x00); - col |= (((code3 >> b) & 0x01) ? 0x04 : 0x00); - col |= (((code2 >> b) & 0x01) ? 0x02 : 0x00); - col |= (((code1 >> b) & 0x01) ? 0x01 : 0x00); - bitmap.pix16((y*16)+j, x*8+(7-b)) = col; - } - } - } - } - return 0; -} - -PALETTE_INIT_MEMBER(pk8020_state, pk8020) -{ - int i; - for(i=0;i<16;i++) { - m_palette->set_pen_color( i, rgb_t(i*0x10,i*0x10,i*0x10) ); - } -} |