Previous 199869 Revisions Next

r19883 Friday 28th December, 2012 at 09:27:53 UTC by Fabio Priuli
c65.c: fixed missing memory allocations so that the driver does not crash anymore. system still not working, though. no whatsnew.
[src/mess/drivers]c65.c
[src/mess/includes]c64_legacy.h c65.h

trunk/src/mess/includes/c64_legacy.h
r19882r19883
3737   legacy_c64_state(const machine_config &mconfig, device_type type, const char *tag)
3838      : driver_device(mconfig, type, tag),
3939        m_iec(*this, CBM_IEC_TAG),
40        m_colorram(*this, "colorram"),
41        m_basic(*this, "basic"),
42        m_chargen(*this, "chargen"),
43        m_kernal(*this, "kernal"),
4044        m_roml_writable(0)
4145    { }
4246
4347   optional_device<cbm_iec_device> m_iec;
44
48   
49   required_shared_ptr<UINT8> m_colorram;
50   required_shared_ptr<UINT8> m_basic;
51   required_shared_ptr<UINT8> m_chargen;
52   required_shared_ptr<UINT8> m_kernal;
53   
4554   DECLARE_READ8_MEMBER( c64_lightpen_x_cb );
4655   DECLARE_READ8_MEMBER( c64_lightpen_y_cb );
4756   DECLARE_READ8_MEMBER( c64_lightpen_button_cb );
r19882r19883
5867   UINT8 m_vicirq;
5968   emu_timer *m_datasette_timer;
6069   emu_timer *m_cartridge_timer;
61   UINT8 *m_colorram;
62   UINT8 *m_basic;
63   UINT8 *m_kernal;
64   UINT8 *m_chargen;
6570   UINT8 *m_memory;
6671   int m_pal;
6772   int m_tape_on;
trunk/src/mess/includes/c65.h
r19882r19883
4141{
4242public:
4343   c65_state(const machine_config &mconfig, device_type type, const char *tag)
44      : legacy_c64_state(mconfig, type, tag) { }
44      : legacy_c64_state(mconfig, type, tag),
45        m_c65_chargen(*this, "c65_chargen"),
46        m_interface(*this, "interface")
47   { }
4548
46   UINT8 *m_chargen;
47   UINT8 *m_interface;
49   required_shared_ptr<UINT8> m_c65_chargen;
50   required_shared_ptr<UINT8> m_interface;
4851   int m_charset_select;
4952   int m_c64mode;
5053   UINT8 m_6511_port;
trunk/src/mess/drivers/c65.c
r19882r19883
8383
8484   AM_RANGE(0x20000, 0x23fff) AM_ROM /* &c65_dos,     maps to 0x8000    */
8585   AM_RANGE(0x24000, 0x28fff) AM_ROM /* reserved */
86   AM_RANGE(0x29000, 0x29fff) AM_ROM AM_SHARE("chargen")
86   AM_RANGE(0x29000, 0x29fff) AM_ROM AM_SHARE("c65_chargen")
8787   AM_RANGE(0x2a000, 0x2bfff) AM_ROM AM_SHARE("basic")
8888   AM_RANGE(0x2c000, 0x2cfff) AM_ROM AM_SHARE("interface")
8989   AM_RANGE(0x2d000, 0x2dfff) AM_ROM AM_SHARE("chargen")

Previous 199869 Revisions Next


© 1997-2024 The MAME Team