blob: 6c899ffff2b5cb308d5556e6765a6276169c545a (
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
/***************************************************************************
NEC PC-9801-118
***************************************************************************/
#pragma once
#ifndef __PC9801_118DEV_H__
#define __PC9801_118DEV_H__
#include "machine/pic8259.h"
#include "sound/2608intf.h"
//**************************************************************************
// TYPE DEFINITIONS
//**************************************************************************
// ======================> pc9801_118_device
class pc9801_118_device : public device_t
{
public:
// construction/destruction
pc9801_118_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
// optional information overrides
virtual machine_config_constructor device_mconfig_additions() const;
virtual ioport_constructor device_input_ports() const;
DECLARE_READ8_MEMBER(opn_porta_r);
DECLARE_WRITE8_MEMBER(opn_portb_w);
DECLARE_READ8_MEMBER(pc9801_118_r);
DECLARE_WRITE8_MEMBER(pc9801_118_w);
DECLARE_READ8_MEMBER(pc9801_118_ext_r);
DECLARE_WRITE8_MEMBER(pc9801_118_ext_w);
DECLARE_WRITE_LINE_MEMBER(pc9801_sound_irq);
// required_device<cpu_device> m_maincpu;
required_device<ym2608_device> m_opn3;
virtual const rom_entry *device_rom_region() const;
protected:
// device-level overrides
virtual void device_validity_check(validity_checker &valid) const;
virtual void device_start();
virtual void device_reset();
void install_device(offs_t start, offs_t end, offs_t mask, offs_t mirror, read8_delegate rhandler, write8_delegate whandler);
private:
UINT8 m_joy_sel;
UINT8 m_ext_reg;
};
// device type definition
extern const device_type PC9801_118;
//**************************************************************************
// GLOBAL VARIABLES
//**************************************************************************
#endif
|