summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
authorGravatarGravatar smf- <smf-@users.noreply.github.com>2014-01-10 19:09:27 +0000
committerGravatarGravatar smf- <smf-@users.noreply.github.com>2014-01-10 19:09:27 +0000
commitf2bdaa6b2518f6c2eeb104ce23d8d84c8a4685c6 (patch)
tree24aa61c5e243bb399f340c6b3e9aa300a5ed04db /src
parentc921b9e1710a81cc43f41d8801c7aaf5d1688de5 (diff)
Stop ec65k from crashing by creating it's own class, the hardware appears very different to ec65 anyway (nw)
Diffstat (limited to 'src')
-rw-r--r--src/mess/drivers/ec65.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/mess/drivers/ec65.c b/src/mess/drivers/ec65.c
index f714115f92f..9198a251ff9 100644
--- a/src/mess/drivers/ec65.c
+++ b/src/mess/drivers/ec65.c
@@ -35,14 +35,23 @@ public:
DECLARE_WRITE8_MEMBER(kbd_put);
UINT8 *m_p_chargen;
- optional_device<via6522_device> m_via_0;
- optional_device<via6522_device> m_via_1;
+ required_device<via6522_device> m_via_0;
+ required_device<via6522_device> m_via_1;
required_shared_ptr<UINT8> m_p_videoram;
virtual void machine_reset();
virtual void video_start();
required_device<cpu_device> m_maincpu;
};
+class ec65k_state : public driver_device
+{
+public:
+ ec65k_state(const machine_config &mconfig, device_type type, const char *tag)
+ : driver_device(mconfig, type, tag)
+ {
+ }
+};
+
static ADDRESS_MAP_START(ec65_mem, AS_PROGRAM, 8, ec65_state)
ADDRESS_MAP_UNMAP_HIGH
AM_RANGE(0x0000, 0xdfff) AM_RAM
@@ -217,7 +226,7 @@ static MACHINE_CONFIG_START( ec65, ec65_state )
MCFG_ASCII_KEYBOARD_ADD(KEYBOARD_TAG, keyboard_intf)
MACHINE_CONFIG_END
-static MACHINE_CONFIG_START( ec65k, ec65_state )
+static MACHINE_CONFIG_START( ec65k, ec65k_state )
/* basic machine hardware */
MCFG_CPU_ADD("maincpu",G65816, XTAL_4MHz) // can use 4,2 or 1 MHz