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
|
/*************************************************************************
Pushman
*************************************************************************/
class pushman_state : public driver_device
{
public:
pushman_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag),
m_spriteram(*this, "spriteram"),
m_videoram(*this, "videoram"),
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
m_mcu(*this, "mcu"),
m_gfxdecode(*this, "gfxdecode") { }
/* memory pointers */
required_shared_ptr<UINT16> m_spriteram;
required_shared_ptr<UINT16> m_videoram;
/* video-related */
tilemap_t *m_bg_tilemap;
tilemap_t *m_tx_tilemap;
UINT16 m_control[2];
/* misc */
UINT8 m_shared_ram[8];
UINT16 m_latch;
UINT16 m_new_latch;
/* devices */
required_device<cpu_device> m_maincpu;
required_device<cpu_device> m_audiocpu;
optional_device<cpu_device> m_mcu;
required_device<gfxdecode_device> m_gfxdecode;
DECLARE_WRITE16_MEMBER(pushman_flipscreen_w);
DECLARE_WRITE16_MEMBER(pushman_control_w);
DECLARE_READ16_MEMBER(pushman_68705_r);
DECLARE_WRITE16_MEMBER(pushman_68705_w);
DECLARE_READ16_MEMBER(bballs_68705_r);
DECLARE_WRITE16_MEMBER(bballs_68705_w);
DECLARE_READ8_MEMBER(pushman_68000_r);
DECLARE_WRITE8_MEMBER(pushman_68000_w);
DECLARE_WRITE16_MEMBER(pushman_scroll_w);
DECLARE_WRITE16_MEMBER(pushman_videoram_w);
TILEMAP_MAPPER_MEMBER(background_scan_rows);
TILE_GET_INFO_MEMBER(get_back_tile_info);
TILE_GET_INFO_MEMBER(get_text_tile_info);
virtual void machine_start();
virtual void video_start();
DECLARE_MACHINE_RESET(pushman);
DECLARE_MACHINE_RESET(bballs);
UINT32 screen_update_pushman(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect );
DECLARE_WRITE_LINE_MEMBER(irqhandler);
};
|