10
10
megazone_state(const machine_config &mconfig, device_type type, const char *tag)
11
: driver_device(mconfig, type, tag) { }
11
: driver_device(mconfig, type, tag) ,
12
m_scrolly(*this, "scrolly"),
13
m_scrollx(*this, "scrollx"),
14
m_videoram(*this, "videoram"),
15
m_videoram2(*this, "videoram2"),
16
m_colorram(*this, "colorram"),
17
m_colorram2(*this, "colorram2"),
18
m_spriteram(*this, "spriteram"){ }
13
20
/* memory pointers */
21
size_t m_spriteram_size;
22
size_t m_videoram_size;
23
size_t m_videoram2_size;
21
required_shared_ptr<UINT8> m_scrolly;
22
required_shared_ptr<UINT8> m_scrollx;
23
required_shared_ptr<UINT8> m_videoram;
24
required_shared_ptr<UINT8> m_videoram2;
25
required_shared_ptr<UINT8> m_colorram;
26
required_shared_ptr<UINT8> m_colorram2;
27
required_shared_ptr<UINT8> m_spriteram;
25
29
/* video-related */
26
30
bitmap_ind16 *m_tmpbitmap;
35
39
cpu_device *m_daccpu;
42
DECLARE_WRITE8_MEMBER(megazone_i8039_irq_w);
43
DECLARE_WRITE8_MEMBER(i8039_irqen_and_status_w);
44
DECLARE_WRITE8_MEMBER(megazone_coin_counter_w);
45
DECLARE_WRITE8_MEMBER(irq_mask_w);
46
DECLARE_WRITE8_MEMBER(megazone_flipscreen_w);
42
51
/*----------- defined in video/megazone.c -----------*/
44
WRITE8_HANDLER( megazone_flipscreen_w );
46
54
PALETTE_INIT( megazone );
47
55
VIDEO_START( megazone );