summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes/yunsung8.h
blob: 49c756dff9e728ecef618c7dfbfeda398bd4ce9c (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
/*************************************************************************

	Yun Sung 8 Bit Games

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

typedef struct _yunsung8_state yunsung8_state;
struct _yunsung8_state
{
	/* memory pointers */
	UINT8 *     videoram;

	/* video-related */
	tilemap     *tilemap_0, *tilemap_1;
	UINT8       *videoram_0, *videoram_1;
	int         layers_ctrl;
	int         videobank;

	/* misc */
	int         adpcm;
	int         toggle;

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


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

WRITE8_HANDLER( yunsung8_videobank_w );
READ8_HANDLER ( yunsung8_videoram_r );
WRITE8_HANDLER( yunsung8_videoram_w );
WRITE8_HANDLER( yunsung8_flipscreen_w );

VIDEO_START( yunsung8 );
VIDEO_UPDATE( yunsung8 );