summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes/runaway.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/includes/runaway.h')
-rw-r--r--src/mame/includes/runaway.h19
1 files changed, 12 insertions, 7 deletions
diff --git a/src/mame/includes/runaway.h b/src/mame/includes/runaway.h
index 1205065c186..08bf033c368 100644
--- a/src/mame/includes/runaway.h
+++ b/src/mame/includes/runaway.h
@@ -1,6 +1,7 @@
// license:BSD-3-Clause
// copyright-holders:Mike Balfour
+#include "machine/er2055.h"
#include "emupal.h"
#include "screen.h"
@@ -12,18 +13,24 @@ public:
, m_video_ram(*this, "video_ram")
, m_sprite_ram(*this, "sprite_ram")
, m_maincpu(*this, "maincpu")
+ , m_earom(*this, "earom")
, m_gfxdecode(*this, "gfxdecode")
, m_screen(*this, "screen")
, m_palette(*this, "palette")
- , m_leds(*this, "led%u", 0U)
{ }
+ void qwak(machine_config &config);
+ void runaway(machine_config &config);
+
+protected:
DECLARE_READ8_MEMBER(runaway_input_r);
- DECLARE_WRITE8_MEMBER(runaway_led_w);
DECLARE_WRITE8_MEMBER(runaway_irq_ack_w);
+ DECLARE_READ8_MEMBER(earom_read);
+ DECLARE_WRITE8_MEMBER(earom_write);
+ DECLARE_WRITE8_MEMBER(earom_control_w);
DECLARE_WRITE8_MEMBER(runaway_paletteram_w);
DECLARE_WRITE8_MEMBER(runaway_video_ram_w);
- DECLARE_WRITE8_MEMBER(runaway_tile_bank_w);
+ DECLARE_WRITE_LINE_MEMBER(tile_bank_w);
DECLARE_READ8_MEMBER(runaway_pot_r);
TILE_GET_INFO_MEMBER(runaway_get_tile_info);
TILE_GET_INFO_MEMBER(qwak_get_tile_info);
@@ -31,11 +38,9 @@ public:
uint32_t screen_update_runaway(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
uint32_t screen_update_qwak(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
TIMER_CALLBACK_MEMBER(interrupt_callback);
- void qwak(machine_config &config);
- void runaway(machine_config &config);
void runaway_map(address_map &map);
+ void qwak_map(address_map &map);
-protected:
virtual void machine_start() override;
virtual void machine_reset() override;
virtual void video_start() override;
@@ -46,8 +51,8 @@ protected:
tilemap_t *m_bg_tilemap;
int m_tile_bank;
required_device<cpu_device> m_maincpu;
+ optional_device<er2055_device> m_earom;
required_device<gfxdecode_device> m_gfxdecode;
required_device<screen_device> m_screen;
required_device<palette_device> m_palette;
- output_finder<2> m_leds;
};