blob: f775a513adbf36242b5dd0eed1442331fb3825ff (
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
39
|
// license:BSD-3-Clause
// copyright-holders:Fabio Priuli
#ifndef __NES_HOSENKAN_H
#define __NES_HOSENKAN_H
#include "nxrom.h"
// ======================> nes_hosenkan_device
class nes_hosenkan_device : public nes_nrom_device
{
public:
// construction/destruction
nes_hosenkan_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 hblank_irq(int scanline, int vblank, int blanked);
virtual void pcb_reset();
private:
UINT16 m_irq_count, m_irq_count_latch;
UINT8 m_irq_clear;
int m_irq_enable;
UINT8 m_latch;
};
// device type definition
extern const device_type NES_HOSENKAN;
#endif
|