summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/nes/mmc2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/nes/mmc2.cpp')
-rw-r--r--src/devices/bus/nes/mmc2.cpp19
1 files changed, 8 insertions, 11 deletions
diff --git a/src/devices/bus/nes/mmc2.cpp b/src/devices/bus/nes/mmc2.cpp
index d1871483a68..1055ce98921 100644
--- a/src/devices/bus/nes/mmc2.cpp
+++ b/src/devices/bus/nes/mmc2.cpp
@@ -28,30 +28,27 @@
// constructor
//-------------------------------------------------
-const device_type NES_PXROM = device_creator<nes_pxrom_device>;
-const device_type NES_FXROM = device_creator<nes_fxrom_device>;
+DEFINE_DEVICE_TYPE(NES_PXROM, nes_pxrom_device, "nes_pxrom", "NES Cart PxROM (MMC-2) PCB")
+DEFINE_DEVICE_TYPE(NES_FXROM, nes_fxrom_device, "nes_fxrom", "NES Cart FxROM (MMC-2) PCB")
-nes_pxrom_device::nes_pxrom_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)
- : nes_nrom_device(mconfig, type, name, tag, owner, clock, shortname, source),
- m_latch1(0),
- m_latch2(0)
- {
+nes_pxrom_device::nes_pxrom_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock)
+ : nes_nrom_device(mconfig, type, tag, owner, clock), m_latch1(0), m_latch2(0)
+{
}
nes_pxrom_device::nes_pxrom_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
- : nes_nrom_device(mconfig, NES_PXROM, "NES Cart PxROM (MMC-2) PCB", tag, owner, clock, "nes_pxrom", __FILE__), m_latch1(0), m_latch2(0)
- {
+ : nes_pxrom_device(mconfig, NES_PXROM, tag, owner, clock)
+{
}
nes_fxrom_device::nes_fxrom_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
- : nes_pxrom_device(mconfig, NES_FXROM, "NES Cart FxROM (MMC-4) PCB", tag, owner, clock, "nes_fxrom", __FILE__)
+ : nes_pxrom_device(mconfig, NES_FXROM, tag, owner, clock)
{
}
-
void nes_pxrom_device::device_start()
{
common_start();