blob: 2df7520adb564593ab5ac864420dd82601932d36 (
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
56
57
58
59
60
61
62
63
|
/***************************************************************************
Videa Gridlee hardware
driver by Aaron Giles
***************************************************************************/
#include "devlegcy.h"
#define GRIDLEE_MASTER_CLOCK (20000000)
#define GRIDLEE_CPU_CLOCK (GRIDLEE_MASTER_CLOCK / 16)
#define GRIDLEE_PIXEL_CLOCK (GRIDLEE_MASTER_CLOCK / 4)
#define GRIDLEE_HTOTAL (0x140)
#define GRIDLEE_HBEND (0x000)
#define GRIDLEE_HBSTART (0x100)
#define GRIDLEE_VTOTAL (0x108)
#define GRIDLEE_VBEND (0x010)
#define GRIDLEE_VBSTART (0x100)
class gridlee_state : public driver_device
{
public:
gridlee_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag) { }
UINT8 *m_videoram;
cpu_device *m_maincpu;
UINT8 m_last_analog_input[2];
UINT8 m_last_analog_output[2];
UINT8 *m_poly17;
UINT8 *m_rand17;
emu_timer *m_irq_off;
emu_timer *m_irq_timer;
emu_timer *m_firq_off;
emu_timer *m_firq_timer;
UINT8 m_cocktail_flip;
UINT8 *m_local_videoram;
UINT8 m_palettebank_vis;
UINT8 *m_spriteram;
};
/*----------- 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 );
|