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
|
#include "sound/msm5205.h"
class gsword_state : public driver_device
{
public:
gsword_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag),
m_spritetile_ram(*this, "spritetile_ram"),
m_spritexy_ram(*this, "spritexy_ram"),
m_spriteattrib_ram(*this, "spriteattram"),
m_videoram(*this, "videoram"),
m_cpu2_ram(*this, "cpu2_ram"),
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
m_subcpu(*this, "sub"),
m_msm(*this, "msm"),
m_gfxdecode(*this, "gfxdecode") { }
required_shared_ptr<UINT8> m_spritetile_ram;
required_shared_ptr<UINT8> m_spritexy_ram;
required_shared_ptr<UINT8> m_spriteattrib_ram;
required_shared_ptr<UINT8> m_videoram;
required_shared_ptr<UINT8> m_cpu2_ram;
int m_coins;
int m_fake8910_0;
int m_fake8910_1;
int m_nmi_enable;
int m_protect_hack;
int m_charbank;
int m_charpalbank;
int m_flipscreen;
tilemap_t *m_bg_tilemap;
DECLARE_WRITE8_MEMBER(gsword_videoram_w);
DECLARE_WRITE8_MEMBER(gsword_charbank_w);
DECLARE_WRITE8_MEMBER(gsword_videoctrl_w);
DECLARE_WRITE8_MEMBER(gsword_scroll_w);
DECLARE_READ8_MEMBER(gsword_hack_r);
DECLARE_WRITE8_MEMBER(adpcm_soundcommand_w);
DECLARE_WRITE8_MEMBER(gsword_nmi_set_w);
DECLARE_WRITE8_MEMBER(gsword_AY8910_control_port_0_w);
DECLARE_WRITE8_MEMBER(gsword_AY8910_control_port_1_w);
DECLARE_READ8_MEMBER(gsword_fake_0_r);
DECLARE_READ8_MEMBER(gsword_fake_1_r);
DECLARE_WRITE8_MEMBER(gsword_adpcm_data_w);
DECLARE_DRIVER_INIT(gsword);
DECLARE_DRIVER_INIT(gsword2);
TILE_GET_INFO_MEMBER(get_bg_tile_info);
virtual void video_start();
DECLARE_MACHINE_RESET(gsword);
DECLARE_PALETTE_INIT(gsword);
DECLARE_MACHINE_RESET(josvolly);
DECLARE_PALETTE_INIT(josvolly);
UINT32 screen_update_gsword(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
INTERRUPT_GEN_MEMBER(gsword_snd_interrupt);
void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
int gsword_coins_in(void);
required_device<cpu_device> m_maincpu;
required_device<cpu_device> m_audiocpu;
optional_device<cpu_device> m_subcpu;
optional_device<msm5205_device> m_msm;
required_device<gfxdecode_device> m_gfxdecode;
};
|