summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes/nbmj8900.h
blob: fd403849e0bbe0ca6fa16aabff2574d1e0699d58 (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
43
44
45
46
47
48
49
50
51
52
53
class nbmj8900_state : public driver_device
{
public:
	nbmj8900_state(const machine_config &mconfig, device_type type, const char *tag)
		: driver_device(mconfig, type, tag) { }

	int m_scrolly;
	int m_blitter_destx;
	int m_blitter_desty;
	int m_blitter_sizex;
	int m_blitter_sizey;
	int m_blitter_src_addr;
	int m_blitter_direction_x;
	int m_blitter_direction_y;
	int m_vram;
	int m_gfxrom;
	int m_dispflag;
	int m_flipscreen;
	int m_clutsel;
	int m_screen_refresh;
	int m_gfxdraw_mode;
	int m_screen_height;
	int m_screen_width;
	bitmap_ind16 m_tmpbitmap0;
	bitmap_ind16 m_tmpbitmap1;
	UINT8 *m_videoram0;
	UINT8 *m_videoram1;
	UINT8 *m_palette;
	UINT8 *m_clut;
	int m_flipscreen_old;
	DECLARE_READ8_MEMBER(nbmj8900_palette_type1_r);
	DECLARE_WRITE8_MEMBER(nbmj8900_palette_type1_w);
	DECLARE_READ8_MEMBER(nbmj8900_palette_type2_r);
	DECLARE_WRITE8_MEMBER(nbmj8900_palette_type2_w);
	DECLARE_READ8_MEMBER(nbmj8900_palette_type3_r);
	DECLARE_WRITE8_MEMBER(nbmj8900_palette_type3_w);
	DECLARE_WRITE8_MEMBER(nbmj8900_clutsel_w);
	DECLARE_READ8_MEMBER(nbmj8900_clut_r);
	DECLARE_WRITE8_MEMBER(nbmj8900_clut_w);
	DECLARE_WRITE8_MEMBER(nbmj8900_blitter_w);
	DECLARE_WRITE8_MEMBER(nbmj8900_scrolly_w);
	DECLARE_WRITE8_MEMBER(nbmj8900_vramsel_w);
	DECLARE_WRITE8_MEMBER(nbmj8900_romsel_w);
	DECLARE_DRIVER_INIT(togenkyo);
	DECLARE_DRIVER_INIT(ohpaipee);
};


/*----------- defined in video/nbmj8900.c -----------*/

SCREEN_UPDATE_IND16( nbmj8900 );
VIDEO_START( nbmj8900_2layer );