src/mess/machine/p2000t.c
| r7044 | r7045 | |
| 40 | 40 | UINT8 port_707f; |
| 41 | 41 | } p2000t_ports; |
| 42 | 42 | |
| 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 | */ |
| 43 | 53 | READ8_HANDLER ( p2000t_port_000f_r ) |
| 44 | 54 | { |
| 45 | 55 | static const char *const keynames[] = { |
| r7044 | r7045 | |
| 92 | 102 | bit 5 - Unused |
| 93 | 103 | bit 6 - Keyboard interrupt enable |
| 94 | 104 | bit 7 - Printer output |
| 95 | | */ |
| 105 | */ |
| 96 | 106 | WRITE8_HANDLER ( p2000t_port_101f_w ) |
| 97 | 107 | { |
| 98 | 108 | p2000t_ports.port_101f = data; |
| 99 | 109 | } |
| 100 | 110 | |
| 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 | */ |
| 101 | 123 | WRITE8_HANDLER ( p2000t_port_303f_w ) |
| 102 | 124 | { |
| 103 | 125 | p2000t_ports.port_303f = data; |
| 104 | 126 | } |
| 105 | 127 | |
| 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 | */ |
| 106 | 140 | WRITE8_HANDLER ( p2000t_port_505f_w ) |
| 107 | 141 | { |
| 108 | 142 | 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)); |
| 110 | 144 | } |
| 111 | 145 | |
| 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 | */ |
| 112 | 162 | WRITE8_HANDLER ( p2000t_port_707f_w ) |
| 113 | 163 | { |
| 114 | 164 | p2000t_ports.port_707f = data; |