summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/megadrive/jcart.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/megadrive/jcart.cpp')
-rw-r--r--src/devices/bus/megadrive/jcart.cpp36
1 files changed, 16 insertions, 20 deletions
diff --git a/src/devices/bus/megadrive/jcart.cpp b/src/devices/bus/megadrive/jcart.cpp
index 06ed2720eff..d432e8f135b 100644
--- a/src/devices/bus/megadrive/jcart.cpp
+++ b/src/devices/bus/megadrive/jcart.cpp
@@ -35,43 +35,39 @@
// md_rom_device - constructor
//-------------------------------------------------
-const device_type MD_JCART = device_creator<md_jcart_device>;
-const device_type MD_SEPROM_CODEMAST = device_creator<md_seprom_codemast_device>;
-const device_type MD_SEPROM_MM96 = device_creator<md_seprom_mm96_device>;
+DEFINE_DEVICE_TYPE(MD_JCART, md_jcart_device, "md_jcart", "MD J-Cart games")
+DEFINE_DEVICE_TYPE(MD_SEPROM_CODEMAST, md_seprom_codemast_device, "md_seprom_codemast", "MD J-Cart games + SEPROM")
+DEFINE_DEVICE_TYPE(MD_SEPROM_MM96, md_seprom_mm96_device, "md_seprom_mm96", "MD Micro Machine 96")
// Sampras, Super Skidmarks?
-md_jcart_device::md_jcart_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_md_cart_interface( mconfig, *this ),
- m_jcart3(*this, "JCART3"),
- m_jcart4(*this, "JCART4")
+md_jcart_device::md_jcart_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_md_cart_interface(mconfig, *this)
+ , m_jcart3(*this, "JCART3")
+ , m_jcart4(*this, "JCART4")
{
}
md_jcart_device::md_jcart_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
- : device_t(mconfig, MD_JCART, "MD J-Cart games", tag, owner, clock, "md_jcart", __FILE__),
- device_md_cart_interface( mconfig, *this ),
- m_jcart3(*this, "JCART3"),
- m_jcart4(*this, "JCART4")
+ : md_jcart_device(mconfig, MD_JCART, tag, owner, clock)
{
}
// Micro Machines 2, Micro Machines Military
-md_seprom_codemast_device::md_seprom_codemast_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)
- : md_jcart_device(mconfig, type, name, tag, owner, clock, shortname, source),
- m_i2cmem(*this, "i2cmem"), m_i2c_mem(0), m_i2c_clk(0)
- {
+md_seprom_codemast_device::md_seprom_codemast_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock)
+ : md_jcart_device(mconfig, type, tag, owner, clock)
+ , m_i2cmem(*this, "i2cmem"), m_i2c_mem(0), m_i2c_clk(0)
+{
}
md_seprom_codemast_device::md_seprom_codemast_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
- : md_jcart_device(mconfig, MD_SEPROM_CODEMAST, "MD J-Cart games + SEPROM", tag, owner, clock, "md_seprom_codemast", __FILE__),
- m_i2cmem(*this, "i2cmem"), m_i2c_mem(0), m_i2c_clk(0)
- {
+ : md_seprom_codemast_device(mconfig, MD_SEPROM_CODEMAST, tag, owner, clock)
+{
}
// Micro Machines 96
md_seprom_mm96_device::md_seprom_mm96_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
- : md_seprom_codemast_device(mconfig, MD_SEPROM_MM96, "MD Micro Machine 96", tag, owner, clock, "md_seprom_mm96", __FILE__)
+ : md_seprom_codemast_device(mconfig, MD_SEPROM_MM96, tag, owner, clock)
{
}