summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes/yunsun16.h
blob: 758268833a679af6cb5d5ca7581013b7735cee16 (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
/*************************************************************************

    Yun Sung 16 Bit Games

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

class yunsun16_state : public driver_device
{
public:
	yunsun16_state(const machine_config &mconfig, device_type type, const char *tag)
		: driver_device(mconfig, type, tag) { }

	/* memory pointers */
	UINT16 *    m_vram_0;
	UINT16 *    m_vram_1;
	UINT16 *    m_scrollram_0;
	UINT16 *    m_scrollram_1;
	UINT16 *    m_priorityram;
//  UINT16 *    m_paletteram; // currently this uses generic palette handling
	UINT16 *    m_spriteram;
	size_t      m_spriteram_size;

	/* other video-related elements */
	tilemap_t     *m_tilemap_0;
	tilemap_t     *m_tilemap_1;
	int         m_sprites_scrolldx;
	int         m_sprites_scrolldy;

	/* devices */
	device_t *m_audiocpu;
};


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

WRITE16_HANDLER( yunsun16_vram_0_w );
WRITE16_HANDLER( yunsun16_vram_1_w );

VIDEO_START( yunsun16 );
SCREEN_UPDATE( yunsun16 );