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
71
72
73
74
75
|
// license:BSD-3-Clause
// copyright-holders:Nicola Salmoria
class taxidriv_state : public driver_device
{
public:
taxidriv_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag),
m_maincpu(*this, "maincpu"),
m_gfxdecode(*this, "gfxdecode"),
m_palette(*this, "palette"),
m_vram0(*this, "vram0"),
m_vram1(*this, "vram1"),
m_vram2(*this, "vram2"),
m_vram3(*this, "vram3"),
m_vram4(*this, "vram4"),
m_vram5(*this, "vram5"),
m_vram6(*this, "vram6"),
m_vram7(*this, "vram7"),
m_scroll(*this, "scroll") { }
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
required_device<palette_device> m_palette;
required_shared_ptr<uint8_t> m_vram0;
required_shared_ptr<uint8_t> m_vram1;
required_shared_ptr<uint8_t> m_vram2;
required_shared_ptr<uint8_t> m_vram3;
required_shared_ptr<uint8_t> m_vram4;
required_shared_ptr<uint8_t> m_vram5;
required_shared_ptr<uint8_t> m_vram6;
required_shared_ptr<uint8_t> m_vram7;
required_shared_ptr<uint8_t> m_scroll;
int m_s1;
int m_s2;
int m_s3;
int m_s4;
int m_latchA;
int m_latchB;
int m_bghide;
int m_spritectrl[9];
DECLARE_WRITE8_MEMBER(p2a_w);
DECLARE_WRITE8_MEMBER(p2b_w);
DECLARE_WRITE8_MEMBER(p2c_w);
DECLARE_WRITE8_MEMBER(p3a_w);
DECLARE_WRITE8_MEMBER(p3b_w);
DECLARE_WRITE8_MEMBER(p3c_w);
DECLARE_WRITE8_MEMBER(p4a_w);
DECLARE_WRITE8_MEMBER(p4b_w);
DECLARE_WRITE8_MEMBER(p4c_w);
DECLARE_READ8_MEMBER(p0a_r);
DECLARE_READ8_MEMBER(p0c_r);
DECLARE_WRITE8_MEMBER(p0b_w);
DECLARE_WRITE8_MEMBER(p0c_w);
DECLARE_READ8_MEMBER(p1b_r);
DECLARE_READ8_MEMBER(p1c_r);
DECLARE_WRITE8_MEMBER(p1a_w);
DECLARE_WRITE8_MEMBER(p1c_w);
DECLARE_READ8_MEMBER(p8910_0a_r);
DECLARE_READ8_MEMBER(p8910_1a_r);
DECLARE_WRITE8_MEMBER(p8910_0b_w);
DECLARE_WRITE8_MEMBER(spritectrl_w);
virtual void machine_start() override;
DECLARE_PALETTE_INIT(taxidriv);
uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
void taxidriv(machine_config &config);
void cpu2_map(address_map &map);
void cpu3_map(address_map &map);
void cpu3_port_map(address_map &map);
void main_map(address_map &map);
};
|