diff options
Diffstat (limited to 'src/devices/bus/iq151/rom.cpp')
-rw-r--r-- | src/devices/bus/iq151/rom.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/src/devices/bus/iq151/rom.cpp b/src/devices/bus/iq151/rom.cpp index 076efa1f5a2..94658c100db 100644 --- a/src/devices/bus/iq151/rom.cpp +++ b/src/devices/bus/iq151/rom.cpp @@ -27,11 +27,11 @@ ROM_END // GLOBAL VARIABLES //************************************************************************** -const device_type IQ151_BASIC6 = device_creator<iq151_basic6_device>; -const device_type IQ151_BASICG = device_creator<iq151_basicg_device>; -const device_type IQ151_AMOS1 = device_creator<iq151_amos1_device>; -const device_type IQ151_AMOS2 = device_creator<iq151_amos2_device>; -const device_type IQ151_AMOS3 = device_creator<iq151_amos3_device>; +DEFINE_DEVICE_TYPE(IQ151_BASIC6, iq151_basic6_device, "iq151_basic6", "IQ151 BASIC6") +DEFINE_DEVICE_TYPE(IQ151_BASICG, iq151_basicg_device, "iq151_basicg", "IQ151 BASICG") +DEFINE_DEVICE_TYPE(IQ151_AMOS1, iq151_amos1_device, "iq151_amos1", "IQ151 AMOS cart 1") +DEFINE_DEVICE_TYPE(IQ151_AMOS2, iq151_amos2_device, "iq151_amos2", "IQ151 AMOS cart 2") +DEFINE_DEVICE_TYPE(IQ151_AMOS3, iq151_amos3_device, "iq151_amos3", "IQ151 AMOS cart 3") //************************************************************************** // LIVE DEVICE @@ -41,9 +41,10 @@ const device_type IQ151_AMOS3 = device_creator<iq151_amos3_device>; // iq151_rom_device - constructor //------------------------------------------------- -iq151_rom_device::iq151_rom_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, uint32_t clock, const char *shortname, const char *source) : - device_t(mconfig, type, name, tag, owner, clock, shortname, source), - device_iq151cart_interface(mconfig, *this), m_rom(nullptr) +iq151_rom_device::iq151_rom_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock) : + device_t(mconfig, type, tag, owner, clock), + device_iq151cart_interface(mconfig, *this), + m_rom(*this, "rom") { } @@ -53,7 +54,6 @@ iq151_rom_device::iq151_rom_device(const machine_config &mconfig, device_type ty void iq151_rom_device::device_start() { - m_rom = (uint8_t*)memregion("rom")->base(); } //------------------------------------------------- @@ -84,7 +84,7 @@ uint8_t* iq151_rom_device::get_cart_base() //------------------------------------------------- iq151_basic6_device::iq151_basic6_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) - : iq151_rom_device(mconfig, IQ151_BASIC6, "IQ151 BASIC6", tag, owner, clock, "iq151_basic6", __FILE__) + : iq151_rom_device(mconfig, IQ151_BASIC6, tag, owner, clock) { } @@ -109,7 +109,7 @@ void iq151_basic6_device::read(offs_t offset, uint8_t &data) //------------------------------------------------- iq151_basicg_device::iq151_basicg_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) - : iq151_rom_device(mconfig, IQ151_BASICG, "IQ151 BASICG", tag, owner, clock, "iq151_basicg", __FILE__) + : iq151_rom_device(mconfig, IQ151_BASICG, tag, owner, clock) { } @@ -135,8 +135,8 @@ void iq151_basicg_device::read(offs_t offset, uint8_t &data) //------------------------------------------------- iq151_amos1_device::iq151_amos1_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) - : iq151_rom_device(mconfig, IQ151_AMOS1, "IQ151 AMOS cart 1", tag, owner, clock, "iq151_amos1", __FILE__), - m_active(true) + : iq151_rom_device(mconfig, IQ151_AMOS1, tag, owner, clock) + , m_active(true) { } @@ -169,8 +169,8 @@ void iq151_amos1_device::io_write(offs_t offset, uint8_t data) //------------------------------------------------- iq151_amos2_device::iq151_amos2_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) - : iq151_rom_device(mconfig, IQ151_AMOS2, "IQ151 AMOS cart 2", tag, owner, clock, "iq151_amos2", __FILE__), - m_active(false) + : iq151_rom_device(mconfig, IQ151_AMOS2, tag, owner, clock) + , m_active(false) { } @@ -203,8 +203,8 @@ void iq151_amos2_device::io_write(offs_t offset, uint8_t data) //------------------------------------------------- iq151_amos3_device::iq151_amos3_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) - : iq151_rom_device(mconfig, IQ151_AMOS3, "IQ151 AMOS cart 3", tag, owner, clock, "iq151_amos3", __FILE__), - m_active(true) + : iq151_rom_device(mconfig, IQ151_AMOS3, tag, owner, clock) + , m_active(true) { } |