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

    Ginga NinkyouDen

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

typedef struct _ginganin_state ginganin_state;
struct _ginganin_state
{
	/* memory pointers */
	UINT16 *    fgram;
	UINT16 *    txtram;
	UINT16 *    vregs;
	UINT16 *    spriteram;
//  UINT16 *    paletteram; // currently this uses generic palette handling
	size_t      spriteram_size;

	/* video-related */
	tilemap     *bg_tilemap, *fg_tilemap, *tx_tilemap;
	int         layers_ctrl, flipscreen;
#ifdef MAME_DEBUG
	int         posx, posy;
#endif
	/* sound-related */
	UINT8       MC6840_index0;
	UINT8       MC6840_register0;
	UINT8       MC6840_index1;
	UINT8       MC6840_register1;
	int         S_TEMPO;
	int         S_TEMPO_OLD;
	int         MC6809_CTR;
	int         MC6809_FLAG;

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



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

WRITE16_HANDLER( ginganin_fgram16_w );
WRITE16_HANDLER( ginganin_txtram16_w );
WRITE16_HANDLER( ginganin_vregs16_w );

VIDEO_START( ginganin );
VIDEO_UPDATE( ginganin );