mirror of
https://github.com/holub/mame
synced 2025-07-04 09:28:51 +03:00
acommand.cpp: cleanups (nw)
This commit is contained in:
parent
1199a6716b
commit
aadfca9eea
@ -82,12 +82,6 @@ public:
|
|||||||
m_bgtmap(*this, "bgtmap"),
|
m_bgtmap(*this, "bgtmap"),
|
||||||
m_txtmap(*this, "txtmap") { }
|
m_txtmap(*this, "txtmap") { }
|
||||||
|
|
||||||
required_shared_ptr<uint16_t> m_spriteram;
|
|
||||||
std::unique_ptr<uint16_t[]> m_ac_vregs;
|
|
||||||
uint16_t m_7seg0;
|
|
||||||
uint16_t m_7seg1;
|
|
||||||
uint16_t m_ufo_lane[5];
|
|
||||||
uint8_t m_boss_door;
|
|
||||||
DECLARE_WRITE8_MEMBER(oki_bank_w);
|
DECLARE_WRITE8_MEMBER(oki_bank_w);
|
||||||
DECLARE_WRITE16_MEMBER(output_7seg0_w);
|
DECLARE_WRITE16_MEMBER(output_7seg0_w);
|
||||||
DECLARE_WRITE16_MEMBER(output_7seg1_w);
|
DECLARE_WRITE16_MEMBER(output_7seg1_w);
|
||||||
@ -101,10 +95,16 @@ public:
|
|||||||
|
|
||||||
DECLARE_WRITE16_MEMBER(ac_unk2_w);
|
DECLARE_WRITE16_MEMBER(ac_unk2_w);
|
||||||
TILEMAP_MAPPER_MEMBER(bg_scan);
|
TILEMAP_MAPPER_MEMBER(bg_scan);
|
||||||
virtual void video_start() override;
|
|
||||||
uint32_t screen_update_acommand(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
|
uint32_t screen_update_acommand(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
|
||||||
TIMER_DEVICE_CALLBACK_MEMBER(acommand_scanline);
|
TIMER_DEVICE_CALLBACK_MEMBER(acommand_scanline);
|
||||||
void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, int priority, int pri_mask);
|
|
||||||
|
|
||||||
|
void acommand(machine_config &config);
|
||||||
|
protected:
|
||||||
|
// virtual void video_start() override;
|
||||||
|
|
||||||
|
private:
|
||||||
|
required_shared_ptr<uint16_t> m_spriteram;
|
||||||
required_device<cpu_device> m_maincpu;
|
required_device<cpu_device> m_maincpu;
|
||||||
required_device<okim6295_device> m_oki1;
|
required_device<okim6295_device> m_oki1;
|
||||||
required_device<okim6295_device> m_oki2;
|
required_device<okim6295_device> m_oki2;
|
||||||
@ -112,7 +112,13 @@ public:
|
|||||||
required_device<palette_device> m_palette;
|
required_device<palette_device> m_palette;
|
||||||
required_device<megasys1_tilemap_device> m_bgtmap;
|
required_device<megasys1_tilemap_device> m_bgtmap;
|
||||||
required_device<megasys1_tilemap_device> m_txtmap;
|
required_device<megasys1_tilemap_device> m_txtmap;
|
||||||
void acommand(machine_config &config);
|
|
||||||
|
uint16_t m_7seg0;
|
||||||
|
uint16_t m_7seg1;
|
||||||
|
uint16_t m_ufo_lane[5];
|
||||||
|
uint8_t m_boss_door;
|
||||||
|
|
||||||
|
void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, int priority, int pri_mask);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -179,12 +185,6 @@ void acommand_state::draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprec
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void acommand_state::video_start()
|
|
||||||
{
|
|
||||||
m_ac_vregs = std::make_unique<uint16_t[]>(0x80/2);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
uint32_t acommand_state::screen_update_acommand(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
|
uint32_t acommand_state::screen_update_acommand(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
|
||||||
{
|
{
|
||||||
// reference has black pen background, as weird it might sound
|
// reference has black pen background, as weird it might sound
|
||||||
@ -343,7 +343,6 @@ static ADDRESS_MAP_START( acommand_map, AS_PROGRAM, 16, acommand_state )
|
|||||||
AM_RANGE(0x100050, 0x100051) AM_WRITE(output_7seg0_w)
|
AM_RANGE(0x100050, 0x100051) AM_WRITE(output_7seg0_w)
|
||||||
AM_RANGE(0x100054, 0x100055) AM_WRITE(output_7seg1_w)
|
AM_RANGE(0x100054, 0x100055) AM_WRITE(output_7seg1_w)
|
||||||
AM_RANGE(0x10005c, 0x10005d) AM_READ_PORT("DSW")
|
AM_RANGE(0x10005c, 0x10005d) AM_READ_PORT("DSW")
|
||||||
|
|
||||||
ADDRESS_MAP_END
|
ADDRESS_MAP_END
|
||||||
|
|
||||||
static INPUT_PORTS_START( acommand )
|
static INPUT_PORTS_START( acommand )
|
||||||
|
Loading…
Reference in New Issue
Block a user