Previous 15994 Revisions Next

r7045 Friday 15th January, 2010 at 19:10:32 UTC by Stefano Priore
[P2000] More comments added
[src/mess/machine]p2000t.c

src/mess/machine/p2000t.c
r7044r7045
4040   UINT8 port_707f;
4141} p2000t_ports;
4242
43/*
44   Keyboard port 0x0x
45
46   If the keyboard interrupt is enabled, all keyboard matrix rows are
47   connected and reading from either of these ports will give the
48   keyboard status (FF=no key pressed)
49
50   If the keyboard interrupt is disabled, reading one of these ports
51   will read the corresponding keyboard matrix row
52*/
4353READ8_HANDLER (   p2000t_port_000f_r )
4454{
4555   static const char *const keynames[] = {
r7044r7045
92102    bit 5 - Unused
93103    bit 6 - Keyboard interrupt enable
94104    bit 7 - Printer output
95 */
105*/
96106WRITE8_HANDLER ( p2000t_port_101f_w )
97107{
98108   p2000t_ports.port_101f = data;
99109}
100110
111/*
112    Scroll Register 0x3x (P2000T only)
113
114    bit 0 - /
115    bit 1 - |
116    bit 2 - | Index of the first character
117    bit 3 - | to be displayed
118    bit 4 - |
119    bit 5 - |
120    bit 6 - \
121    bit 7 - Video disable (0 = enabled)
122*/
101123WRITE8_HANDLER ( p2000t_port_303f_w )
102124{
103125   p2000t_ports.port_303f = data;
104126}
105127
128/*
129    Beeper 0x5x
130
131    bit 0 - Beeper
132    bit 1 - Unused
133    bit 2 - Unused
134    bit 3 - Unused
135    bit 4 - Unused
136    bit 5 - Unused
137    bit 6 - Unused
138    bit 7 - Unused
139*/
106140WRITE8_HANDLER ( p2000t_port_505f_w )
107141{
108142   const device_config *speaker = devtag_get_device(space->machine, "speaker");
109   speaker_level_w(speaker, data & 0x01);
143   speaker_level_w(speaker, BIT(data,0));
110144}
111145
146/*
147    DISAS 0x7x (P2000M only)
148
149    bit 0 - Unused
150    bit 1 - DISAS enable
151    bit 2 - Unused
152    bit 3 - Unused
153    bit 4 - Unused
154    bit 5 - Unused
155    bit 6 - Unused
156    bit 7 - Unused
157
158   When the DISAS is active, the CPU has the highest priority and
159    video refresh is disabled when the CPU accesses video memory
160
161*/
112162WRITE8_HANDLER ( p2000t_port_707f_w )
113163{
114164   p2000t_ports.port_707f = data;

Previous 15994 Revisions Next


© 1998-2018 The MESS Team