summaryrefslogtreecommitdiffstats
path: root/src/mame/old/sbp_prot.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/old/sbp_prot.h')
-rw-r--r--src/mame/old/sbp_prot.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/mame/old/sbp_prot.h b/src/mame/old/sbp_prot.h
new file mode 100644
index 00000000000..b6cc469b71c
--- /dev/null
+++ b/src/mame/old/sbp_prot.h
@@ -0,0 +1,34 @@
+// license:BSD-3-Clause
+// copyright-holders:S. Smith,David Haywood
+
+
+#pragma once
+
+#ifndef __SBP_PROT__
+#define __SBP_PROT__
+
+extern const device_type SBP_PROT;
+
+#define MCFG_SBP_PROT_ADD(_tag) \
+ MCFG_DEVICE_ADD(_tag, SBP_PROT, 0)
+
+
+class sbp_prot_device : public device_t
+{
+public:
+ // construction/destruction
+ sbp_prot_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
+
+
+ uint8_t* m_mainrom;
+
+ void sbp_install_protection(cpu_device* maincpu, uint8_t* cpurom, uint32_t cpurom_size);
+ DECLARE_WRITE16_MEMBER(sbp_lowerrom_w);
+ DECLARE_READ16_MEMBER(sbp_lowerrom_r);
+
+protected:
+ virtual void device_start() override;
+ virtual void device_reset() override;
+};
+
+#endif