src/mess/machine/zx.c
| r2746 | r2747 | |
| 143 | 143 | |
| 144 | 144 | if ((offset & 1) == 0) |
| 145 | 145 | { |
| 146 | | int extra1 = input_port_read_indexed(machine, 9); |
| 147 | | int extra2 = input_port_read_indexed(machine, 10); |
| 146 | int extra1 = input_port_read(machine, "SPC0"); |
| 147 | int extra2 = input_port_read(machine, "SPC1"); |
| 148 | 148 | |
| 149 | 149 | // ula_scancode_count = 0; |
| 150 | 150 | if ((offset & 0x0100) == 0) |
| 151 | 151 | { |
| 152 | | data &= input_port_read_indexed(machine, 1); |
| 152 | data &= input_port_read(machine, "ROW0"); |
| 153 | 153 | /* SHIFT for extra keys */ |
| 154 | 154 | if (extra1 != 0xff || extra2 != 0xff) |
| 155 | 155 | data &= ~0x01; |
| 156 | 156 | } |
| 157 | 157 | if ((offset & 0x0200) == 0) |
| 158 | | data &= input_port_read_indexed(machine, 2); |
| 158 | data &= input_port_read(machine, "ROW1"); |
| 159 | 159 | if ((offset & 0x0400) == 0) |
| 160 | | data &= input_port_read_indexed(machine, 3); |
| 160 | data &= input_port_read(machine, "ROW2"); |
| 161 | 161 | if ((offset & 0x0800) == 0) |
| 162 | | data &= input_port_read_indexed(machine, 4) & extra1; |
| 162 | data &= input_port_read(machine, "ROW3") & extra1; |
| 163 | 163 | if ((offset & 0x1000) == 0) |
| 164 | | data &= input_port_read_indexed(machine, 5) & extra2; |
| 164 | data &= input_port_read(machine, "ROW4") & extra2; |
| 165 | 165 | if ((offset & 0x2000) == 0) |
| 166 | | data &= input_port_read_indexed(machine, 6); |
| 166 | data &= input_port_read(machine, "ROW5"); |
| 167 | 167 | if ((offset & 0x4000) == 0) |
| 168 | | data &= input_port_read_indexed(machine, 7); |
| 168 | data &= input_port_read(machine, "ROW6"); |
| 169 | 169 | if ((offset & 0x8000) == 0) |
| 170 | | data &= input_port_read_indexed(machine, 8); |
| 170 | data &= input_port_read(machine, "ROW7"); |
| 171 | 171 | if (video_screen_get_refresh(screen) > 55) |
| 172 | 172 | data &= ~0x40; |
| 173 | 173 | |
| r2746 | r2747 | |
| 209 | 209 | |
| 210 | 210 | if ((offset & 1) == 0) |
| 211 | 211 | { |
| 212 | | int extra1 = input_port_read_indexed(machine, 9); |
| 213 | | int extra2 = input_port_read_indexed(machine, 10); |
| 212 | int extra1 = input_port_read(machine, "SPC0"); |
| 213 | int extra2 = input_port_read(machine, "SPC1"); |
| 214 | 214 | |
| 215 | 215 | // ula_scancode_count = 0; |
| 216 | 216 | if ((offset & 0x0100) == 0) |
| 217 | 217 | { |
| 218 | | data &= input_port_read_indexed(machine, 1) & extra1; |
| 218 | data &= input_port_read(machine, "ROW0") & extra1; |
| 219 | 219 | /* SHIFT for extra keys */ |
| 220 | 220 | if (extra1 != 0xff || extra2 != 0xff) |
| 221 | 221 | data &= ~0x01; |
| 222 | 222 | } |
| 223 | 223 | if ((offset & 0x0200) == 0) |
| 224 | | data &= input_port_read_indexed(machine, 2) & extra2; |
| 224 | data &= input_port_read(machine, "ROW1") & extra2; |
| 225 | 225 | if ((offset & 0x0400) == 0) |
| 226 | | data &= input_port_read_indexed(machine, 3); |
| 226 | data &= input_port_read(machine, "ROW2"); |
| 227 | 227 | if ((offset & 0x0800) == 0) |
| 228 | | data &= input_port_read_indexed(machine, 4); |
| 228 | data &= input_port_read(machine, "ROW3"); |
| 229 | 229 | if ((offset & 0x1000) == 0) |
| 230 | | data &= input_port_read_indexed(machine, 5); |
| 230 | data &= input_port_read(machine, "ROW4"); |
| 231 | 231 | if ((offset & 0x2000) == 0) |
| 232 | | data &= input_port_read_indexed(machine, 6); |
| 232 | data &= input_port_read(machine, "ROW5"); |
| 233 | 233 | if ((offset & 0x4000) == 0) |
| 234 | | data &= input_port_read_indexed(machine, 7); |
| 234 | data &= input_port_read(machine, "ROW6"); |
| 235 | 235 | if ((offset & 0x8000) == 0) |
| 236 | | data &= input_port_read_indexed(machine, 8); |
| 236 | data &= input_port_read(machine, "ROW7"); |
| 237 | 237 | if (video_screen_get_refresh(screen) > 55) |
| 238 | 238 | data &= ~0x40; |
| 239 | 239 | |
src/mess/drivers/zx.c
| r2746 | r2747 | |
| 55 | 55 | /* Input Ports */ |
| 56 | 56 | |
| 57 | 57 | static INPUT_PORTS_START( zx80 ) |
| 58 | | PORT_START_TAG("IN0") |
| 58 | PORT_START_TAG("RAM") |
| 59 | 59 | |
| 60 | | PORT_START_TAG("IN1") // KEY ROW 0 |
| 60 | PORT_START_TAG("ROW0") |
| 61 | 61 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("SHIFT") PORT_CODE(KEYCODE_LSHIFT) PORT_CHAR(UCHAR_SHIFT_1) |
| 62 | 62 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Z") PORT_CODE(KEYCODE_Z) PORT_CHAR('Z') |
| 63 | 63 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("X") PORT_CODE(KEYCODE_X) PORT_CHAR('X') |
| r2746 | r2747 | |
| 65 | 65 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("V") PORT_CODE(KEYCODE_V) PORT_CHAR('V') |
| 66 | 66 | PORT_BIT( 0xe0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 67 | 67 | |
| 68 | | PORT_START_TAG("IN2") // KEY ROW 1 |
| 68 | PORT_START_TAG("ROW1") |
| 69 | 69 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("A") PORT_CODE(KEYCODE_A) PORT_CHAR('A') |
| 70 | 70 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("S") PORT_CODE(KEYCODE_S) PORT_CHAR('S') |
| 71 | 71 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("D") PORT_CODE(KEYCODE_D) PORT_CHAR('D') |
| r2746 | r2747 | |
| 73 | 73 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("G") PORT_CODE(KEYCODE_G) PORT_CHAR('G') |
| 74 | 74 | PORT_BIT( 0xe0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 75 | 75 | |
| 76 | | PORT_START_TAG("IN3") // KEY ROW 2 |
| 76 | PORT_START_TAG("ROW2") |
| 77 | 77 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Q") PORT_CODE(KEYCODE_Q) PORT_CHAR('Q') |
| 78 | 78 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("W") PORT_CODE(KEYCODE_W) PORT_CHAR('W') |
| 79 | 79 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("E") PORT_CODE(KEYCODE_E) PORT_CHAR('E') |
| r2746 | r2747 | |
| 81 | 81 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("T") PORT_CODE(KEYCODE_T) PORT_CHAR('T') |
| 82 | 82 | PORT_BIT( 0xe0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 83 | 83 | |
| 84 | | PORT_START_TAG("IN4") // KEY ROW 3 |
| 84 | PORT_START_TAG("ROW3") |
| 85 | 85 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("1 EDIT") PORT_CODE(KEYCODE_1) PORT_CHAR('1') |
| 86 | 86 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("2 AND") PORT_CODE(KEYCODE_2) PORT_CHAR('2') |
| 87 | 87 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("3 THEN") PORT_CODE(KEYCODE_3) PORT_CHAR('3') |
| r2746 | r2747 | |
| 89 | 89 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("5 LEFT") PORT_CODE(KEYCODE_5) PORT_CHAR('5') |
| 90 | 90 | PORT_BIT( 0xe0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 91 | 91 | |
| 92 | | PORT_START_TAG("IN5") // KEY ROW 4 |
| 92 | PORT_START_TAG("ROW4") |
| 93 | 93 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("0 RUBOUT") PORT_CODE(KEYCODE_0) PORT_CHAR('0') |
| 94 | 94 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("9 GRAPHICS") PORT_CODE(KEYCODE_9) PORT_CHAR('9') |
| 95 | 95 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("8 RIGHT") PORT_CODE(KEYCODE_8) PORT_CHAR('8') |
| r2746 | r2747 | |
| 97 | 97 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("6 DOWN") PORT_CODE(KEYCODE_6) PORT_CHAR('6') |
| 98 | 98 | PORT_BIT( 0xe0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 99 | 99 | |
| 100 | | PORT_START_TAG("IN6") // KEY ROW 5 |
| 100 | PORT_START_TAG("ROW5") |
| 101 | 101 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("P PRINT") PORT_CODE(KEYCODE_P) PORT_CHAR('P') |
| 102 | 102 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("O POKE") PORT_CODE(KEYCODE_O) PORT_CHAR('O') |
| 103 | 103 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("I INPUT") PORT_CODE(KEYCODE_I) PORT_CHAR('I') |
| r2746 | r2747 | |
| 105 | 105 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Y RETURN") PORT_CODE(KEYCODE_Y) PORT_CHAR('Y') |
| 106 | 106 | PORT_BIT( 0xe0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 107 | 107 | |
| 108 | | PORT_START_TAG("IN7") // KEY ROW 6 |
| 108 | PORT_START_TAG("ROW6") |
| 109 | 109 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("ENTER") PORT_CODE(KEYCODE_ENTER) PORT_CHAR(13) |
| 110 | 110 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("L") PORT_CODE(KEYCODE_L) PORT_CHAR('L') |
| 111 | 111 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("K") PORT_CODE(KEYCODE_K) PORT_CHAR('K') |
| r2746 | r2747 | |
| 113 | 113 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("H") PORT_CODE(KEYCODE_H) PORT_CHAR('H') |
| 114 | 114 | PORT_BIT( 0xe0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 115 | 115 | |
| 116 | | PORT_START_TAG("IN8") // KEY ROW 7 |
| 117 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("SPACE \xC2\xA3") PORT_CODE(KEYCODE_SPACE) PORT_CHAR(' ') PORT_CHAR(0x00A3) |
| 116 | PORT_START_TAG("ROW7") |
| 117 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("SPACE \xC2\xA3") PORT_CODE(KEYCODE_SPACE) PORT_CHAR(' ') PORT_CHAR('\xA3') |
| 118 | 118 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME(". ,") PORT_CODE(KEYCODE_STOP) PORT_CHAR('.') PORT_CHAR(',') |
| 119 | 119 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("M >") PORT_CODE(KEYCODE_M) PORT_CHAR('M') PORT_CHAR('>') |
| 120 | 120 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("N >") PORT_CODE(KEYCODE_N) PORT_CHAR('N') PORT_CHAR('<') |
| 121 | 121 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("B") PORT_CODE(KEYCODE_B) PORT_CHAR('B') |
| 122 | 122 | PORT_BIT( 0xe0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 123 | 123 | |
| 124 | | PORT_START_TAG("IN9") // special keys 1 |
| 124 | PORT_START_TAG("SPC0") /* special keys 1 */ |
| 125 | 125 | PORT_BIT( 0x0f, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 126 | 126 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("\xE2\x86\x90") PORT_CODE(KEYCODE_LEFT) PORT_CHAR(UCHAR_MAMEKEY(LEFT)) |
| 127 | 127 | PORT_BIT( 0xe0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 128 | 128 | |
| 129 | | PORT_START_TAG("IN10") // special keys 2 |
| 129 | PORT_START_TAG("SPC1") /* special keys 2 */ |
| 130 | 130 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("BACKSPACE") PORT_CODE(KEYCODE_BACKSPACE) PORT_CHAR(8) |
| 131 | 131 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("GRAPHICS") PORT_CODE(KEYCODE_LALT) PORT_CHAR(UCHAR_SHIFT_2) |
| 132 | 132 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("\xE2\x86\x92") PORT_CODE(KEYCODE_RIGHT) PORT_CHAR(UCHAR_MAMEKEY(RIGHT)) |
| r2746 | r2747 | |
| 136 | 136 | INPUT_PORTS_END |
| 137 | 137 | |
| 138 | 138 | static INPUT_PORTS_START( zx81 ) |
| 139 | | PORT_START_TAG("IN0") |
| 139 | /* 2008-05 FP: I see no code reading this "RAM" port. Is it unused code? */ |
| 140 | PORT_START_TAG("RAM") |
| 140 | 141 | PORT_DIPNAME( 0x80, 0x00, "16K RAM module" ) |
| 141 | 142 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) |
| 142 | 143 | PORT_DIPSETTING( 0x80, DEF_STR( Yes ) ) |
| 143 | 144 | PORT_BIT( 0x7e, 0x0f, IPT_UNUSED ) |
| 144 | 145 | |
| 145 | | PORT_START_TAG("IN1") // KEY ROW 0 |
| 146 | PORT_START_TAG("ROW0") |
| 146 | 147 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("SHIFT") PORT_CODE(KEYCODE_LSHIFT) PORT_CHAR(UCHAR_SHIFT_1) |
| 147 | 148 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Z :") PORT_CODE(KEYCODE_Z) PORT_CHAR('Z') PORT_CHAR(':') |
| 148 | 149 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("X ;") PORT_CODE(KEYCODE_X) PORT_CHAR('X') PORT_CHAR(';') |
| r2746 | r2747 | |
| 150 | 151 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("V /") PORT_CODE(KEYCODE_V) PORT_CHAR('V') PORT_CHAR('/') |
| 151 | 152 | PORT_BIT( 0xe0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 152 | 153 | |
| 153 | | PORT_START_TAG("IN2") // KEY ROW 1 |
| 154 | PORT_START_TAG("ROW1") |
| 154 | 155 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("A NEW STOP") PORT_CODE(KEYCODE_A) PORT_CHAR('A') |
| 155 | 156 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("S SAVE LPRINT") PORT_CODE(KEYCODE_S) PORT_CHAR('S') |
| 156 | 157 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("D DIM SLOW") PORT_CODE(KEYCODE_D) PORT_CHAR('D') |
| r2746 | r2747 | |
| 158 | 159 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("G GOTO LLIST") PORT_CODE(KEYCODE_G) PORT_CHAR('G') |
| 159 | 160 | PORT_BIT( 0xe0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 160 | 161 | |
| 161 | | PORT_START_TAG("IN3") // KEY ROW 2 |
| 162 | PORT_START_TAG("ROW2") |
| 162 | 163 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Q PLOT \"\"") PORT_CODE(KEYCODE_Q) PORT_CHAR('Q') |
| 163 | 164 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("W UNPLOT OR") PORT_CODE(KEYCODE_W) PORT_CHAR('W') |
| 164 | 165 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("E REM STEP") PORT_CODE(KEYCODE_E) PORT_CHAR('E') |
| r2746 | r2747 | |
| 166 | 167 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("T RAND <>") PORT_CODE(KEYCODE_T) PORT_CHAR('T') |
| 167 | 168 | PORT_BIT( 0xe0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 168 | 169 | |
| 169 | | PORT_START_TAG("IN4") // KEY ROW 3 |
| 170 | PORT_START_TAG("ROW3") |
| 170 | 171 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("1 EDIT") PORT_CODE(KEYCODE_1) PORT_CHAR('1') |
| 171 | 172 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("2 AND") PORT_CODE(KEYCODE_2) PORT_CHAR('2') |
| 172 | 173 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("3 THEN") PORT_CODE(KEYCODE_3) PORT_CHAR('3') |
| r2746 | r2747 | |
| 174 | 175 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("5 LEFT") PORT_CODE(KEYCODE_5) PORT_CHAR('5') |
| 175 | 176 | PORT_BIT( 0xe0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 176 | 177 | |
| 177 | | PORT_START_TAG("IN5") // KEY ROW 4 |
| 178 | PORT_START_TAG("ROW4") |
| 178 | 179 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("0 RUBOUT") PORT_CODE(KEYCODE_0) PORT_CHAR('0') |
| 179 | 180 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("9 GRAPHICS") PORT_CODE(KEYCODE_9) PORT_CHAR('9') |
| 180 | 181 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("8 RIGHT") PORT_CODE(KEYCODE_8) PORT_CHAR('8') |
| r2746 | r2747 | |
| 182 | 183 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("6 DOWN") PORT_CODE(KEYCODE_6) PORT_CHAR('6') |
| 183 | 184 | PORT_BIT( 0xe0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 184 | 185 | |
| 185 | | PORT_START_TAG("IN6") // KEY ROW 5 |
| 186 | PORT_START_TAG("ROW5") |
| 186 | 187 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("P PRINT \"") PORT_CODE(KEYCODE_P) PORT_CHAR('P') |
| 187 | 188 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("O POKE )") PORT_CODE(KEYCODE_O) PORT_CHAR('O') |
| 188 | 189 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("I INPUT (") PORT_CODE(KEYCODE_I) PORT_CHAR('I') |
| r2746 | r2747 | |
| 190 | 191 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Y RETURN >=") PORT_CODE(KEYCODE_Y) PORT_CHAR('Y') |
| 191 | 192 | PORT_BIT( 0xe0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 192 | 193 | |
| 193 | | PORT_START_TAG("IN7") // KEY ROW 6 |
| 194 | PORT_START_TAG("ROW6") |
| 194 | 195 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("ENTER") PORT_CODE(KEYCODE_ENTER) PORT_CHAR(13) |
| 195 | 196 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("L LET =") PORT_CODE(KEYCODE_L) PORT_CHAR('L') |
| 196 | 197 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("K LIST +") PORT_CODE(KEYCODE_K) PORT_CHAR('K') |
| r2746 | r2747 | |
| 198 | 199 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("H GOSUB **") PORT_CODE(KEYCODE_H) PORT_CHAR('H') |
| 199 | 200 | PORT_BIT( 0xe0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 200 | 201 | |
| 201 | | PORT_START_TAG("IN8") // KEY ROW 7 |
| 202 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("SPACE \xC2\xA3") PORT_CODE(KEYCODE_SPACE) PORT_CHAR(' ') PORT_CHAR(0x00A3) |
| 202 | PORT_START_TAG("ROW7") |
| 203 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("SPACE \xC2\xA3") PORT_CODE(KEYCODE_SPACE) PORT_CHAR(' ') PORT_CHAR('\xA3') |
| 203 | 204 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME(". ,") PORT_CODE(KEYCODE_STOP) PORT_CHAR('.') PORT_CHAR(',') |
| 204 | 205 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("M PAUSE >") PORT_CODE(KEYCODE_M) PORT_CHAR('M') PORT_CHAR('>') |
| 205 | 206 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("N NEXT >") PORT_CODE(KEYCODE_N) PORT_CHAR('N') PORT_CHAR('<') |
| 206 | 207 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("B SCROLL *") PORT_CODE(KEYCODE_B) PORT_CHAR('B') |
| 207 | 208 | PORT_BIT( 0xe0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 208 | 209 | |
| 209 | | PORT_START_TAG("IN9") // special keys 1 |
| 210 | PORT_START_TAG("SPC0") /* special keys 1 */ |
| 210 | 211 | PORT_BIT( 0x0f, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 211 | 212 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("\xE2\x86\x90") PORT_CODE(KEYCODE_LEFT) PORT_CHAR(UCHAR_MAMEKEY(LEFT)) |
| 212 | 213 | PORT_BIT( 0xe0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 213 | 214 | |
| 214 | | PORT_START_TAG("IN10") // special keys 2 |
| 215 | PORT_START_TAG("SPC1") /* special keys 2 */ |
| 215 | 216 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("BACKSPACE") PORT_CODE(KEYCODE_BACKSPACE) PORT_CHAR(8) |
| 216 | 217 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("GRAPHICS") PORT_CODE(KEYCODE_LALT) PORT_CHAR(UCHAR_SHIFT_2) |
| 217 | 218 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("\xE2\x86\x92") PORT_CODE(KEYCODE_RIGHT) PORT_CHAR(UCHAR_MAMEKEY(RIGHT)) |
| r2746 | r2747 | |
| 221 | 222 | INPUT_PORTS_END |
| 222 | 223 | |
| 223 | 224 | static INPUT_PORTS_START( pow3000 ) |
| 224 | | PORT_START_TAG("IN0") |
| 225 | PORT_START_TAG("RAM") |
| 225 | 226 | PORT_BIT( 0xfe, 0x0f, IPT_UNUSED ) |
| 226 | 227 | |
| 227 | | PORT_START_TAG("IN1") // KEY ROW 0 |
| 228 | PORT_START_TAG("ROW0") |
| 228 | 229 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("SHIFT") PORT_CODE(KEYCODE_LSHIFT) PORT_CHAR(UCHAR_SHIFT_1) |
| 229 | 230 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Z") PORT_CODE(KEYCODE_Z) PORT_CHAR('Z') |
| 230 | 231 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("X") PORT_CODE(KEYCODE_X) PORT_CHAR('X') |
| r2746 | r2747 | |
| 232 | 233 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("V") PORT_CODE(KEYCODE_V) PORT_CHAR('V') |
| 233 | 234 | PORT_BIT( 0xe0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 234 | 235 | |
| 235 | | PORT_START_TAG("IN2") // KEY ROW 1 |
| 236 | PORT_START_TAG("ROW1") |
| 236 | 237 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("A") PORT_CODE(KEYCODE_A) PORT_CHAR('A') |
| 237 | 238 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("S") PORT_CODE(KEYCODE_S) PORT_CHAR('S') |
| 238 | 239 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("D") PORT_CODE(KEYCODE_D) PORT_CHAR('D') |
| r2746 | r2747 | |
| 240 | 241 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("G") PORT_CODE(KEYCODE_G) PORT_CHAR('G') |
| 241 | 242 | PORT_BIT( 0xe0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 242 | 243 | |
| 243 | | PORT_START_TAG("IN3") // KEY ROW 2 |
| 244 | PORT_START_TAG("ROW2") |
| 244 | 245 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Q") PORT_CODE(KEYCODE_Q) PORT_CHAR('Q') |
| 245 | 246 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("W") PORT_CODE(KEYCODE_W) PORT_CHAR('W') |
| 246 | 247 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("E") PORT_CODE(KEYCODE_E) PORT_CHAR('E') |
| r2746 | r2747 | |
| 248 | 249 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("T") PORT_CODE(KEYCODE_T) PORT_CHAR('T') |
| 249 | 250 | PORT_BIT( 0xe0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 250 | 251 | |
| 251 | | PORT_START_TAG("IN4") // KEY ROW 3 |
| 252 | PORT_START_TAG("ROW3") |
| 252 | 253 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("1") PORT_CODE(KEYCODE_1) PORT_CHAR('1') |
| 253 | 254 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("2") PORT_CODE(KEYCODE_2) PORT_CHAR('2') |
| 254 | 255 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("3") PORT_CODE(KEYCODE_3) PORT_CHAR('3') |
| r2746 | r2747 | |
| 256 | 257 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("5") PORT_CODE(KEYCODE_5) PORT_CHAR('5') |
| 257 | 258 | PORT_BIT( 0xe0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 258 | 259 | |
| 259 | | PORT_START_TAG("IN5") // KEY ROW 4 |
| 260 | PORT_START_TAG("ROW4") |
| 260 | 261 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("0") PORT_CODE(KEYCODE_0) PORT_CHAR('0') |
| 261 | 262 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("9") PORT_CODE(KEYCODE_9) PORT_CHAR('9') |
| 262 | 263 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("8") PORT_CODE(KEYCODE_8) PORT_CHAR('8') |
| r2746 | r2747 | |
| 264 | 265 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("6") PORT_CODE(KEYCODE_6) PORT_CHAR('6') |
| 265 | 266 | PORT_BIT( 0xe0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 266 | 267 | |
| 267 | | PORT_START_TAG("IN6") // KEY ROW 5 |
| 268 | PORT_START_TAG("ROW5") |
| 268 | 269 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("P") PORT_CODE(KEYCODE_P) PORT_CHAR('P') |
| 269 | 270 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("O") PORT_CODE(KEYCODE_O) PORT_CHAR('O') |
| 270 | 271 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("I") PORT_CODE(KEYCODE_I) PORT_CHAR('I') |
| r2746 | r2747 | |
| 272 | 273 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Y") PORT_CODE(KEYCODE_Y) PORT_CHAR('Y') |
| 273 | 274 | PORT_BIT( 0xe0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 274 | 275 | |
| 275 | | PORT_START_TAG("IN7") // KEY ROW 6 |
| 276 | PORT_START_TAG("ROW6") |
| 276 | 277 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("ENTER") PORT_CODE(KEYCODE_ENTER) PORT_CHAR(13) |
| 277 | 278 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("L") PORT_CODE(KEYCODE_L) PORT_CHAR('L') |
| 278 | 279 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("K") PORT_CODE(KEYCODE_K) PORT_CHAR('K') |
| r2746 | r2747 | |
| 280 | 281 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("H") PORT_CODE(KEYCODE_H) PORT_CHAR('H') |
| 281 | 282 | PORT_BIT( 0xe0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 282 | 283 | |
| 283 | | PORT_START_TAG("IN8") // KEY ROW 7 |
| 284 | PORT_START_TAG("ROW7") |
| 284 | 285 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("SPACE") PORT_CODE(KEYCODE_SPACE) PORT_CHAR(' ') |
| 285 | 286 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME(".") PORT_CODE(KEYCODE_STOP) PORT_CHAR('.') |
| 286 | 287 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("M") PORT_CODE(KEYCODE_M) PORT_CHAR('M') |
| r2746 | r2747 | |
| 288 | 289 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("B") PORT_CODE(KEYCODE_B) PORT_CHAR('B') |
| 289 | 290 | PORT_BIT( 0xe0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 290 | 291 | |
| 291 | | PORT_START_TAG("IN9") // special keys 1 |
| 292 | PORT_START_TAG("SPC0") /* special keys 1 */ |
| 292 | 293 | PORT_BIT( 0x0f, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 293 | 294 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("\xE2\x86\x90") PORT_CODE(KEYCODE_LEFT) PORT_CHAR(UCHAR_MAMEKEY(LEFT)) |
| 294 | 295 | PORT_BIT( 0xe0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 295 | 296 | |
| 296 | | PORT_START_TAG("IN10") // special keys 2 |
| 297 | PORT_START_TAG("SPC1") /* special keys 2 */ |
| 297 | 298 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("\xE2\x86\x91") PORT_CODE(KEYCODE_UP) PORT_CHAR(UCHAR_MAMEKEY(UP)) |
| 298 | 299 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("\xE2\x86\x93") PORT_CODE(KEYCODE_DOWN) PORT_CHAR(UCHAR_MAMEKEY(DOWN)) |
| 299 | 300 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("\xE2\x86\x92") PORT_CODE(KEYCODE_RIGHT) PORT_CHAR(UCHAR_MAMEKEY(RIGHT)) |