summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/nes/rexsoft.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/nes/rexsoft.h')
-rw-r--r--src/devices/bus/nes/rexsoft.h25
1 files changed, 14 insertions, 11 deletions
diff --git a/src/devices/bus/nes/rexsoft.h b/src/devices/bus/nes/rexsoft.h
index 996b22baf13..61fe876633a 100644
--- a/src/devices/bus/nes/rexsoft.h
+++ b/src/devices/bus/nes/rexsoft.h
@@ -1,7 +1,9 @@
// license:BSD-3-Clause
// copyright-holders:Fabio Priuli
-#ifndef __NES_REXSOFT_H
-#define __NES_REXSOFT_H
+#ifndef MAME_BUS_NES_REXSOFT_H
+#define MAME_BUS_NES_REXSOFT_H
+
+#pragma once
#include "mmc3.h"
@@ -14,8 +16,6 @@ public:
// construction/destruction
nes_rex_dbz5_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_READ8_MEMBER(read_m) override { return read_l(space, offset, mem_mask); }
virtual DECLARE_WRITE8_MEMBER(write_l) override;
@@ -23,6 +23,10 @@ public:
virtual void pcb_reset() override;
+protected:
+ // device-level overrides
+ virtual void device_start() override;
+
private:
uint8_t m_extra;
};
@@ -36,13 +40,14 @@ public:
// construction/destruction
nes_rex_sl1632_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;
+
virtual void set_prg(int prg_base, int prg_mask) override;
virtual void set_chr(uint8_t chr, int chr_base, int chr_mask) override;
@@ -52,10 +57,8 @@ protected:
-
-
// device type definition
-extern const device_type NES_REX_DBZ5;
-extern const device_type NES_REX_SL1632;
+DECLARE_DEVICE_TYPE(NES_REX_DBZ5, nes_rex_dbz5_device)
+DECLARE_DEVICE_TYPE(NES_REX_SL1632, nes_rex_sl1632_device)
-#endif
+#endif // MAME_BUS_NES_REXSOFT_H