diff options
Diffstat (limited to 'src/devices/bus/adam')
-rw-r--r-- | src/devices/bus/adam/exp.cpp | 3 | ||||
-rw-r--r-- | src/devices/bus/adam/exp.h | 2 | ||||
-rw-r--r-- | src/devices/bus/adam/ram.cpp | 3 | ||||
-rw-r--r-- | src/devices/bus/adam/ram.h | 2 |
4 files changed, 4 insertions, 6 deletions
diff --git a/src/devices/bus/adam/exp.cpp b/src/devices/bus/adam/exp.cpp index a6c8b777402..59c677144f3 100644 --- a/src/devices/bus/adam/exp.cpp +++ b/src/devices/bus/adam/exp.cpp @@ -36,8 +36,7 @@ DEFINE_DEVICE_TYPE(ADAM_EXPANSION_SLOT, adam_expansion_slot_device, "adam_expans //------------------------------------------------- device_adam_expansion_slot_card_interface::device_adam_expansion_slot_card_interface(const machine_config &mconfig, device_t &device) : - device_interface(device, "adamexp"), - m_rom(*this, "rom") + device_interface(device, "adamexp") { m_slot = dynamic_cast<adam_expansion_slot_device *>(device.owner()); } diff --git a/src/devices/bus/adam/exp.h b/src/devices/bus/adam/exp.h index 69ed921d5d5..ee74bf0396a 100644 --- a/src/devices/bus/adam/exp.h +++ b/src/devices/bus/adam/exp.h @@ -100,7 +100,7 @@ protected: adam_expansion_slot_device *m_slot; - optional_shared_ptr<uint8_t> m_rom; + std::unique_ptr<uint8_t[]> m_rom; }; diff --git a/src/devices/bus/adam/ram.cpp b/src/devices/bus/adam/ram.cpp index a7e79719867..65dc13f2246 100644 --- a/src/devices/bus/adam/ram.cpp +++ b/src/devices/bus/adam/ram.cpp @@ -30,7 +30,7 @@ DEFINE_DEVICE_TYPE(ADAM_RAM, adam_ram_expansion_device, "adam_ram", "Adam 64KB R adam_ram_expansion_device::adam_ram_expansion_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : device_t(mconfig, ADAM_RAM, tag, owner, clock), device_adam_expansion_slot_card_interface(mconfig, *this), - m_ram(*this, "ram") + m_ram(*this, "ram", 0x10000, ENDIANNESS_LITTLE) { } @@ -41,7 +41,6 @@ adam_ram_expansion_device::adam_ram_expansion_device(const machine_config &mconf void adam_ram_expansion_device::device_start() { - m_ram.allocate(0x10000); } diff --git a/src/devices/bus/adam/ram.h b/src/devices/bus/adam/ram.h index 780d51be726..c1997bf77c4 100644 --- a/src/devices/bus/adam/ram.h +++ b/src/devices/bus/adam/ram.h @@ -37,7 +37,7 @@ protected: virtual void adam_bd_w(offs_t offset, uint8_t data, int bmreq, int biorq, int aux_rom_cs, int cas1, int cas2) override; private: - optional_shared_ptr<uint8_t> m_ram; + memory_share_creator<uint8_t> m_ram; }; |