diff options
Diffstat (limited to 'src/devices/cpu/tms1000/tms0970.h')
-rw-r--r-- | src/devices/cpu/tms1000/tms0970.h | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/src/devices/cpu/tms1000/tms0970.h b/src/devices/cpu/tms1000/tms0970.h index ca436163374..3fb46975a3e 100644 --- a/src/devices/cpu/tms1000/tms0970.h +++ b/src/devices/cpu/tms1000/tms0970.h @@ -6,8 +6,10 @@ */ -#ifndef _TMS0970_H_ -#define _TMS0970_H_ +#ifndef MAME_CPU_TMS1000_TMS0970_H +#define MAME_CPU_TMS1000_TMS0970_H + +#pragma once #include "tms1000.h" @@ -16,9 +18,10 @@ class tms0970_cpu_device : public tms1000_cpu_device { public: tms0970_cpu_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); - tms0970_cpu_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, u32 clock, u8 o_pins, u8 r_pins, u8 pc_bits, u8 byte_bits, u8 x_bits, int prgwidth, address_map_constructor program, int datawidth, address_map_constructor data, const char *shortname, const char *source); protected: + tms0970_cpu_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, u8 o_pins, u8 r_pins, u8 pc_bits, u8 byte_bits, u8 x_bits, int prgwidth, address_map_constructor program, int datawidth, address_map_constructor data); + // overrides virtual void device_reset() override; virtual machine_config_constructor device_mconfig_additions() const override; @@ -39,8 +42,8 @@ protected: virtual void device_reset() override { tms1000_cpu_device::device_reset(); } virtual machine_config_constructor device_mconfig_additions() const override; - virtual void op_rstr() override { ; } // assume it has no RSTR or CLO - virtual void op_clo() override { ; } // " + virtual void op_rstr() override { } // assume it has no RSTR or CLO + virtual void op_clo() override { } // " }; class tms1990_cpu_device : public tms0970_cpu_device @@ -50,8 +53,8 @@ public: }; -extern const device_type TMS0950; -extern const device_type TMS0970; -extern const device_type TMS1990; +DECLARE_DEVICE_TYPE(TMS0950, tms0950_cpu_device) +DECLARE_DEVICE_TYPE(TMS0970, tms0970_cpu_device) +DECLARE_DEVICE_TYPE(TMS1990, tms1990_cpu_device) -#endif /* _TMS0970_H_ */ +#endif // MAME_CPU_TMS1000_TMS0970_H |