summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/machine/nes_nanjing.h
blob: 71a93d11ee02b14235961c4744746edef6ff7b40 (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
#ifndef __NES_NANJING_H
#define __NES_NANJING_H

#include "machine/nes_nxrom.h"


// ======================> nes_nanjing_device

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

	// device-level overrides
	virtual void device_start();
	virtual DECLARE_READ8_MEMBER(read_l);
	virtual DECLARE_WRITE8_MEMBER(write_l);

	virtual void hblank_irq(int scanline, int vblank, int blanked);
	virtual void pcb_reset();

private:
	UINT8 m_count;
	UINT8 m_reg[2];
	UINT8 m_latch1, m_latch2;
};





// device type definition
extern const device_type NES_NANJING;

#endif