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

    Gotcha

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

typedef struct _gotcha_state gotcha_state;
struct _gotcha_state
{
	/* memory pointers */
	UINT16 *    fgvideoram;
	UINT16 *    bgvideoram;
	UINT16 *    spriteram;
//	UINT16 *    paletteram;	// currently this uses generic palette handling
	size_t      spriteram_size;

	/* video-related */
	tilemap     *bg_tilemap, *fg_tilemap;
	int         banksel, gfxbank[4];
	UINT16      scroll[4];

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


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


VIDEO_START( gotcha );
VIDEO_UPDATE( gotcha );

WRITE16_HANDLER( gotcha_fgvideoram_w );
WRITE16_HANDLER( gotcha_bgvideoram_w );
WRITE16_HANDLER( gotcha_gfxbank_select_w );
WRITE16_HANDLER( gotcha_gfxbank_w );
WRITE16_HANDLER( gotcha_scroll_w );