summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/video/irisha.c
blob: c334f63f771dbb2a3aa86e0f44a34d6439eae690 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/***************************************************************************

        Irisha video driver by Miodrag Milanovic

        27/03/2008 Preliminary driver.

****************************************************************************/


#include "emu.h"
#include "includes/irisha.h"


void irisha_state::video_start()
{
}

UINT32 irisha_state::screen_update_irisha(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
{
	UINT8 code1; //, code2;
	UINT8 col;
	int y, x, b;
	address_space &space = m_maincpu->space(AS_PROGRAM);

	// draw image
	for (y = 0; y < 200; y++)
	{
		for (x = 0; x < 40; x++)
		{
			code1 = space.read_byte(0xe000 + x + y * 40);
//          code2 = space.read_byte(0xc000 + x + y * 40);
			for (b = 0; b < 8; b++)
			{
				col = ((code1 >> b) & 0x01);
				bitmap.pix16(y, x * 8 + (7 - b)) =  col;
			}
		}
	}


	return 0;
}