blob: 13e3370dd99ddcc43b74870f992135a1ac0e2922 (
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
|
// license:BSD-3-Clause
// copyright-holders:Barry Rodewald
/*
* doubler.c -- Draysoft Doubler - external cassette interface for the 464 (works on 664/6128 with external cassette?),
* intended for use in duplicating cassette software
*
* Uses only port F0E0 (may conflict with other peripherals, PPI port A is not usable while Doubler software is running)
*
*/
#ifndef MAME_BUS_CPC_DOUBLER_H
#define MAME_BUS_CPC_DOUBLER_H
#pragma once
#include "cpcexp.h"
#include "imagedev/cassette.h"
#include "formats/tzx_cas.h"
class cpc_doubler_device : public device_t,
public device_cpc_expansion_card_interface
{
public:
// construction/destruction
cpc_doubler_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
uint8_t ext_tape_r();
protected:
// device-level overrides
virtual void device_start() override;
virtual void device_reset() override;
// optional information overrides
virtual void device_add_mconfig(machine_config &config) override;
private:
cpc_expansion_slot_device *m_slot;
required_device<cassette_image_device> m_tape;
};
// device type definition
DECLARE_DEVICE_TYPE(CPC_DOUBLER, cpc_doubler_device)
#endif // MAME_BUS_CPC_DOUBLER_H
|