summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/tms9900/tms9995.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/cpu/tms9900/tms9995.h')
-rw-r--r--src/devices/cpu/tms9900/tms9995.h17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/devices/cpu/tms9900/tms9995.h b/src/devices/cpu/tms9900/tms9995.h
index cbbaaa0c3ce..f9e63051b4c 100644
--- a/src/devices/cpu/tms9900/tms9995.h
+++ b/src/devices/cpu/tms9900/tms9995.h
@@ -7,15 +7,17 @@
Also see tms9900.h for types of TMS99xx processors.
*/
-#ifndef __TMS9995_H__
-#define __TMS9995_H__
+#ifndef MAME_CPU_TMS9995_TMS9995_H
+#define MAME_CPU_TMS9995_TMS9995_H
+
+#pragma once
#include "debugger.h"
#include "tms99com.h"
// device type definition
-extern const device_type TMS9995;
-extern const device_type TMS9995_MP9537;
+DECLARE_DEVICE_TYPE(TMS9995, tms9995_device)
+DECLARE_DEVICE_TYPE(TMS9995_MP9537, tms9995_mp9537_device)
enum
{
@@ -48,7 +50,6 @@ class tms9995_device : public cpu_device
{
public:
tms9995_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
- tms9995_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);
// READY input line. When asserted (high), the memory is ready for data exchange.
// We chose to use a direct method instead of a delegate to keep performance
@@ -78,6 +79,8 @@ public:
void set_overflow_interrupt( int enable ) { m_check_overflow = (enable!=0); }
protected:
+ tms9995_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock);
+
// device-level overrides
virtual void device_start() override;
virtual void device_stop() override;
@@ -438,10 +441,10 @@ class tms9995_mp9537_device : public tms9995_device
{
public:
tms9995_mp9537_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
- : tms9995_device(mconfig, TMS9995_MP9537, "TMS9995-MP9537", tag, owner, clock, "tms9995_mp9537", __FILE__)
+ : tms9995_device(mconfig, TMS9995_MP9537, tag, owner, clock)
{
m_mp9537 = true;
}
};
-#endif /* __TMS9995_H__ */
+#endif // MAME_CPU_TMS9995_TMS9995_H