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

    Munch Mobile

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

class munchmo_state : public driver_device
{
public:
	munchmo_state(const machine_config &mconfig, device_type type, const char *tag)
		: driver_device(mconfig, type, tag) { }

	/* memory pointers */
	UINT8 *      m_vreg;
	UINT8 *      m_status_vram;
	UINT8 *      m_sprite_xpos;
	UINT8 *      m_sprite_attr;
	UINT8 *      m_sprite_tile;
	UINT8 *      m_videoram;

	/* video-related */
	bitmap_t     *m_tmpbitmap;
	int          m_palette_bank;
	int          m_flipscreen;

	/* misc */
	int          m_nmi_enable;
	int          m_which;
	UINT8        m_sound_nmi_enable;

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


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

WRITE8_HANDLER( mnchmobl_palette_bank_w );
WRITE8_HANDLER( mnchmobl_flipscreen_w );

PALETTE_INIT( mnchmobl );
VIDEO_START( mnchmobl );
SCREEN_UPDATE( mnchmobl );