blob: 654fe521df1ab797209e5f322b884eef3fb922c8 (
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
|
#define MAX_STARS 250
struct star {
float x,y;
int col,set;
};
class gaplus_state : public driver_device
{
public:
gaplus_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag),
m_customio_3(*this,"customio_3"),
m_videoram(*this,"videoram"),
m_spriteram(*this,"spriteram") { }
required_shared_ptr<UINT8> m_customio_3;
required_shared_ptr<UINT8> m_videoram;
required_shared_ptr<UINT8> m_spriteram;
tilemap_t *m_bg_tilemap;
UINT8 m_starfield_control[4];
int m_total_stars;
struct star m_stars[MAX_STARS];
UINT8 m_main_irq_mask;
UINT8 m_sub_irq_mask;
UINT8 m_sub2_irq_mask;
DECLARE_READ8_MEMBER(gaplus_spriteram_r);
DECLARE_WRITE8_MEMBER(gaplus_spriteram_w);
DECLARE_WRITE8_MEMBER(gaplus_irq_1_ctrl_w);
DECLARE_WRITE8_MEMBER(gaplus_irq_2_ctrl_w);
DECLARE_WRITE8_MEMBER(gaplus_irq_3_ctrl_w);
DECLARE_WRITE8_MEMBER(gaplus_sreset_w);
DECLARE_WRITE8_MEMBER(gaplus_freset_w);
DECLARE_WRITE8_MEMBER(gaplus_customio_3_w);
DECLARE_READ8_MEMBER(gaplus_customio_3_r);
DECLARE_READ8_MEMBER(gaplus_videoram_r);
DECLARE_WRITE8_MEMBER(gaplus_videoram_w);
DECLARE_WRITE8_MEMBER(gaplus_starfield_control_w);
DECLARE_WRITE8_MEMBER(out_lamps0);
DECLARE_WRITE8_MEMBER(out_lamps1);
DECLARE_DRIVER_INIT(gaplus);
TILEMAP_MAPPER_MEMBER(tilemap_scan);
TILE_GET_INFO_MEMBER(get_tile_info);
virtual void machine_reset();
virtual void video_start();
virtual void palette_init();
};
/*----------- defined in machine/gaplus.c -----------*/
/*----------- defined in video/gaplus.c -----------*/
SCREEN_UPDATE_IND16( gaplus );
SCREEN_VBLANK( gaplus ); /* update starfields */
|