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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
|
#include "sound/dac.h"
#include "cpu/z80/z80daisy.h"
#include "machine/z80pio.h"
#include "machine/z80ctc.h"
class senjyo_state : public driver_device
{
public:
senjyo_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag),
m_dac(*this, "dac"),
m_spriteram(*this, "spriteram"),
m_fgscroll(*this, "fgscroll"),
m_scrollx1(*this, "scrollx1"),
m_scrolly1(*this, "scrolly1"),
m_scrollx2(*this, "scrollx2"),
m_scrolly2(*this, "scrolly2"),
m_scrollx3(*this, "scrollx3"),
m_scrolly3(*this, "scrolly3"),
m_fgvideoram(*this, "fgvideoram"),
m_fgcolorram(*this, "fgcolorram"),
m_bg1videoram(*this, "bg1videoram"),
m_bg2videoram(*this, "bg2videoram"),
m_bg3videoram(*this, "bg3videoram"),
m_radarram(*this, "radarram"),
m_bgstripesram(*this, "bgstripesram"),
m_maincpu(*this, "maincpu"),
m_gfxdecode(*this, "gfxdecode"),
m_palette(*this, "palette") { }
int m_int_delay_kludge;
UINT8 m_sound_cmd;
INT16 *m_single_data;
int m_single_rate;
int m_single_volume;
int m_sound_state;
required_device<dac_device> m_dac;
required_shared_ptr<UINT8> m_spriteram;
required_shared_ptr<UINT8> m_fgscroll;
required_shared_ptr<UINT8> m_scrollx1;
required_shared_ptr<UINT8> m_scrolly1;
required_shared_ptr<UINT8> m_scrollx2;
required_shared_ptr<UINT8> m_scrolly2;
required_shared_ptr<UINT8> m_scrollx3;
required_shared_ptr<UINT8> m_scrolly3;
required_shared_ptr<UINT8> m_fgvideoram;
required_shared_ptr<UINT8> m_fgcolorram;
required_shared_ptr<UINT8> m_bg1videoram;
required_shared_ptr<UINT8> m_bg2videoram;
required_shared_ptr<UINT8> m_bg3videoram;
required_shared_ptr<UINT8> m_radarram;
required_shared_ptr<UINT8> m_bgstripesram;
int m_is_senjyo;
int m_scrollhack;
tilemap_t *m_fg_tilemap;
tilemap_t *m_bg1_tilemap;
tilemap_t *m_bg2_tilemap;
tilemap_t *m_bg3_tilemap;
int m_bgstripes;
DECLARE_WRITE8_MEMBER(flip_screen_w);
DECLARE_WRITE8_MEMBER(senjyo_paletteram_w);
DECLARE_WRITE8_MEMBER(starforb_scrolly2);
DECLARE_WRITE8_MEMBER(starforb_scrollx2);
DECLARE_WRITE8_MEMBER(senjyo_fgvideoram_w);
DECLARE_WRITE8_MEMBER(senjyo_fgcolorram_w);
DECLARE_WRITE8_MEMBER(senjyo_bg1videoram_w);
DECLARE_WRITE8_MEMBER(senjyo_bg2videoram_w);
DECLARE_WRITE8_MEMBER(senjyo_bg3videoram_w);
DECLARE_WRITE8_MEMBER(senjyo_bgstripes_w);
DECLARE_WRITE8_MEMBER(senjyo_volume_w);
DECLARE_WRITE_LINE_MEMBER(sound_line_clock);
DECLARE_WRITE8_MEMBER(sound_cmd_w);
DECLARE_DRIVER_INIT(starfora);
DECLARE_DRIVER_INIT(senjyo);
DECLARE_DRIVER_INIT(starfore);
DECLARE_DRIVER_INIT(starforc);
TILE_GET_INFO_MEMBER(get_fg_tile_info);
TILE_GET_INFO_MEMBER(senjyo_bg1_tile_info);
TILE_GET_INFO_MEMBER(starforc_bg1_tile_info);
TILE_GET_INFO_MEMBER(get_bg2_tile_info);
TILE_GET_INFO_MEMBER(get_bg3_tile_info);
virtual void machine_reset();
virtual void video_start();
UINT32 screen_update_senjyo(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
INTERRUPT_GEN_MEMBER(senjyo_interrupt);
DECLARE_READ8_MEMBER(pio_pa_r);
void draw_bgbitmap(bitmap_ind16 &bitmap,const rectangle &cliprect);
void draw_radar(bitmap_ind16 &bitmap,const rectangle &cliprect);
void draw_sprites(bitmap_ind16 &bitmap,const rectangle &cliprect,int priority);
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
required_device<palette_device> m_palette;
};
/*----------- defined in audio/senjyo.c -----------*/
extern const z80_daisy_config senjyo_daisy_chain[];
extern const z80pio_interface senjyo_pio_intf;
extern const z80ctc_interface senjyo_ctc_intf;
|