summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/jaleco/skyfox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/jaleco/skyfox.cpp')
-rw-r--r--src/mame/jaleco/skyfox.cpp18
1 files changed, 7 insertions, 11 deletions
diff --git a/src/mame/jaleco/skyfox.cpp b/src/mame/jaleco/skyfox.cpp
index b5bce3b0977..c87882c8b63 100644
--- a/src/mame/jaleco/skyfox.cpp
+++ b/src/mame/jaleco/skyfox.cpp
@@ -60,8 +60,8 @@ public:
DECLARE_INPUT_CHANGED_MEMBER(coin_inserted);
protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
+ virtual void machine_start() override ATTR_COLD;
+ virtual void machine_reset() override ATTR_COLD;
private:
// devices/memory pointers
@@ -82,13 +82,11 @@ private:
void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
void draw_background(bitmap_ind16 &bitmap, const rectangle &cliprect);
- void main_map(address_map &map);
- void sound_map(address_map &map);
+ void main_map(address_map &map) ATTR_COLD;
+ void sound_map(address_map &map) ATTR_COLD;
};
-// video
-
/***************************************************************************
@@ -318,8 +316,6 @@ uint32_t skyfox_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap
}
-// machine
-
/***************************************************************************
Main CPU
@@ -416,7 +412,7 @@ static INPUT_PORTS_START( skyfox )
PORT_DIPSETTING( 0x80, DEF_STR( Cocktail ) )
PORT_START("DSW1") // Coins, DSW + Vblank
- PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_CUSTOM ) PORT_VBLANK("screen")
+ PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_CUSTOM ) PORT_READ_LINE_DEVICE_MEMBER("screen", FUNC(screen_device::vblank))
PORT_DIPNAME( 0x0e, 0x00, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW2:1,2,3")
PORT_DIPSETTING( 0x0e, DEF_STR( 5C_1C ) )
PORT_DIPSETTING( 0x0a, DEF_STR( 4C_1C ) )
@@ -449,8 +445,8 @@ static INPUT_PORTS_START( skyfox )
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_START("COINS") // Fake input port, coins are directly connected on NMI line
- PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_CHANGED_MEMBER(DEVICE_SELF, skyfox_state, coin_inserted, 0)
- PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) PORT_CHANGED_MEMBER(DEVICE_SELF, skyfox_state, coin_inserted, 0)
+ PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_CHANGED_MEMBER(DEVICE_SELF, FUNC(skyfox_state::coin_inserted), 0)
+ PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) PORT_CHANGED_MEMBER(DEVICE_SELF, FUNC(skyfox_state::coin_inserted), 0)
INPUT_PORTS_END