summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Olivier Galibert <galibert@pobox.com>2017-03-03 14:03:45 +0100
committer Olivier Galibert <galibert@pobox.com>2017-03-03 14:03:45 +0100
commit446108bfe9fd10abe5484b77d70229a4c89cb670 (patch)
tree080e1e67e89b2979b4cf0d5f30efe0a149be98b3
parent47e19d6eff8cc1c1301e16687a15d3ee90c4b074 (diff)
fd1089, fd1094: Device cleanup [O. Galibert]
-rw-r--r--src/devices/cpu/m68000/m68000.h1
-rw-r--r--src/devices/cpu/m68000/m68kcpu.cpp5
-rw-r--r--src/mame/machine/fd1089.cpp2
-rw-r--r--src/mame/machine/fd1094.cpp2
4 files changed, 8 insertions, 2 deletions
diff --git a/src/devices/cpu/m68000/m68000.h b/src/devices/cpu/m68000/m68000.h
index c7b803fefdf..93b39448f6c 100644
--- a/src/devices/cpu/m68000/m68000.h
+++ b/src/devices/cpu/m68000/m68000.h
@@ -404,6 +404,7 @@ public:
// construction/destruction
m68000_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
m68000_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock, const char *shortname, const char *source);
+ m68000_device(const machine_config &mconfig, const device_type type, const char *name, const char *tag, device_t *owner, uint32_t clock, const char *shortname, const char *source);
m68000_device(const machine_config &mconfig, const char *name, const char *tag, device_t *owner, uint32_t clock,
const device_type type, uint32_t prg_data_width, uint32_t prg_address_bits, address_map_constructor internal_map, const char *shortname, const char *source);
diff --git a/src/devices/cpu/m68000/m68kcpu.cpp b/src/devices/cpu/m68000/m68kcpu.cpp
index 44c21eb8818..df2de9e6870 100644
--- a/src/devices/cpu/m68000/m68kcpu.cpp
+++ b/src/devices/cpu/m68000/m68kcpu.cpp
@@ -2524,6 +2524,11 @@ m68000_device::m68000_device(const machine_config &mconfig, const char *tag, dev
{
}
+m68000_device::m68000_device(const machine_config &mconfig, const device_type type, const char *name, const char *tag, device_t *owner, uint32_t clock, const char *shortname, const char *source)
+ : m68000_base_device(mconfig, name, tag, owner, clock, type, 16,24, shortname, source)
+{
+}
+
void m68000_device::device_start()
{
init_cpu_m68000();
diff --git a/src/mame/machine/fd1089.cpp b/src/mame/machine/fd1089.cpp
index 1d6a13c1940..03d4a17c476 100644
--- a/src/mame/machine/fd1089.cpp
+++ b/src/mame/machine/fd1089.cpp
@@ -222,7 +222,7 @@ ADDRESS_MAP_END
//-------------------------------------------------
fd1089_base_device::fd1089_base_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)
- : m68000_device(mconfig, tag, owner, clock, shortname, source),
+ : m68000_device(mconfig, type, name, tag, owner, clock, shortname, source),
m_region(*this, DEVICE_SELF),
m_key(*this, "key"),
m_decrypted_opcodes(*this, ":fd1089_decrypted_opcodes")
diff --git a/src/mame/machine/fd1094.cpp b/src/mame/machine/fd1094.cpp
index 2c81115e82f..a9af8ba32ea 100644
--- a/src/mame/machine/fd1094.cpp
+++ b/src/mame/machine/fd1094.cpp
@@ -553,7 +553,7 @@ uint16_t *fd1094_decryption_cache::decrypted_opcodes(uint8_t state)
fd1094_device::fd1094_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
- : m68000_device(mconfig, tag, owner, clock, "fd1094", __FILE__)
+ : m68000_device(mconfig, FD1094, "FD1094", tag, owner, clock, "fd1094", __FILE__)
, m_decrypted_opcodes_bank(*this, "^fd1094_decrypted_opcodes")
, m_state(0x00)
, m_irqmode(false)