summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/technos/battlane.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/technos/battlane.cpp')
-rw-r--r--src/mame/technos/battlane.cpp14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/mame/technos/battlane.cpp b/src/mame/technos/battlane.cpp
index ae405176b6d..c26be786c71 100644
--- a/src/mame/technos/battlane.cpp
+++ b/src/mame/technos/battlane.cpp
@@ -42,9 +42,9 @@ public:
void battlane(machine_config &config);
protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
+ virtual void machine_start() override ATTR_COLD;
+ virtual void machine_reset() override ATTR_COLD;
+ virtual void video_start() override ATTR_COLD;
private:
// memory pointers
@@ -76,12 +76,10 @@ private:
INTERRUPT_GEN_MEMBER(cpu1_interrupt);
void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
void draw_fg_bitmap(bitmap_ind16 &bitmap, const rectangle &cliprect);
- void prg_map(address_map &map);
+ void prg_map(address_map &map) ATTR_COLD;
};
-// video
-
void battlane_state::palette_w(offs_t offset, uint8_t data)
{
int bit0, bit1, bit2;
@@ -300,8 +298,6 @@ uint32_t battlane_state::screen_update(screen_device &screen, bitmap_ind16 &bitm
}
-// machine
-
/*************************************
*
* Memory handlers
@@ -423,7 +419,7 @@ static INPUT_PORTS_START( battlane )
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
- PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_CUSTOM ) PORT_VBLANK("screen")
+ PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_CUSTOM ) PORT_READ_LINE_DEVICE_MEMBER("screen", FUNC(screen_device::vblank))
PORT_START("DSW1")
PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SW1:1,2")