summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/nes/act53.h
blob: acf49fadbe218ad6a775255d5b6c6cd8a54030d5 (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
// license:BSD-3-Clause
// copyright-holders:Fabio Priuli
#ifndef __NES_ACTION53_H
#define __NES_ACTION53_H

#include "nxrom.h"


// ======================> nes_racermate_device

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

	// device-level overrides
	virtual void device_start() override;
	virtual DECLARE_WRITE8_MEMBER(write_l);
	virtual DECLARE_WRITE8_MEMBER(write_h);

	virtual void pcb_reset() override;

private:
	void update_prg();
	void update_mirr();
	UINT8 m_sel;
	UINT8 m_reg[4];
};





// device type definition
extern const device_type NES_ACTION53;

#endif