diff options
Diffstat (limited to 'src/devices/bus/nes/txc.h')
-rw-r--r-- | src/devices/bus/nes/txc.h | 40 |
1 files changed, 23 insertions, 17 deletions
diff --git a/src/devices/bus/nes/txc.h b/src/devices/bus/nes/txc.h index b8c11dddd20..efc32b58368 100644 --- a/src/devices/bus/nes/txc.h +++ b/src/devices/bus/nes/txc.h @@ -1,7 +1,9 @@ // license:BSD-3-Clause // copyright-holders:Fabio Priuli -#ifndef __NES_TXC_H -#define __NES_TXC_H +#ifndef MAME_BUS_NES_TXC_H +#define MAME_BUS_NES_TXC_H + +#pragma once #include "nxrom.h" @@ -12,11 +14,8 @@ class nes_txc_22211_device : public nes_nrom_device { public: // construction/destruction - nes_txc_22211_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); nes_txc_22211_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - // device-level overrides - virtual void device_start() override; virtual DECLARE_READ8_MEMBER(read_l) override; virtual DECLARE_WRITE8_MEMBER(write_l) override; virtual DECLARE_WRITE8_MEMBER(write_h) override; @@ -24,6 +23,11 @@ public: virtual void pcb_reset() override; protected: + nes_txc_22211_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; + uint8_t m_reg[4]; }; @@ -62,11 +66,13 @@ public: // construction/destruction nes_txc_strikew_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - // device-level overrides - virtual void device_start() override; virtual DECLARE_WRITE8_MEMBER(write_h) override; virtual void pcb_reset() override; + +protected: + // device-level overrides + virtual void device_start() override; }; @@ -78,22 +84,22 @@ public: // construction/destruction nes_txc_commandos_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - // device-level overrides - virtual void device_start() override; virtual DECLARE_READ8_MEMBER(read_l) override; virtual DECLARE_WRITE8_MEMBER(write_h) override; virtual void pcb_reset() override; -}; - +protected: + // device-level overrides + virtual void device_start() override; +}; // device type definition -extern const device_type NES_TXC_22211; -extern const device_type NES_TXC_DUMARACING; -extern const device_type NES_TXC_MJBLOCK; -extern const device_type NES_TXC_STRIKEW; -extern const device_type NES_TXC_COMMANDOS; +DECLARE_DEVICE_TYPE(NES_TXC_22211, nes_txc_22211_device) +DECLARE_DEVICE_TYPE(NES_TXC_DUMARACING, nes_txc_dumarac_device) +DECLARE_DEVICE_TYPE(NES_TXC_MJBLOCK, nes_txc_mjblock_device) +DECLARE_DEVICE_TYPE(NES_TXC_STRIKEW, nes_txc_strikew_device) +DECLARE_DEVICE_TYPE(NES_TXC_COMMANDOS, nes_txc_commandos_device) -#endif +#endif // MAME_BUS_NES_TXC_H |