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
|
/*************************************************************************
Macross Plus
*************************************************************************/
class macrossp_state : public driver_device
{
public:
macrossp_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag) ,
m_spriteram(*this, "spriteram"),
m_scra_videoram(*this, "scra_videoram"),
m_scra_videoregs(*this, "scra_videoregs"),
m_scrb_videoram(*this, "scrb_videoram"),
m_scrb_videoregs(*this, "scrb_videoregs"),
m_scrc_videoram(*this, "scrc_videoram"),
m_scrc_videoregs(*this, "scrc_videoregs"),
m_text_videoram(*this, "text_videoram"),
m_text_videoregs(*this, "text_videoregs"),
m_paletteram(*this, "paletteram"),
m_mainram(*this, "mainram"){ }
/* memory pointers */
required_shared_ptr<UINT32> m_spriteram;
required_shared_ptr<UINT32> m_scra_videoram;
required_shared_ptr<UINT32> m_scra_videoregs;
required_shared_ptr<UINT32> m_scrb_videoram;
required_shared_ptr<UINT32> m_scrb_videoregs;
required_shared_ptr<UINT32> m_scrc_videoram;
required_shared_ptr<UINT32> m_scrc_videoregs;
required_shared_ptr<UINT32> m_text_videoram;
required_shared_ptr<UINT32> m_text_videoregs;
required_shared_ptr<UINT32> m_paletteram;
required_shared_ptr<UINT32> m_mainram;
UINT32 * m_spriteram_old;
UINT32 * m_spriteram_old2;
/* video-related */
tilemap_t *m_scra_tilemap;
tilemap_t *m_scrb_tilemap;
tilemap_t *m_scrc_tilemap;
tilemap_t *m_text_tilemap;
/* misc */
int m_sndpending;
int m_snd_toggle;
INT32 m_fade_effect;
INT32 m_old_fade;
/* devices */
device_t *m_maincpu;
device_t *m_audiocpu;
DECLARE_WRITE32_MEMBER(paletteram32_macrossp_w);
DECLARE_READ32_MEMBER(macrossp_soundstatus_r);
DECLARE_WRITE32_MEMBER(macrossp_soundcmd_w);
DECLARE_READ16_MEMBER(macrossp_soundcmd_r);
DECLARE_WRITE32_MEMBER(macrossp_palette_fade_w);
DECLARE_WRITE32_MEMBER(macrossp_speedup_w);
DECLARE_WRITE32_MEMBER(quizmoon_speedup_w);
DECLARE_WRITE32_MEMBER(macrossp_scra_videoram_w);
DECLARE_WRITE32_MEMBER(macrossp_scrb_videoram_w);
DECLARE_WRITE32_MEMBER(macrossp_scrc_videoram_w);
DECLARE_WRITE32_MEMBER(macrossp_text_videoram_w);
DECLARE_DRIVER_INIT(quizmoon);
DECLARE_DRIVER_INIT(macrossp);
};
/*----------- defined in video/macrossp.c -----------*/
VIDEO_START(macrossp);
SCREEN_UPDATE_RGB32(macrossp);
SCREEN_VBLANK(macrossp);
|