summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/bus/vic20/vic1210.c
diff options
context:
space:
mode:
author Curt Coder <curtcoder@mail.com>2013-12-20 16:04:11 +0000
committer Curt Coder <curtcoder@mail.com>2013-12-20 16:04:11 +0000
commit8c7486fa5d9eb873577770a92bc524770ed402ba (patch)
tree7343677631c224588f7113cd61c40747293de5b8 /src/emu/bus/vic20/vic1210.c
parent7afab9bda2b90efc60412ec7ef3215466b53fb21 (diff)
(MESS) Used shared_ptr instead of UINT8* in the Commodore cartridges. (nw)
Diffstat (limited to 'src/emu/bus/vic20/vic1210.c')
-rw-r--r--src/emu/bus/vic20/vic1210.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/emu/bus/vic20/vic1210.c b/src/emu/bus/vic20/vic1210.c
index c843bb75e90..d4236182142 100644
--- a/src/emu/bus/vic20/vic1210.c
+++ b/src/emu/bus/vic20/vic1210.c
@@ -32,7 +32,8 @@ const device_type VIC1210 = &device_creator<vic1210_device>;
vic1210_device::vic1210_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, VIC1210, "VIC1210", tag, owner, clock, "vic1210", __FILE__),
- device_vic20_expansion_card_interface(mconfig, *this)
+ device_vic20_expansion_card_interface(mconfig, *this),
+ m_ram(*this, "ram")
{
}
@@ -44,7 +45,7 @@ vic1210_device::vic1210_device(const machine_config &mconfig, const char *tag, d
void vic1210_device::device_start()
{
// allocate memory
- m_ram = auto_alloc_array(machine(), UINT8, 0xc00);
+ m_ram.allocate(0xc00);
}