blob: 732340218e13d8176bcb7557233027687d2f5e74 (
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
58
59
60
61
62
63
|
// license: GPL-2.0+
// copyright-holders: Dirk Best
/***************************************************************************
VTech Laser Lightpen Interface
Skeleton just to document the I/O ports used
***************************************************************************/
#include "emu.h"
#include "lpen.h"
//**************************************************************************
// DEVICE DEFINITIONS
//**************************************************************************
DEFINE_DEVICE_TYPE(VTECH_LPEN_INTERFACE, vtech_lpen_interface_device, "vtech_lpen", "Laser/VZ Lightpen Interface")
//-------------------------------------------------
// io_map - memory space address map
//-------------------------------------------------
void vtech_lpen_interface_device::io_map(address_map &map)
{
map.unmap_value_high();
map(0x40, 0x4f).r(FUNC(vtech_lpen_interface_device::lpen_r));
}
//**************************************************************************
// LIVE DEVICE
//**************************************************************************
//-------------------------------------------------
// vtech_lpen_interface_device - constructor
//-------------------------------------------------
vtech_lpen_interface_device::vtech_lpen_interface_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) :
vtech_ioexp_device(mconfig, VTECH_LPEN_INTERFACE, tag, owner, clock)
{
}
//-------------------------------------------------
// device_start - device-specific startup
//-------------------------------------------------
void vtech_lpen_interface_device::device_start()
{
vtech_ioexp_device::device_start();
}
//**************************************************************************
// IMPLEMENTATION
//**************************************************************************
uint8_t vtech_lpen_interface_device::lpen_r(offs_t offset)
{
logerror("lpen_r %02x\n", offset);
return 0xff;
}
|