diff options
Diffstat (limited to 'src/devices/bus/z88/rom.cpp')
-rw-r--r-- | src/devices/bus/z88/rom.cpp | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/src/devices/bus/z88/rom.cpp b/src/devices/bus/z88/rom.cpp index 4ac53bba045..ea1feb603f4 100644 --- a/src/devices/bus/z88/rom.cpp +++ b/src/devices/bus/z88/rom.cpp @@ -19,9 +19,9 @@ // GLOBAL VARIABLES //************************************************************************** -const device_type Z88_32K_ROM = device_creator<z88_32k_rom_device>; -const device_type Z88_128K_ROM = device_creator<z88_128k_rom_device>; -const device_type Z88_256K_ROM = device_creator<z88_256k_rom_device>; +DEFINE_DEVICE_TYPE(Z88_32K_ROM, z88_32k_rom_device, "z88_32k_rom", "Z88 32KB ROM") +DEFINE_DEVICE_TYPE(Z88_128K_ROM, z88_128k_rom_device, "z88_128k_rom", "Z88 128KB ROM") +DEFINE_DEVICE_TYPE(Z88_256K_ROM, z88_256k_rom_device, "z88_256k_rom", "Z88 256KB ROM") //************************************************************************** // LIVE DEVICE @@ -32,15 +32,13 @@ const device_type Z88_256K_ROM = device_creator<z88_256k_rom_device>; //------------------------------------------------- z88_32k_rom_device::z88_32k_rom_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) - : device_t(mconfig, Z88_32K_ROM, "Z88 32KB ROM", tag, owner, clock, "z88_32k_rom", __FILE__), - device_z88cart_interface( mconfig, *this ), m_rom(nullptr) - { + : z88_32k_rom_device(mconfig, Z88_32K_ROM, tag, owner, clock) +{ } -z88_32k_rom_device::z88_32k_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_z88cart_interface( mconfig, *this ), m_rom(nullptr) - { +z88_32k_rom_device::z88_32k_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_z88cart_interface(mconfig, *this), m_rom(nullptr) +{ } //------------------------------------------------- @@ -48,7 +46,7 @@ z88_32k_rom_device::z88_32k_rom_device(const machine_config &mconfig, device_typ //------------------------------------------------- z88_128k_rom_device::z88_128k_rom_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) - : z88_32k_rom_device(mconfig, Z88_128K_ROM, "Z88 128KB ROM", tag, owner, clock, "z88_128k_rom", __FILE__) + : z88_32k_rom_device(mconfig, Z88_128K_ROM, tag, owner, clock) { } @@ -57,7 +55,7 @@ z88_128k_rom_device::z88_128k_rom_device(const machine_config &mconfig, const ch //------------------------------------------------- z88_256k_rom_device::z88_256k_rom_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) - : z88_32k_rom_device(mconfig, Z88_256K_ROM, "Z88 256KB ROM", tag, owner, clock, "z88_256k_rom", __FILE__) + : z88_32k_rom_device(mconfig, Z88_256K_ROM, tag, owner, clock) { } |