summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/bus/neogeo/kof98_prot.h
blob: 7f6e08c1cd11bc286db970d80a232c71047a622e (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
39
40
41
42
#pragma once

#ifndef __KOF98_PROT__
#define __KOF98_PROT__

extern const device_type KOF98_PROT;

#define MCFG_KOF98_PROT_ADD(_tag) \
	MCFG_DEVICE_ADD(_tag, KOF98_PROT, 0)


class kof98_prot_device :  public device_t
{
public:
	// construction/destruction
	kof98_prot_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
	
	void kof98_decrypt_68k(UINT8* cpurom, UINT32 cpurom_size);
	void install_kof98_protection(cpu_device* maincpu);
	DECLARE_WRITE16_MEMBER(kof98_prot_w);
	DECLARE_READ16_MEMBER(kof98_prot_r);
	int kof98_prot_state;
	UINT16 m_default_rom[2];

protected:
	virtual void device_start();
	virtual void device_reset();



private:


};

#endif