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

    Videa Gridlee hardware

    driver by Aaron Giles

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

#include "devlegcy.h"


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

	UINT8 *videoram;
	cpu_device *maincpu;
	UINT8 last_analog_input[2];
	UINT8 last_analog_output[2];
	UINT8 *poly17;
	UINT8 *rand17;
	emu_timer *irq_off;
	emu_timer *irq_timer;
	emu_timer *firq_off;
	emu_timer *firq_timer;
	UINT8 cocktail_flip;
	UINT8 *local_videoram;
	UINT8 palettebank_vis;
};


/*----------- defined in audio/gridlee.c -----------*/

WRITE8_DEVICE_HANDLER( gridlee_sound_w );

DECLARE_LEGACY_SOUND_DEVICE(GRIDLEE, gridlee_sound);


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

/* video driver data & functions */

PALETTE_INIT( gridlee );
VIDEO_START( gridlee );
SCREEN_UPDATE( gridlee );

WRITE8_HANDLER( gridlee_cocktail_flip_w );
WRITE8_HANDLER( gridlee_videoram_w );
WRITE8_HANDLER( gridlee_palette_select_w );