summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes/namcona1.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/includes/namcona1.h')
-rw-r--r--src/mame/includes/namcona1.h20
1 files changed, 16 insertions, 4 deletions
diff --git a/src/mame/includes/namcona1.h b/src/mame/includes/namcona1.h
index 697fa5accbf..b9e8392e034 100644
--- a/src/mame/includes/namcona1.h
+++ b/src/mame/includes/namcona1.h
@@ -35,9 +35,12 @@ public:
m_scroll(*this, "scroll"),
m_spriteram(*this, "spriteram"),
m_prgrom(*this, "maincpu"),
- m_maskrom(*this, "maskrom")
+ m_maskrom(*this, "maskrom"),
+ m_scan_timer(nullptr)
{ }
+ void namcona_base(machine_config &config);
+ void c69(machine_config &config);
void namcona1(machine_config &config);
void init_bkrtmaq();
@@ -49,6 +52,9 @@ public:
void init_emeraldj();
void init_swcourtb();
+ void namcona1_mcu_io_map(address_map &map);
+ void namcona1_mcu_map(address_map &map);
+
protected:
DECLARE_READ16_MEMBER(custom_key_r);
DECLARE_WRITE16_MEMBER(custom_key_w);
@@ -76,13 +82,12 @@ protected:
DECLARE_READ16_MEMBER(snd_r);
DECLARE_WRITE16_MEMBER(snd_w);
+ virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- TIMER_DEVICE_CALLBACK_MEMBER(interrupt);
+ void scanline_interrupt(int scanline);
void namcona1_main_map(address_map &map);
- void namcona1_mcu_io_map(address_map &map);
- void namcona1_mcu_map(address_map &map);
void namcona1_c140_map(address_map &map);
virtual void machine_start() override;
@@ -105,6 +110,11 @@ protected:
NAMCO_SWCOURTB
};
+ enum
+ {
+ TIMER_SCANLINE
+ };
+
int m_gametype;
required_device<cpu_device> m_maincpu;
@@ -128,6 +138,7 @@ protected:
required_region_ptr<uint16_t> m_prgrom;
required_region_ptr<uint16_t> m_maskrom;
+ emu_timer * m_scan_timer;
// this has to be uint8_t to be in the right byte order for the tilemap system
std::vector<uint8_t> m_shaperam;
@@ -172,6 +183,7 @@ public:
: namcona1_state(mconfig, type, tag)
{}
+ void c70(machine_config &config);
void namcona2(machine_config &config);
void init_knckhead();