summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/drivers/cortex.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mess/drivers/cortex.c')
-rw-r--r--src/mess/drivers/cortex.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mess/drivers/cortex.c b/src/mess/drivers/cortex.c
index 1fedba3397e..04dba11ee24 100644
--- a/src/mess/drivers/cortex.c
+++ b/src/mess/drivers/cortex.c
@@ -25,11 +25,13 @@ class cortex_state : public driver_device
{
public:
cortex_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag) { }
+ : driver_device(mconfig, type, tag) ,
+ m_maincpu(*this, "maincpu") { }
virtual void machine_reset();
virtual void video_start();
UINT32 screen_update_cortex(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
+ required_device<cpu_device> m_maincpu;
};
static ADDRESS_MAP_START( cortex_mem, AS_PROGRAM, 8, cortex_state )