diff options
Diffstat (limited to 'src/devices/cpu/nec/nec.cpp')
-rw-r--r-- | src/devices/cpu/nec/nec.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/devices/cpu/nec/nec.cpp b/src/devices/cpu/nec/nec.cpp index 5e3ca395d0a..3b61283ce41 100644 --- a/src/devices/cpu/nec/nec.cpp +++ b/src/devices/cpu/nec/nec.cpp @@ -105,6 +105,7 @@ ****************************************************************************/ #include "emu.h" +#include "nec.h" #include "debugger.h" typedef uint8_t BOOLEAN; @@ -112,18 +113,17 @@ typedef uint8_t BYTE; typedef uint16_t WORD; typedef uint32_t DWORD; -#include "nec.h" #include "necpriv.h" -const device_type V20 = device_creator<v20_device>; -const device_type V30 = device_creator<v30_device>; -const device_type V33 = device_creator<v33_device>; -const device_type V33A =device_creator<v33a_device>; +DEFINE_DEVICE_TYPE(V20, v20_device, "v20", "V20") +DEFINE_DEVICE_TYPE(V30, v30_device, "v30", "V30") +DEFINE_DEVICE_TYPE(V33, v33_device, "v33", "V33") +DEFINE_DEVICE_TYPE(V33A, v33a_device, "v33a", "V33A") -nec_common_device::nec_common_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, bool is_16bit, offs_t fetch_xor, uint8_t prefetch_size, uint8_t prefetch_cycles, uint32_t chip_type) - : cpu_device(mconfig, type, name, tag, owner, clock, shortname, source) +nec_common_device::nec_common_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, bool is_16bit, offs_t fetch_xor, uint8_t prefetch_size, uint8_t prefetch_cycles, uint32_t chip_type) + : cpu_device(mconfig, type, tag, owner, clock) , m_program_config("program", ENDIANNESS_LITTLE, is_16bit ? 16 : 8, 20, 0) , m_io_config("io", ENDIANNESS_LITTLE, is_16bit ? 16 : 8, 16, 0) , m_fetch_xor(fetch_xor) @@ -135,13 +135,13 @@ nec_common_device::nec_common_device(const machine_config &mconfig, device_type v20_device::v20_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) - : nec_common_device(mconfig, V20, "V20", tag, owner, clock, "v20", __FILE__, false, 0, 4, 4, V20_TYPE) + : nec_common_device(mconfig, V20, tag, owner, clock, false, 0, 4, 4, V20_TYPE) { } v30_device::v30_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) - : nec_common_device(mconfig, V30, "V30", tag, owner, clock, "v30", __FILE__, true, BYTE_XOR_LE(0), 6, 2, V30_TYPE) + : nec_common_device(mconfig, V30, tag, owner, clock, true, BYTE_XOR_LE(0), 6, 2, V30_TYPE) { } @@ -150,13 +150,13 @@ v30_device::v30_device(const machine_config &mconfig, const char *tag, device_t * complete guess below, nbbatman will not work * properly without. */ v33_device::v33_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) - : nec_common_device(mconfig, V33, "V33", tag, owner, clock, "v33", __FILE__, true, BYTE_XOR_LE(0), 6, 1, V33_TYPE) + : nec_common_device(mconfig, V33, tag, owner, clock, true, BYTE_XOR_LE(0), 6, 1, V33_TYPE) { } v33a_device::v33a_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) - : nec_common_device(mconfig, V33A, "V33A", tag, owner, clock, "v33a", __FILE__, true, BYTE_XOR_LE(0), 6, 1, V33_TYPE) + : nec_common_device(mconfig, V33A, tag, owner, clock, true, BYTE_XOR_LE(0), 6, 1, V33_TYPE) { } |