blob: 482704b31cff340656d5c8832972613acdbf233d (
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
|
// license:BSD-3-Clause
// copyright-holders:R. Belmont
/*********************************************************************
a1cassette.h
Apple I Cassette Interface
*********************************************************************/
#ifndef __A1BUS_CASSETTE__
#define __A1BUS_CASSETTE__
#include "a1bus.h"
#include "imagedev/cassette.h"
//**************************************************************************
// TYPE DEFINITIONS
//**************************************************************************
class a1bus_cassette_device:
public device_t,
public device_a1bus_card_interface
{
public:
// construction/destruction
a1bus_cassette_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
a1bus_cassette_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source);
// optional information overrides
virtual machine_config_constructor device_mconfig_additions() const override;
virtual const rom_entry *device_rom_region() const override;
optional_device<cassette_image_device> m_cassette;
DECLARE_READ8_MEMBER(cassette_r);
DECLARE_WRITE8_MEMBER(cassette_w);
protected:
virtual void device_start() override;
virtual void device_reset() override;
void cassette_toggle_output();
private:
UINT8 *m_rom;
int m_cassette_output_flipflop;
};
// device type definition
extern const device_type A1BUS_CASSETTE;
#endif /* __A1BUS_CASSETTE__ */
|