blob: ecd617576d1690e1300d6c35dcda8d2e95bb0ecc (
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
40
41
42
|
#ifndef __NES_EVENT_H
#define __NES_EVENT_H
#include "machine/nes_mmc1.h"
// ======================> nes_event_device
class nes_event_device : public nes_sxrom_device
{
public:
// construction/destruction
nes_event_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
// device-level overrides
virtual void device_start();
virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr);
virtual ioport_constructor device_input_ports() const;
virtual void update_regs(int reg);
required_ioport m_dsw;
virtual void pcb_reset();
protected:
virtual void set_prg();
virtual void set_chr();
int m_nwc_init;
static const device_timer_id TIMER_EVENT = 0;
emu_timer *event_timer;
attotime timer_freq;
UINT32 m_timer_count;
int m_timer_on, m_timer_enabled;
};
// device type definition
extern const device_type NES_EVENT;
#endif
|