blob: 8fc749e66fc18cb9a156b5ba2df2c393b5540f33 (
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
|
// license:BSD-3-Clause
// copyright-holders:Curt Coder
/**********************************************************************
Diag264 Cassette Loop Back Connector emulation
Copyright MESS Team.
Visit http://mamedev.org for licensing and usage restrictions.
**********************************************************************/
#pragma once
#ifndef __DIAG264_CASSETTE_LOOPBACK__
#define __DIAG264_CASSETTE_LOOPBACK__
#include "emu.h"
#include "cass.h"
//**************************************************************************
// TYPE DEFINITIONS
//**************************************************************************
// ======================> diag264_cassette_loopback_device
class diag264_cassette_loopback_device : public device_t,
public device_pet_datassette_port_interface
{
public:
// construction/destruction
diag264_cassette_loopback_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
protected:
// device-level overrides
virtual void device_start();
// device_pet_datassette_port_interface overrides
virtual int datassette_read();
virtual void datassette_write(int state);
virtual int datassette_sense();
virtual void datassette_motor(int state);
private:
int m_read;
int m_sense;
};
// device type definition
extern const device_type DIAG264_CASSETTE_LOOPBACK;
#endif
|