blob: 652e098898a2f3953f197a454fabe8da43b6bb4c (
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
|
// license:BSD-3-Clause
// copyright-holders:S. Smith,David Haywood,Fabio Priuli
#ifndef MAME_BUS_NEOGEO_PROT_KOF98_H
#define MAME_BUS_NEOGEO_PROT_KOF98_H
#pragma once
DECLARE_DEVICE_TYPE(NG_KOF98_PROT, kof98_prot_device)
class kof98_prot_device : public device_t
{
public:
// construction/destruction
kof98_prot_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0);
void decrypt_68k(uint8_t* cpurom, uint32_t cpurom_size);
DECLARE_WRITE16_MEMBER(protection_w);
DECLARE_READ16_MEMBER(protection_r);
int m_prot_state;
uint16_t m_default_rom[2];
protected:
virtual void device_start() override;
virtual void device_reset() override;
};
#endif // MAME_BUS_NEOGEO_PROT_KOF98_H
|