diff options
Diffstat (limited to 'src/mame/includes/xxmissio.h')
-rw-r--r-- | src/mame/includes/xxmissio.h | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/src/mame/includes/xxmissio.h b/src/mame/includes/xxmissio.h index 4e7816b619a..61047b5041f 100644 --- a/src/mame/includes/xxmissio.h +++ b/src/mame/includes/xxmissio.h @@ -1,25 +1,34 @@ // license:BSD-3-Clause // copyright-holders:Uki +#ifndef MAME_INCLUDES_XXMISSIO_H +#define MAME_INCLUDES_XXMISSIO_H + +#pragma once #include "emupal.h" class xxmissio_state : public driver_device { public: - xxmissio_state(const machine_config &mconfig, device_type type, const char *tag) - : driver_device(mconfig, type, tag), + xxmissio_state(const machine_config &mconfig, device_type type, const char *tag) : + driver_device(mconfig, type, tag), m_maincpu(*this, "maincpu"), m_subcpu(*this, "sub"), m_gfxdecode(*this, "gfxdecode"), m_palette(*this, "palette"), m_bgram(*this, "bgram"), m_fgram(*this, "fgram"), - m_spriteram(*this, "spriteram") { } + m_spriteram(*this, "spriteram") + { } void xxmissio(machine_config &config); DECLARE_CUSTOM_INPUT_MEMBER(status_r); +protected: + virtual void machine_start() override; + virtual void video_start() override; + private: required_device<cpu_device> m_maincpu; required_device<cpu_device> m_subcpu; @@ -46,16 +55,12 @@ private: DECLARE_WRITE8_MEMBER(scroll_x_w); DECLARE_WRITE8_MEMBER(scroll_y_w); - DECLARE_WRITE_LINE_MEMBER(interrupt_m); INTERRUPT_GEN_MEMBER(interrupt_s); TILE_GET_INFO_MEMBER(get_bg_tile_info); TILE_GET_INFO_MEMBER(get_fg_tile_info); - virtual void machine_start() override; - virtual void video_start() override; - DECLARE_PALETTE_DECODER(BBGGRRII); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); @@ -64,3 +69,5 @@ private: void map1(address_map &map); void map2(address_map &map); }; + +#endif // MAME_INCLUDES_XXMISSIO_H |