summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/m6502/m3745x.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/cpu/m6502/m3745x.h')
-rw-r--r--src/devices/cpu/m6502/m3745x.h20
1 files changed, 11 insertions, 9 deletions
diff --git a/src/devices/cpu/m6502/m3745x.h b/src/devices/cpu/m6502/m3745x.h
index 6b85aee9c20..2b592ae4e9e 100644
--- a/src/devices/cpu/m6502/m3745x.h
+++ b/src/devices/cpu/m6502/m3745x.h
@@ -1,9 +1,9 @@
// license:BSD-3-Clause
// copyright-holders:Olivier Galibert
-#pragma once
+#ifndef MAME_CPU_M6502_M3745X_H
+#define MAME_CPU_M6502_M3745X_H
-#ifndef __M3745X_H__
-#define __M3745X_H__
+#pragma once
#include "m740.h"
@@ -60,9 +60,6 @@ public:
M3745X_SET_OVERFLOW = M740_SET_OVERFLOW
};
- // construction/destruction
- m3745x_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, uint32_t clock, address_map_constructor internal_map, const char *shortname, const char *source);
-
const address_space_config m_program_config;
template<class _read, class _write> void set_p3_callbacks(_read rd, _write wr)
@@ -120,6 +117,9 @@ public:
bool are_port_bits_output(uint8_t port, uint8_t mask) { return ((m_ddrs[port] & mask) == mask) ? true : false; }
protected:
+ // construction/destruction
+ m3745x_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, address_map_constructor internal_map);
+
// device-level overrides
virtual void device_start() override;
virtual void device_reset() override;
@@ -145,9 +145,11 @@ class m37450_device : public m3745x_device
{
public:
m37450_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
- m37450_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);
+
+protected:
+ m37450_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock);
};
-extern const device_type M37450;
+DECLARE_DEVICE_TYPE(M37450, m37450_device)
-#endif
+#endif // MAME_CPU_M6502_M3745X_H