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
59
60
61
62
63
64
65
|
// license:BSD-3-Clause
// copyright-holders:Barry Rodewald
/*
* isa_pds.c - Programmers Development System 8-bit ISA card
*
* Used to connect up to two 8-bit systems to the PC, allowing the download of assembled code directly to the
* target 8-bit system (Spectrum, CPC, MSX, C64 and maybe the BBC?)
*
* The editor software require the ISA card to be present.
*
* The PC end hardware consists of an 8-bit ISA card containing an 8255 PPI hooked up to the two connectors on the
* back of the card.
*
* The 8-bit end hardware consists of an expansion device containing a Z80PIO.
*
* Created on: 31/01/2014
*/
#include "pds.h"
const device_type ISA8_PDS = &device_creator<isa8_pds_device>;
isa8_pds_device::isa8_pds_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, ISA8_PDS, "Programmers Development System", tag, owner, clock, "isa_pds", __FILE__),
device_isa8_card_interface( mconfig, *this ),
m_ppi(*this,"pds_ppi")
{
}
READ8_MEMBER(isa8_pds_device::ppi_r)
{
if(!(offset & 0x01))
return m_ppi->read(space,offset/2);
return 0xff;
}
WRITE8_MEMBER(isa8_pds_device::ppi_w)
{
if(!(offset & 0x01))
m_ppi->write(space,offset/2,data);
}
void isa8_pds_device::device_start()
{
set_isa_device();
m_isa->install_device(0x0300, 0x0307, read8_delegate(FUNC(isa8_pds_device::ppi_r),this), write8_delegate(FUNC(isa8_pds_device::ppi_w),this) );
}
void isa8_pds_device::device_reset()
{
}
void isa8_pds_device::device_stop()
{
}
static MACHINE_CONFIG_FRAGMENT( pds_config )
MCFG_DEVICE_ADD("pds_ppi", I8255, 0)
MACHINE_CONFIG_END
machine_config_constructor isa8_pds_device::device_mconfig_additions() const
{
return MACHINE_CONFIG_NAME( pds_config );
}
|