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
64
65
66
67
68
69
70
|
/***************************************************************************
Double Dribble
***************************************************************************/
class ddribble_state : public driver_device
{
public:
ddribble_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag) ,
m_paletteram(*this, "paletteram"),
m_fg_videoram(*this, "fg_videoram"),
m_spriteram_1(*this, "spriteram_1"),
m_sharedram(*this, "sharedram"),
m_bg_videoram(*this, "bg_videoram"),
m_spriteram_2(*this, "spriteram_2"),
m_snd_sharedram(*this, "snd_sharedram"){ }
/* memory pointers */
required_shared_ptr<UINT8> m_paletteram;
required_shared_ptr<UINT8> m_fg_videoram;
required_shared_ptr<UINT8> m_spriteram_1;
required_shared_ptr<UINT8> m_sharedram;
required_shared_ptr<UINT8> m_bg_videoram;
required_shared_ptr<UINT8> m_spriteram_2;
required_shared_ptr<UINT8> m_snd_sharedram;
/* video-related */
tilemap_t *m_fg_tilemap;
tilemap_t *m_bg_tilemap;
int m_vregs[2][5];
int m_charbank[2];
/* misc */
int m_int_enable_0;
int m_int_enable_1;
/* devices */
device_t *m_filter1;
device_t *m_filter2;
device_t *m_filter3;
DECLARE_WRITE8_MEMBER(ddribble_bankswitch_w);
DECLARE_READ8_MEMBER(ddribble_sharedram_r);
DECLARE_WRITE8_MEMBER(ddribble_sharedram_w);
DECLARE_READ8_MEMBER(ddribble_snd_sharedram_r);
DECLARE_WRITE8_MEMBER(ddribble_snd_sharedram_w);
DECLARE_WRITE8_MEMBER(ddribble_coin_counter_w);
DECLARE_WRITE8_MEMBER(K005885_0_w);
DECLARE_WRITE8_MEMBER(K005885_1_w);
DECLARE_WRITE8_MEMBER(ddribble_fg_videoram_w);
DECLARE_WRITE8_MEMBER(ddribble_bg_videoram_w);
DECLARE_READ8_MEMBER(ddribble_vlm5030_busy_r);
DECLARE_WRITE8_MEMBER(ddribble_vlm5030_ctrl_w);
TILEMAP_MAPPER_MEMBER(tilemap_scan);
TILE_GET_INFO_MEMBER(get_fg_tile_info);
TILE_GET_INFO_MEMBER(get_bg_tile_info);
virtual void machine_start();
virtual void machine_reset();
virtual void video_start();
virtual void palette_init();
UINT32 screen_update_ddribble(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
};
/*----------- defined in video/ddribble.c -----------*/
|