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

#include "nxrom.h"


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

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

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

	virtual void pcb_reset();

private:
	void update_banks();
	UINT8 m_latch;
};





// device type definition
extern const device_type NES_RACERMATE;

#endif