diff options
Diffstat (limited to 'src/devices/bus/scv/rom.cpp')
-rw-r--r-- | src/devices/bus/scv/rom.cpp | 42 |
1 files changed, 20 insertions, 22 deletions
diff --git a/src/devices/bus/scv/rom.cpp b/src/devices/bus/scv/rom.cpp index 2507219be4a..be0dc7aea2c 100644 --- a/src/devices/bus/scv/rom.cpp +++ b/src/devices/bus/scv/rom.cpp @@ -17,55 +17,53 @@ // scv_rom_device - constructor //------------------------------------------------- -const device_type SCV_ROM8K = device_creator<scv_rom8_device>; -const device_type SCV_ROM16K = device_creator<scv_rom16_device>; -const device_type SCV_ROM32K = device_creator<scv_rom32_device>; -const device_type SCV_ROM32K_RAM8K = device_creator<scv_rom32ram8_device>; -const device_type SCV_ROM64K = device_creator<scv_rom64_device>; -const device_type SCV_ROM128K = device_creator<scv_rom128_device>; -const device_type SCV_ROM128K_RAM4K = device_creator<scv_rom128ram4_device>; +DEFINE_DEVICE_TYPE(SCV_ROM8K, scv_rom8_device, "scv_rom8", "SCV 8K Carts") +DEFINE_DEVICE_TYPE(SCV_ROM16K, scv_rom16_device, "scv_rom16", "SCV 16K Carts") +DEFINE_DEVICE_TYPE(SCV_ROM32K, scv_rom32_device, "scv_rom32", "SCV 32K Carts") +DEFINE_DEVICE_TYPE(SCV_ROM32K_RAM8K, scv_rom32ram8_device, "scv_rom32_ram8", "SCV 32K + RAM 8K Carts") +DEFINE_DEVICE_TYPE(SCV_ROM64K, scv_rom64_device, "scv_rom64", "SCV 64K Carts") +DEFINE_DEVICE_TYPE(SCV_ROM128K, scv_rom128_device, "scv_rom128", "SCV 128K Carts") +DEFINE_DEVICE_TYPE(SCV_ROM128K_RAM4K, scv_rom128ram4_device, "scv_rom128_ram4", "SCV 128K + RAM 4K Carts") -scv_rom8_device::scv_rom8_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_scv_cart_interface( mconfig, *this ) +scv_rom8_device::scv_rom8_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_scv_cart_interface(mconfig, *this) { } scv_rom8_device::scv_rom8_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) - : device_t(mconfig, SCV_ROM8K, "SCV 8K Carts", tag, owner, clock, "scv_rom8", __FILE__), - device_scv_cart_interface( mconfig, *this ) + : scv_rom8_device(mconfig, SCV_ROM8K, tag, owner, clock) { } scv_rom16_device::scv_rom16_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) - : scv_rom8_device(mconfig, SCV_ROM16K, "SCV 16K Carts", tag, owner, clock, "scv_rom16", __FILE__) + : scv_rom8_device(mconfig, SCV_ROM16K, tag, owner, clock) { } scv_rom32_device::scv_rom32_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) - : scv_rom8_device(mconfig, SCV_ROM32K, "SCV 32K Carts", tag, owner, clock, "scv_rom32", __FILE__) + : scv_rom8_device(mconfig, SCV_ROM32K, tag, owner, clock) { } scv_rom32ram8_device::scv_rom32ram8_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) - : scv_rom8_device(mconfig, SCV_ROM32K_RAM8K, "SCV 32K + RAM 8K Carts", tag, owner, clock, "scv_rom32_ram8", __FILE__), m_ram_enabled(0) - { + : scv_rom8_device(mconfig, SCV_ROM32K_RAM8K, tag, owner, clock), m_ram_enabled(0) +{ } scv_rom64_device::scv_rom64_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) - : scv_rom8_device(mconfig, SCV_ROM64K, "SCV 64K Carts", tag, owner, clock, "scv_rom64", __FILE__), m_bank_base(0) - { + : scv_rom8_device(mconfig, SCV_ROM64K, tag, owner, clock), m_bank_base(0) +{ } scv_rom128_device::scv_rom128_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) - : scv_rom8_device(mconfig, SCV_ROM128K, "SCV 128K Carts", tag, owner, clock, "scv_rom128", __FILE__), m_bank_base(0) - { + : scv_rom8_device(mconfig, SCV_ROM128K, tag, owner, clock), m_bank_base(0) +{ } scv_rom128ram4_device::scv_rom128ram4_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) - : scv_rom8_device(mconfig, SCV_ROM128K_RAM4K, "SCV 128K + RAM 4K Carts", tag, owner, clock, "scv_rom128_ram4", __FILE__), m_bank_base(0), m_ram_enabled(0) - { + : scv_rom8_device(mconfig, SCV_ROM128K_RAM4K, tag, owner, clock), m_bank_base(0), m_ram_enabled(0) +{ } |