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
76
77
78
79
80
81
82
83
84
|
// license:BSD-3-Clause
// copyright-holders:Bryan McPhail
class liberate_state : public driver_device
{
public:
liberate_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag),
m_bg_vram(*this, "bg_vram"),
m_colorram(*this, "colorram"),
m_videoram(*this, "videoram"),
m_spriteram(*this, "spriteram"),
m_scratchram(*this, "scratchram"),
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
m_gfxdecode(*this, "gfxdecode"),
m_palette(*this, "palette"),
m_decrypted_opcodes(*this, "decrypted_opcodes") { }
optional_shared_ptr<UINT8> m_bg_vram; /* prosport */
required_shared_ptr<UINT8> m_colorram;
required_shared_ptr<UINT8> m_videoram;
required_shared_ptr<UINT8> m_spriteram;
optional_shared_ptr<UINT8> m_scratchram;
UINT8 *m_fg_gfx; /* prosoccr */
std::unique_ptr<UINT8[]> m_charram; /* prosoccr */
UINT8 m_io_ram[16];
int m_bank;
int m_latch;
UINT8 m_gfx_rom_readback;
int m_background_color;
int m_background_disable;
tilemap_t *m_back_tilemap;
tilemap_t *m_fix_tilemap;
required_device<cpu_device> m_maincpu;
required_device<cpu_device> m_audiocpu;
required_device<gfxdecode_device> m_gfxdecode;
required_device<palette_device> m_palette;
optional_shared_ptr<UINT8> m_decrypted_opcodes;
DECLARE_READ8_MEMBER(deco16_bank_r);
DECLARE_READ8_MEMBER(deco16_io_r);
DECLARE_WRITE8_MEMBER(deco16_bank_w);
DECLARE_READ8_MEMBER(prosoccr_bank_r);
DECLARE_READ8_MEMBER(prosoccr_charram_r);
DECLARE_WRITE8_MEMBER(prosoccr_charram_w);
DECLARE_WRITE8_MEMBER(prosoccr_char_bank_w);
DECLARE_WRITE8_MEMBER(prosoccr_io_bank_w);
DECLARE_READ8_MEMBER(prosport_charram_r);
DECLARE_WRITE8_MEMBER(prosport_charram_w);
DECLARE_WRITE8_MEMBER(deco16_io_w);
DECLARE_WRITE8_MEMBER(prosoccr_io_w);
DECLARE_WRITE8_MEMBER(prosport_io_w);
DECLARE_WRITE8_MEMBER(liberate_videoram_w);
DECLARE_WRITE8_MEMBER(liberate_colorram_w);
DECLARE_WRITE8_MEMBER(prosport_bg_vram_w);
DECLARE_DRIVER_INIT(yellowcb);
DECLARE_DRIVER_INIT(liberate);
DECLARE_DRIVER_INIT(prosport);
TILEMAP_MAPPER_MEMBER(back_scan);
TILEMAP_MAPPER_MEMBER(fix_scan);
TILE_GET_INFO_MEMBER(get_back_tile_info);
TILE_GET_INFO_MEMBER(get_fix_tile_info);
TILE_GET_INFO_MEMBER(prosport_get_back_tile_info);
DECLARE_MACHINE_START(liberate);
DECLARE_MACHINE_RESET(liberate);
DECLARE_VIDEO_START(liberate);
DECLARE_PALETTE_INIT(liberate);
DECLARE_VIDEO_START(prosport);
DECLARE_VIDEO_START(boomrang);
DECLARE_VIDEO_START(prosoccr);
UINT32 screen_update_liberate(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
UINT32 screen_update_prosport(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
UINT32 screen_update_boomrang(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
UINT32 screen_update_prosoccr(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
INTERRUPT_GEN_MEMBER(deco16_interrupt);
void liberate_draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect );
void prosport_draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect );
void boomrang_draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect, int pri );
void prosoccr_draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect );
};
|