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
|
/*************************************************************************
Crude Buster
*************************************************************************/
class cbuster_state : public driver_device
{
public:
cbuster_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag) ,
m_ram(*this, "ram"),
m_pf1_rowscroll(*this, "pf1_rowscroll"),
m_pf2_rowscroll(*this, "pf2_rowscroll"),
m_pf3_rowscroll(*this, "pf3_rowscroll"),
m_pf4_rowscroll(*this, "pf4_rowscroll"),
m_spriteram16(*this, "spriteram16"){ }
/* memory pointers */
required_shared_ptr<UINT16> m_ram;
required_shared_ptr<UINT16> m_pf1_rowscroll;
required_shared_ptr<UINT16> m_pf2_rowscroll;
required_shared_ptr<UINT16> m_pf3_rowscroll;
required_shared_ptr<UINT16> m_pf4_rowscroll;
required_shared_ptr<UINT16> m_spriteram16;
UINT16 m_spriteram16_buffer[0x400];
/* misc */
UINT16 m_prot;
int m_pri;
/* devices */
cpu_device *m_maincpu;
cpu_device *m_audiocpu;
device_t *m_deco_tilegen1;
device_t *m_deco_tilegen2;
DECLARE_WRITE16_MEMBER(twocrude_control_w);
DECLARE_READ16_MEMBER(twocrude_control_r);
DECLARE_WRITE16_MEMBER(twocrude_palette_24bit_rg_w);
DECLARE_WRITE16_MEMBER(twocrude_palette_24bit_b_w);
DECLARE_DRIVER_INIT(twocrude);
virtual void machine_start();
virtual void machine_reset();
virtual void video_start();
UINT32 screen_update_twocrude(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
};
/*----------- defined in video/cbuster.c -----------*/
|