diff options
Diffstat (limited to 'src/devices/cpu/h8/h8s2245.h')
-rw-r--r-- | src/devices/cpu/h8/h8s2245.h | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/src/devices/cpu/h8/h8s2245.h b/src/devices/cpu/h8/h8s2245.h index b5c64aef730..54d6d3a5b27 100644 --- a/src/devices/cpu/h8/h8s2245.h +++ b/src/devices/cpu/h8/h8s2245.h @@ -18,8 +18,10 @@ ***************************************************************************/ -#ifndef __H8S2245_H__ -#define __H8S2245_H__ +#ifndef MAME_CPU_H8_H8S2245_H +#define MAME_CPU_H8_H8S2245_H + +#pragma once #include "h8s2000.h" #include "h8_intc.h" @@ -33,7 +35,6 @@ class h8s2245_device : public h8s2000_device { public: - h8s2245_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); h8s2245_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); DECLARE_READ8_MEMBER(syscr_r); @@ -72,6 +73,8 @@ protected: uint16_t mstpcr; uint8_t syscr; + h8s2245_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, uint32_t start); + virtual bool exr_in_stack() const override; virtual void update_irq_filter() override; virtual void interrupt_taken() override; @@ -101,9 +104,9 @@ public: h8s2246_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); }; -extern const device_type H8S2241; -extern const device_type H8S2242; -extern const device_type H8S2245; -extern const device_type H8S2246; +DECLARE_DEVICE_TYPE(H8S2241, h8s2241_device) +DECLARE_DEVICE_TYPE(H8S2242, h8s2242_device) +DECLARE_DEVICE_TYPE(H8S2245, h8s2245_device) +DECLARE_DEVICE_TYPE(H8S2246, h8s2246_device) -#endif +#endif // MAME_CPU_H8_H8S2245_H |