summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/includes/c65.h
diff options
context:
space:
mode:
author Fabio Priuli <etabeta78@users.noreply.github.com>2012-12-28 09:27:53 +0000
committer Fabio Priuli <etabeta78@users.noreply.github.com>2012-12-28 09:27:53 +0000
commitfd02bde48420bdd98731d3739bee6a8b1d8c9b0f (patch)
treed7485c19f8f65c28cc9b9f2af7f76fdb7c8fe2ea /src/mess/includes/c65.h
parent4281522dfab301d14bcf07cb2156bb35ce00f322 (diff)
c65.c: fixed missing memory allocations so that the driver does not crash anymore. system still not working, though. no whatsnew.
Diffstat (limited to 'src/mess/includes/c65.h')
-rw-r--r--src/mess/includes/c65.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mess/includes/c65.h b/src/mess/includes/c65.h
index 1459216fab8..cd55fe61272 100644
--- a/src/mess/includes/c65.h
+++ b/src/mess/includes/c65.h
@@ -41,10 +41,13 @@ class c65_state : public legacy_c64_state
{
public:
c65_state(const machine_config &mconfig, device_type type, const char *tag)
- : legacy_c64_state(mconfig, type, tag) { }
+ : legacy_c64_state(mconfig, type, tag),
+ m_c65_chargen(*this, "c65_chargen"),
+ m_interface(*this, "interface")
+ { }
- UINT8 *m_chargen;
- UINT8 *m_interface;
+ required_shared_ptr<UINT8> m_c65_chargen;
+ required_shared_ptr<UINT8> m_interface;
int m_charset_select;
int m_c64mode;
UINT8 m_6511_port;