summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes/macrossp.h
blob: 6739df0ec675ff8334c60ee3e3fad49e94374d75 (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
48
49
50
51
52
53
54
55
/*************************************************************************

    Macross Plus

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

class macrossp_state : public driver_device
{
public:
	macrossp_state(running_machine &machine, const driver_device_config_base &config)
		: driver_device(machine, config) { }

	/* memory pointers */
	UINT32 *         m_mainram;
	UINT32 *         m_scra_videoram;
	UINT32 *         m_scra_videoregs;
	UINT32 *         m_scrb_videoram;
	UINT32 *         m_scrb_videoregs;
	UINT32 *         m_scrc_videoram;
	UINT32 *         m_scrc_videoregs;
	UINT32 *         m_text_videoram;
	UINT32 *         m_text_videoregs;
	UINT32 *         m_spriteram;
	UINT32 *         m_spriteram_old;
	UINT32 *         m_spriteram_old2;
	UINT32 *         m_paletteram;
	size_t           m_spriteram_size;

	/* video-related */
	tilemap_t  *m_scra_tilemap;
	tilemap_t  *m_scrb_tilemap;
	tilemap_t  *m_scrc_tilemap;
	tilemap_t  *m_text_tilemap;

	/* misc */
	int              m_sndpending;
	int              m_snd_toggle;
	INT32            m_fade_effect;
	INT32 			 m_old_fade;

	/* devices */
	device_t *m_maincpu;
	device_t *m_audiocpu;
};

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

WRITE32_HANDLER( macrossp_scra_videoram_w );
WRITE32_HANDLER( macrossp_scrb_videoram_w );
WRITE32_HANDLER( macrossp_scrc_videoram_w );
WRITE32_HANDLER( macrossp_text_videoram_w );

VIDEO_START(macrossp);
SCREEN_UPDATE(macrossp);
SCREEN_EOF(macrossp);