diff options
Diffstat (limited to 'src/devices/bus/pet')
-rw-r--r-- | src/devices/bus/pet/64k.cpp | 5 | ||||
-rw-r--r-- | src/devices/bus/pet/64k.h | 2 | ||||
-rw-r--r-- | src/devices/bus/pet/superpet.cpp | 5 | ||||
-rw-r--r-- | src/devices/bus/pet/superpet.h | 2 |
4 files changed, 4 insertions, 10 deletions
diff --git a/src/devices/bus/pet/64k.cpp b/src/devices/bus/pet/64k.cpp index 85f91114386..7e335ba97ff 100644 --- a/src/devices/bus/pet/64k.cpp +++ b/src/devices/bus/pet/64k.cpp @@ -79,7 +79,7 @@ inline void pet_64k_expansion_device::write_ram(offs_t offset, uint8_t data) pet_64k_expansion_device::pet_64k_expansion_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : device_t(mconfig, PET_64K, tag, owner, clock), device_pet_expansion_card_interface(mconfig, *this), - m_ram(*this, "ram"), + m_ram(*this, "ram", 0x10000, ENDIANNESS_LITTLE), m_ctrl(0) { } @@ -91,9 +91,6 @@ pet_64k_expansion_device::pet_64k_expansion_device(const machine_config &mconfig void pet_64k_expansion_device::device_start() { - // allocate memory - m_ram.allocate(0x10000); - // state saving save_item(NAME(m_ctrl)); } diff --git a/src/devices/bus/pet/64k.h b/src/devices/bus/pet/64k.h index 7cf03cd621b..6b55cc3098e 100644 --- a/src/devices/bus/pet/64k.h +++ b/src/devices/bus/pet/64k.h @@ -41,7 +41,7 @@ private: inline uint8_t read_ram(offs_t offset); inline void write_ram(offs_t offset, uint8_t data); - optional_shared_ptr<uint8_t> m_ram; + memory_share_creator<uint8_t> m_ram; uint8_t m_ctrl; }; diff --git a/src/devices/bus/pet/superpet.cpp b/src/devices/bus/pet/superpet.cpp index 77ec57b5c46..df5c0071600 100644 --- a/src/devices/bus/pet/superpet.cpp +++ b/src/devices/bus/pet/superpet.cpp @@ -173,7 +173,7 @@ superpet_device::superpet_device(const machine_config &mconfig, const char *tag, m_acia(*this, MOS6551_TAG), m_dongle(*this, MOS6702_TAG), m_rom(*this, M6809_TAG), - m_ram(*this, "ram"), + m_ram(*this, "ram", 0x10000, ENDIANNESS_LITTLE), m_io_sw1(*this, "SW1"), m_io_sw2(*this, "SW2"), m_system(0), @@ -191,9 +191,6 @@ superpet_device::superpet_device(const machine_config &mconfig, const char *tag, void superpet_device::device_start() { - // allocate memory - m_ram.allocate(0x10000); - // state saving save_item(NAME(m_system)); save_item(NAME(m_bank)); diff --git a/src/devices/bus/pet/superpet.h b/src/devices/bus/pet/superpet.h index 097a4b45cd4..56c07df525f 100644 --- a/src/devices/bus/pet/superpet.h +++ b/src/devices/bus/pet/superpet.h @@ -59,7 +59,7 @@ private: required_device<mos6551_device> m_acia; required_device<mos6702_device> m_dongle; required_memory_region m_rom; - optional_shared_ptr<uint8_t> m_ram; + memory_share_creator<uint8_t> m_ram; required_ioport m_io_sw1; required_ioport m_io_sw2; |