blob: 6c4ac1eb8d8d78baaba740724f880dfac4be102f (
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
|
/**********************************************************************
RCA VIP ASCII Keyboard Interface VP-620 emulation
Copyright MESS Team.
Visit http://mamedev.org for licensing and usage restrictions.
**********************************************************************/
#pragma once
#ifndef __VP620__
#define __VP620__
#include "emu.h"
#include "machine/keyboard.h"
#include "machine/vip_byteio.h"
//**************************************************************************
// TYPE DEFINITIONS
//**************************************************************************
// ======================> vp620_device
class vp620_device : public device_t,
public device_vip_byteio_port_interface
{
public:
// construction/destruction
vp620_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
// optional information overrides
virtual machine_config_constructor device_mconfig_additions() const;
// not really public
DECLARE_WRITE8_MEMBER( kb_w );
protected:
// device-level overrides
virtual void device_start();
// device_vip_byteio_port_interface overrides
virtual UINT8 vip_in_r();
virtual int vip_ef4_r();
private:
UINT8 m_keydata;
int m_keystb;
};
// device type definition
extern const device_type VP620;
#endif
|