diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2013-03-26 15:18:37 +0000 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2013-03-26 15:18:37 +0000 |
commit | 051011971f9cce5ce1d99a9bfcf691bcf7975448 (patch) | |
tree | 7553b5907c3e67e02e4fd0a20f9f07e21a6c08ca /src/emu/cpu/m6502 | |
parent | ffbe9bdcca43cb1f645cc0387f0835523471b97a (diff) |
Expanded device_t constructor with parameters for short name and source file location [Miodrag Milanovic]
Diffstat (limited to 'src/emu/cpu/m6502')
-rw-r--r-- | src/emu/cpu/m6502/deco16.c | 2 | ||||
-rw-r--r-- | src/emu/cpu/m6502/m3745x.c | 15 | ||||
-rw-r--r-- | src/emu/cpu/m6502/m3745x.h | 5 | ||||
-rw-r--r-- | src/emu/cpu/m6502/m4510.c | 2 | ||||
-rw-r--r-- | src/emu/cpu/m6502/m5074x.c | 21 | ||||
-rw-r--r-- | src/emu/cpu/m6502/m5074x.h | 6 | ||||
-rw-r--r-- | src/emu/cpu/m6502/m6502.c | 6 | ||||
-rw-r--r-- | src/emu/cpu/m6502/m6502.h | 2 | ||||
-rw-r--r-- | src/emu/cpu/m6502/m6504.c | 2 | ||||
-rw-r--r-- | src/emu/cpu/m6502/m6509.c | 2 | ||||
-rw-r--r-- | src/emu/cpu/m6502/m6510.c | 6 | ||||
-rw-r--r-- | src/emu/cpu/m6502/m6510.h | 2 | ||||
-rw-r--r-- | src/emu/cpu/m6502/m6510t.c | 2 | ||||
-rw-r--r-- | src/emu/cpu/m6502/m65c02.c | 6 | ||||
-rw-r--r-- | src/emu/cpu/m6502/m65c02.h | 2 | ||||
-rw-r--r-- | src/emu/cpu/m6502/m65ce02.c | 6 | ||||
-rw-r--r-- | src/emu/cpu/m6502/m65ce02.h | 2 | ||||
-rw-r--r-- | src/emu/cpu/m6502/m65sc02.c | 2 | ||||
-rw-r--r-- | src/emu/cpu/m6502/m740.c | 6 | ||||
-rw-r--r-- | src/emu/cpu/m6502/m740.h | 2 | ||||
-rw-r--r-- | src/emu/cpu/m6502/m7501.c | 2 | ||||
-rw-r--r-- | src/emu/cpu/m6502/m8502.c | 2 | ||||
-rw-r--r-- | src/emu/cpu/m6502/n2a03.c | 2 | ||||
-rw-r--r-- | src/emu/cpu/m6502/r65c02.c | 6 | ||||
-rw-r--r-- | src/emu/cpu/m6502/r65c02.h | 2 |
25 files changed, 51 insertions, 62 deletions
diff --git a/src/emu/cpu/m6502/deco16.c b/src/emu/cpu/m6502/deco16.c index 4be9028acb2..b87122a4d6e 100644 --- a/src/emu/cpu/m6502/deco16.c +++ b/src/emu/cpu/m6502/deco16.c @@ -45,7 +45,7 @@ const device_type DECO16 = &device_creator<deco16_device>; deco16_device::deco16_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : - m6502_device(mconfig, DECO16, "DECO16", tag, owner, clock), + m6502_device(mconfig, DECO16, "DECO16", tag, owner, clock, "deco16", __FILE__), io_config("io", ENDIANNESS_LITTLE, 8, 16) { } diff --git a/src/emu/cpu/m6502/m3745x.c b/src/emu/cpu/m6502/m3745x.c index 7354e9c8075..e1c709589b0 100644 --- a/src/emu/cpu/m6502/m3745x.c +++ b/src/emu/cpu/m6502/m3745x.c @@ -35,8 +35,8 @@ const device_type M37450 = &device_creator<m37450_device>; //------------------------------------------------- // m3745x_device - constructor //------------------------------------------------- -m3745x_device::m3745x_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, address_map_constructor internal_map) : - m740_device(mconfig, type, name, tag, owner, clock), +m3745x_device::m3745x_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, address_map_constructor internal_map, const char *shortname, const char *source) : + m740_device(mconfig, type, name, tag, owner, clock, "m3745x", source), m_program_config("program", ENDIANNESS_LITTLE, 8, 16, 0, internal_map), read_p3(*this), read_p4(*this), @@ -57,11 +57,6 @@ m3745x_device::m3745x_device(const machine_config &mconfig, device_type type, co { } -void m3745x_device::device_config_complete() -{ - m_shortname = "m3745x"; -} - //------------------------------------------------- // device_start - device-specific startup //------------------------------------------------- @@ -496,11 +491,11 @@ static ADDRESS_MAP_START( m37450_map, AS_PROGRAM, 8, m37450_device ) ADDRESS_MAP_END m37450_device::m37450_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : - m3745x_device(mconfig, M37450, "Mitsubishi M37450", tag, owner, clock, ADDRESS_MAP_NAME(m37450_map)) + m3745x_device(mconfig, M37450, "Mitsubishi M37450", tag, owner, clock, ADDRESS_MAP_NAME(m37450_map), "m3745x", __FILE__) { } -m37450_device::m37450_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : - m3745x_device(mconfig, type, name, tag, owner, clock, ADDRESS_MAP_NAME(m37450_map)) +m37450_device::m37450_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) : + m3745x_device(mconfig, type, name, tag, owner, clock, ADDRESS_MAP_NAME(m37450_map), shortname, source) { } diff --git a/src/emu/cpu/m6502/m3745x.h b/src/emu/cpu/m6502/m3745x.h index 83178649083..45cfd2cda5a 100644 --- a/src/emu/cpu/m6502/m3745x.h +++ b/src/emu/cpu/m6502/m3745x.h @@ -59,7 +59,7 @@ public: }; // construction/destruction - m3745x_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, address_map_constructor internal_map); + m3745x_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, address_map_constructor internal_map, const char *shortname, const char *source); const address_space_config m_program_config; @@ -122,7 +122,6 @@ protected: virtual void device_start(); virtual void device_reset(); virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr); - virtual void device_config_complete(); virtual void execute_set_input(int inputnum, int state); virtual const address_space_config *memory_space_config(address_spacenum spacenum) const { return (spacenum == AS_PROGRAM) ? &m_program_config : NULL; } @@ -144,7 +143,7 @@ class m37450_device : public m3745x_device { public: m37450_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); - m37450_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); + m37450_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source); protected: diff --git a/src/emu/cpu/m6502/m4510.c b/src/emu/cpu/m6502/m4510.c index c9b7bda9bd1..826c619d8ff 100644 --- a/src/emu/cpu/m6502/m4510.c +++ b/src/emu/cpu/m6502/m4510.c @@ -43,7 +43,7 @@ const device_type M4510 = &device_creator<m4510_device>; m4510_device::m4510_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : - m65ce02_device(mconfig, M4510, "M4510", tag, owner, clock) + m65ce02_device(mconfig, M4510, "M4510", tag, owner, clock, "m4510", __FILE__) { program_config.m_addrbus_width = 20; program_config.m_logaddr_width = 16; diff --git a/src/emu/cpu/m6502/m5074x.c b/src/emu/cpu/m6502/m5074x.c index a580efa35b8..7c6699f0d7c 100644 --- a/src/emu/cpu/m6502/m5074x.c +++ b/src/emu/cpu/m6502/m5074x.c @@ -37,8 +37,8 @@ const device_type M50741 = &device_creator<m50741_device>; //------------------------------------------------- // m5074x_device - constructor //------------------------------------------------- -m5074x_device::m5074x_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, address_map_constructor internal_map) : - m740_device(mconfig, type, name, tag, owner, clock), +m5074x_device::m5074x_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, address_map_constructor internal_map, const char *shortname, const char *source) : + m740_device(mconfig, type, name, tag, owner, clock, shortname, source), m_program_config("program", ENDIANNESS_LITTLE, 8, 16, 0, internal_map), read_p0(*this), read_p1(*this), @@ -51,11 +51,6 @@ m5074x_device::m5074x_device(const machine_config &mconfig, device_type type, co { } -void m5074x_device::device_config_complete() -{ - m_shortname = "m5074x"; -} - //------------------------------------------------- // device_start - device-specific startup //------------------------------------------------- @@ -483,12 +478,12 @@ static ADDRESS_MAP_START( m50740_map, AS_PROGRAM, 8, m50740_device ) ADDRESS_MAP_END m50740_device::m50740_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : - m5074x_device(mconfig, M50740, "Mitsubishi M50740", tag, owner, clock, ADDRESS_MAP_NAME(m50740_map)) + m5074x_device(mconfig, M50740, "Mitsubishi M50740", tag, owner, clock, ADDRESS_MAP_NAME(m50740_map), "m50740", __FILE__) { } -m50740_device::m50740_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : - m5074x_device(mconfig, type, name, tag, owner, clock, ADDRESS_MAP_NAME(m50740_map)) +m50740_device::m50740_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) : + m5074x_device(mconfig, type, name, tag, owner, clock, ADDRESS_MAP_NAME(m50740_map), shortname, source) { } @@ -502,12 +497,12 @@ static ADDRESS_MAP_START( m50741_map, AS_PROGRAM, 8, m50741_device ) ADDRESS_MAP_END m50741_device::m50741_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : - m5074x_device(mconfig, M50740, "Mitsubishi M50741", tag, owner, clock, ADDRESS_MAP_NAME(m50741_map)) + m5074x_device(mconfig, M50740, "Mitsubishi M50741", tag, owner, clock, ADDRESS_MAP_NAME(m50741_map), "m50741", __FILE__) { } -m50741_device::m50741_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : - m5074x_device(mconfig, type, name, tag, owner, clock, ADDRESS_MAP_NAME(m50741_map)) +m50741_device::m50741_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) : + m5074x_device(mconfig, type, name, tag, owner, clock, ADDRESS_MAP_NAME(m50741_map), shortname, source) { } diff --git a/src/emu/cpu/m6502/m5074x.h b/src/emu/cpu/m6502/m5074x.h index 726eaf59262..18904fec7cf 100644 --- a/src/emu/cpu/m6502/m5074x.h +++ b/src/emu/cpu/m6502/m5074x.h @@ -50,7 +50,7 @@ class m5074x_device : public m740_device public: // construction/destruction - m5074x_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, address_map_constructor internal_map); + m5074x_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, address_map_constructor internal_map, const char *shortname, const char *source); const address_space_config m_program_config; @@ -117,7 +117,7 @@ class m50740_device : public m5074x_device { public: m50740_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); - m50740_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); + m50740_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source); protected: @@ -128,7 +128,7 @@ class m50741_device : public m5074x_device { public: m50741_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); - m50741_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); + m50741_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source); protected: diff --git a/src/emu/cpu/m6502/m6502.c b/src/emu/cpu/m6502/m6502.c index bdcf072142b..89934569ddb 100644 --- a/src/emu/cpu/m6502/m6502.c +++ b/src/emu/cpu/m6502/m6502.c @@ -44,14 +44,14 @@ const device_type M6502 = &device_creator<m6502_device>; m6502_device::m6502_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : - cpu_device(mconfig, M6502, "M6502", tag, owner, clock), + cpu_device(mconfig, M6502, "M6502", tag, owner, clock, "m6502", __FILE__), program_config("program", ENDIANNESS_LITTLE, 8, 16) { direct_disabled = false; } -m6502_device::m6502_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : - cpu_device(mconfig, type, name, tag, owner, clock), +m6502_device::m6502_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) : + cpu_device(mconfig, type, name, tag, owner, clock, shortname, source), program_config("program", ENDIANNESS_LITTLE, 8, 16) { direct_disabled = false; diff --git a/src/emu/cpu/m6502/m6502.h b/src/emu/cpu/m6502/m6502.h index 0588442e9bd..cb2fdb5519a 100644 --- a/src/emu/cpu/m6502/m6502.h +++ b/src/emu/cpu/m6502/m6502.h @@ -53,7 +53,7 @@ public: }; m6502_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); - m6502_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); + m6502_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source); UINT64 get_cycle(); bool get_sync() const { return sync; } diff --git a/src/emu/cpu/m6502/m6504.c b/src/emu/cpu/m6502/m6504.c index c00db50788d..f6f81636c87 100644 --- a/src/emu/cpu/m6502/m6504.c +++ b/src/emu/cpu/m6502/m6504.c @@ -43,7 +43,7 @@ const device_type M6504 = &device_creator<m6504_device>; m6504_device::m6504_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : - m6502_device(mconfig, M6504, "M6504", tag, owner, clock) + m6502_device(mconfig, M6504, "M6504", tag, owner, clock, "m6504", __FILE__) { program_config.m_addrbus_width = 13; } diff --git a/src/emu/cpu/m6502/m6509.c b/src/emu/cpu/m6502/m6509.c index 0cca9aea53a..81608f202a2 100644 --- a/src/emu/cpu/m6502/m6509.c +++ b/src/emu/cpu/m6502/m6509.c @@ -43,7 +43,7 @@ const device_type M6509 = &device_creator<m6509_device>; m6509_device::m6509_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : - m6502_device(mconfig, M6509, "M6509", tag, owner, clock) + m6502_device(mconfig, M6509, "M6509", tag, owner, clock, "m6509", __FILE__) { program_config.m_addrbus_width = 20; program_config.m_logaddr_width = 20; diff --git a/src/emu/cpu/m6502/m6510.c b/src/emu/cpu/m6502/m6510.c index cb28946e3f6..4822fbb18ad 100644 --- a/src/emu/cpu/m6502/m6510.c +++ b/src/emu/cpu/m6502/m6510.c @@ -43,7 +43,7 @@ const device_type M6510 = &device_creator<m6510_device>; m6510_device::m6510_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : - m6502_device(mconfig, M6510, "M6510", tag, owner, clock), + m6502_device(mconfig, M6510, "M6510", tag, owner, clock, "m6510", __FILE__), read_port(*this), write_port(*this) { @@ -51,8 +51,8 @@ m6510_device::m6510_device(const machine_config &mconfig, const char *tag, devic floating = 0x00; } -m6510_device::m6510_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : - m6502_device(mconfig, type, name, tag, owner, clock), +m6510_device::m6510_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) : + m6502_device(mconfig, type, name, tag, owner, clock, shortname, source), read_port(*this), write_port(*this) { diff --git a/src/emu/cpu/m6502/m6510.h b/src/emu/cpu/m6502/m6510.h index 5b33018aabe..224f530b4f9 100644 --- a/src/emu/cpu/m6502/m6510.h +++ b/src/emu/cpu/m6502/m6510.h @@ -51,7 +51,7 @@ class m6510_device : public m6502_device { public: m6510_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); - m6510_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); + m6510_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source); UINT8 get_port(); void set_port(UINT8 val); diff --git a/src/emu/cpu/m6502/m6510t.c b/src/emu/cpu/m6502/m6510t.c index bc6881c1b98..bf248a7cb03 100644 --- a/src/emu/cpu/m6502/m6510t.c +++ b/src/emu/cpu/m6502/m6510t.c @@ -43,6 +43,6 @@ const device_type M6510T = &device_creator<m6510t_device>; m6510t_device::m6510t_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : - m6510_device(mconfig, M6510T, "M6510T", tag, owner, clock) + m6510_device(mconfig, M6510T, "M6510T", tag, owner, clock, "m6510t", __FILE__) { } diff --git a/src/emu/cpu/m6502/m65c02.c b/src/emu/cpu/m6502/m65c02.c index 783505ea268..c3990f9d1b1 100644 --- a/src/emu/cpu/m6502/m65c02.c +++ b/src/emu/cpu/m6502/m65c02.c @@ -44,12 +44,12 @@ const device_type M65C02 = &device_creator<m65c02_device>; m65c02_device::m65c02_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : - m6502_device(mconfig, M65C02, "M65C02", tag, owner, clock) + m6502_device(mconfig, M65C02, "M65C02", tag, owner, clock, "mc65c02", __FILE__) { } -m65c02_device::m65c02_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : - m6502_device(mconfig, type, name, tag, owner, clock) +m65c02_device::m65c02_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) : + m6502_device(mconfig, type, name, tag, owner, clock, shortname, source) { } diff --git a/src/emu/cpu/m6502/m65c02.h b/src/emu/cpu/m6502/m65c02.h index 479578ff745..1fa0d087667 100644 --- a/src/emu/cpu/m6502/m65c02.h +++ b/src/emu/cpu/m6502/m65c02.h @@ -46,7 +46,7 @@ class m65c02_device : public m6502_device { public: m65c02_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); - m65c02_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); + m65c02_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source); static const disasm_entry disasm_entries[0x100]; diff --git a/src/emu/cpu/m6502/m65ce02.c b/src/emu/cpu/m6502/m65ce02.c index f05dc5b2a07..2a1365bc010 100644 --- a/src/emu/cpu/m6502/m65ce02.c +++ b/src/emu/cpu/m6502/m65ce02.c @@ -43,12 +43,12 @@ const device_type M65CE02 = &device_creator<m65ce02_device>; m65ce02_device::m65ce02_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : - m65c02_device(mconfig, M65CE02, "M65CE02", tag, owner, clock) + m65c02_device(mconfig, M65CE02, "M65CE02", tag, owner, clock, "m65ce02", __FILE__) { } -m65ce02_device::m65ce02_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : - m65c02_device(mconfig, type, name, tag, owner, clock) +m65ce02_device::m65ce02_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) : + m65c02_device(mconfig, type, name, tag, owner, clock, shortname, source) { } diff --git a/src/emu/cpu/m6502/m65ce02.h b/src/emu/cpu/m6502/m65ce02.h index 5d8e4391c03..20dbef91e07 100644 --- a/src/emu/cpu/m6502/m65ce02.h +++ b/src/emu/cpu/m6502/m65ce02.h @@ -45,7 +45,7 @@ class m65ce02_device : public m65c02_device { public: m65ce02_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); - m65ce02_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); + m65ce02_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source); static const disasm_entry disasm_entries[0x100]; diff --git a/src/emu/cpu/m6502/m65sc02.c b/src/emu/cpu/m6502/m65sc02.c index a537885a22c..9624ad38dda 100644 --- a/src/emu/cpu/m6502/m65sc02.c +++ b/src/emu/cpu/m6502/m65sc02.c @@ -43,6 +43,6 @@ const device_type M65SC02 = &device_creator<m65sc02_device>; m65sc02_device::m65sc02_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : - r65c02_device(mconfig, M65SC02, "M65SC02", tag, owner, clock) + r65c02_device(mconfig, M65SC02, "M65SC02", tag, owner, clock, "m65sc02", __FILE__) { } diff --git a/src/emu/cpu/m6502/m740.c b/src/emu/cpu/m6502/m740.c index 5ac9b526843..230ff737ecd 100644 --- a/src/emu/cpu/m6502/m740.c +++ b/src/emu/cpu/m6502/m740.c @@ -43,12 +43,12 @@ const device_type M740 = &device_creator<m740_device>; m740_device::m740_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : - m6502_device(mconfig, M740, "M740", tag, owner, clock) + m6502_device(mconfig, M740, "M740", tag, owner, clock, "m740", __FILE__) { } -m740_device::m740_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : - m6502_device(mconfig, type, name, tag, owner, clock) +m740_device::m740_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) : + m6502_device(mconfig, type, name, tag, owner, clock, shortname, source) { } diff --git a/src/emu/cpu/m6502/m740.h b/src/emu/cpu/m6502/m740.h index c37c18df38a..d31834a8c94 100644 --- a/src/emu/cpu/m6502/m740.h +++ b/src/emu/cpu/m6502/m740.h @@ -66,7 +66,7 @@ public: }; m740_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); - m740_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); + m740_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source); virtual void device_start(); virtual void device_reset(); diff --git a/src/emu/cpu/m6502/m7501.c b/src/emu/cpu/m6502/m7501.c index 3f8c000c640..e9324d020a1 100644 --- a/src/emu/cpu/m6502/m7501.c +++ b/src/emu/cpu/m6502/m7501.c @@ -43,6 +43,6 @@ const device_type M7501 = &device_creator<m7501_device>; m7501_device::m7501_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : - m6510_device(mconfig, M7501, "M7501", tag, owner, clock) + m6510_device(mconfig, M7501, "M7501", tag, owner, clock, "m7501", __FILE__) { } diff --git a/src/emu/cpu/m6502/m8502.c b/src/emu/cpu/m6502/m8502.c index cb7dadd2b7b..32c6ac41839 100644 --- a/src/emu/cpu/m6502/m8502.c +++ b/src/emu/cpu/m6502/m8502.c @@ -43,6 +43,6 @@ const device_type M8502 = &device_creator<m8502_device>; m8502_device::m8502_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : - m6510_device(mconfig, M8502, "M8502", tag, owner, clock) + m6510_device(mconfig, M8502, "M8502", tag, owner, clock, "m8502", __FILE__) { } diff --git a/src/emu/cpu/m6502/n2a03.c b/src/emu/cpu/m6502/n2a03.c index 34c922d4194..2ed9055abc0 100644 --- a/src/emu/cpu/m6502/n2a03.c +++ b/src/emu/cpu/m6502/n2a03.c @@ -43,7 +43,7 @@ const device_type N2A03 = &device_creator<n2a03_device>; n2a03_device::n2a03_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : - m6502_device(mconfig, N2A03, "N2A03", tag, owner, clock) + m6502_device(mconfig, N2A03, "N2A03", tag, owner, clock, "n2a03", __FILE__) { } diff --git a/src/emu/cpu/m6502/r65c02.c b/src/emu/cpu/m6502/r65c02.c index eab84ab56c1..ce540b96c06 100644 --- a/src/emu/cpu/m6502/r65c02.c +++ b/src/emu/cpu/m6502/r65c02.c @@ -43,12 +43,12 @@ const device_type R65C02 = &device_creator<r65c02_device>; r65c02_device::r65c02_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : - m65c02_device(mconfig, R65C02, "R65C02", tag, owner, clock) + m65c02_device(mconfig, R65C02, "R65C02", tag, owner, clock, "r65c02", __FILE__) { } -r65c02_device::r65c02_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : - m65c02_device(mconfig, type, name, tag, owner, clock) +r65c02_device::r65c02_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) : + m65c02_device(mconfig, type, name, tag, owner, clock, shortname, source) { } diff --git a/src/emu/cpu/m6502/r65c02.h b/src/emu/cpu/m6502/r65c02.h index 07996fe9ea5..255c2441cfa 100644 --- a/src/emu/cpu/m6502/r65c02.h +++ b/src/emu/cpu/m6502/r65c02.h @@ -45,7 +45,7 @@ class r65c02_device : public m65c02_device { public: r65c02_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); - r65c02_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); + r65c02_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source); static const disasm_entry disasm_entries[0x100]; |