summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/technos/mystston.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/technos/mystston.cpp')
-rw-r--r--src/mame/technos/mystston.cpp16
1 files changed, 6 insertions, 10 deletions
diff --git a/src/mame/technos/mystston.cpp b/src/mame/technos/mystston.cpp
index d87709473ff..d12abae1653 100644
--- a/src/mame/technos/mystston.cpp
+++ b/src/mame/technos/mystston.cpp
@@ -55,8 +55,8 @@ public:
DECLARE_INPUT_CHANGED_MEMBER(coin_inserted);
protected:
- virtual void video_start() override;
- virtual void video_reset() override;
+ virtual void video_start() override ATTR_COLD;
+ virtual void video_reset() override ATTR_COLD;
private:
static constexpr XTAL MASTER_CLOCK = XTAL(12'000'000);
@@ -105,12 +105,10 @@ private:
void set_palette();
void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, gfx_element *gfx, int flip);
void on_scanline_interrupt();
- void main_map(address_map &map);
+ void main_map(address_map &map) ATTR_COLD;
};
-// video
-
/***************************************************************************
There are only a few differences between the video hardware of Mysterious
@@ -367,8 +365,6 @@ static GFXDECODE_START( gfx_mystston )
GFXDECODE_END
-// machine
-
/*************************************
*
* Interrupt system
@@ -468,8 +464,8 @@ static INPUT_PORTS_START( mystston )
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_4WAY
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 )
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 )
- PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_CHANGED_MEMBER(DEVICE_SELF, mystston_state, coin_inserted, 0)
- PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN2 ) PORT_CHANGED_MEMBER(DEVICE_SELF, mystston_state, coin_inserted, 0)
+ PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_CHANGED_MEMBER(DEVICE_SELF, FUNC(mystston_state::coin_inserted), 0)
+ PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN2 ) PORT_CHANGED_MEMBER(DEVICE_SELF, FUNC(mystston_state::coin_inserted), 0)
PORT_START("IN1")
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_4WAY PORT_COCKTAIL
@@ -515,7 +511,7 @@ static INPUT_PORTS_START( mystston )
PORT_DIPNAME(0x40, 0x00, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW1:7")
PORT_DIPSETTING( 0x00, DEF_STR( Upright ) )
PORT_DIPSETTING( 0x40, DEF_STR( Cocktail ) )
- PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_CUSTOM ) PORT_VBLANK("screen")
+ PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_CUSTOM ) PORT_READ_LINE_DEVICE_MEMBER("screen", FUNC(screen_device::vblank))
INPUT_PORTS_END
static INPUT_PORTS_START( myststonoi )