summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/neogeo/pcm2_prot.h
blob: 72f59dac1b30cac037f4d9647f89f526788b265f (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


#pragma once

#ifndef __PCM2_PROT__
#define __PCM2_PROT__

extern const device_type PCM2_PROT;

#define MCFG_PCM2_PROT_ADD(_tag) \
	MCFG_DEVICE_ADD(_tag, PCM2_PROT, 0)


class pcm2_prot_device :  public device_t
{
public:
	// construction/destruction
	pcm2_prot_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);

	void neo_pcm2_snk_1999(UINT8* ymrom, UINT32 ymsize, int value);
	void neo_pcm2_swap(UINT8* ymrom, UINT32 ymsize, int value);

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

#endif