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

    Yun Sung 16 Bit Games

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

typedef struct _yunsun16_state yunsun16_state;
struct _yunsun16_state
{
	/* memory pointers */
	UINT16 *    vram_0;
	UINT16 *    vram_1;
	UINT16 *    scrollram_0;
	UINT16 *    scrollram_1;
	UINT16 *    priorityram;
//  UINT16 *    paletteram; // currently this uses generic palette handling
	UINT16 *    spriteram;
	size_t      spriteram_size;

	/* other video-related elements */
	tilemap     *tilemap_0, *tilemap_1;
	int         sprites_scrolldx, sprites_scrolldy;

	/* devices */
	const device_config *audiocpu;
};


/* defined in video/yunsun16.c */

WRITE16_HANDLER( yunsun16_vram_0_w );
WRITE16_HANDLER( yunsun16_vram_1_w );

VIDEO_START( yunsun16 );
VIDEO_UPDATE( yunsun16 );