blob: 0e5b104b0e399a2e52a9cfb13144a27afe2bc416 (
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
|
// license:BSD-3-Clause
// copyright-holders:smf
/**********************************************************************
Commodore VIC-1011A/B RS-232C Adapter emulation
**********************************************************************/
#pragma once
#ifndef __VIC1011__
#define __VIC1011__
#include "user.h"
#include "bus/rs232/rs232.h"
//**************************************************************************
// TYPE DEFINITIONS
//**************************************************************************
// ======================> vic1011_device
class vic1011_device : public device_t,
public device_pet_user_port_interface
{
public:
// construction/destruction
vic1011_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
// optional information overrides
virtual machine_config_constructor device_mconfig_additions() const override;
// device_pet_user_port_interface overrides
virtual DECLARE_WRITE_LINE_MEMBER( input_d ) override;
virtual DECLARE_WRITE_LINE_MEMBER( input_e ) override;
virtual DECLARE_WRITE_LINE_MEMBER( input_j ) override;
virtual DECLARE_WRITE_LINE_MEMBER( input_m ) override;
DECLARE_WRITE_LINE_MEMBER( output_rxd );
protected:
// device-level overrides
virtual void device_start() override;
private:
required_device<rs232_port_device> m_rs232;
};
// device type definition
extern const device_type VIC1011;
#endif
|