blob: 6fd99d03f58b47347079b1a8b42072e5a45a6293 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
#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 clock);
UINT8* m_mainrom;
void sbp_install_protection(cpu_device* maincpu, UINT8* cpurom, UINT32 cpurom_size);
DECLARE_WRITE16_MEMBER(sbp_lowerrom_w);
DECLARE_READ16_MEMBER(sbp_lowerrom_r);
protected:
virtual void device_start();
virtual void device_reset();
private:
};
#endif
|