src/mess/machine/kb_keytro.c
| r5220 | r5221 | |
| 90 | 90 | Input port declaration |
| 91 | 91 | |
| 92 | 92 | ***************************************************************************/ |
| 93 | | INPUT_PORTS_START( kb_keytronic ) |
| 94 | | PORT_START( "kb_keytronic_0b" ) |
| 95 | | PORT_DIPNAME( 0x01, 0x00, "Protocol selection" ) |
| 96 | | PORT_DIPSETTING( 0x00, "Enhanced XT, AT and PS/2 models" ) |
| 97 | | PORT_DIPSETTING( 0x01, "Standard PC and XT" ) |
| 98 | | PORT_DIPNAME( 0x02, 0x02, "IRMA/Native scan code set" ) |
| 99 | | PORT_DIPSETTING( 0x00, "Native scan code set" ) |
| 100 | | PORT_DIPSETTING( 0x02, "IRMA Emulation" ) |
| 101 | | PORT_DIPNAME( 0x04, 0x04, "Enhanced 101/Native scan code set" ) |
| 102 | | PORT_DIPSETTING( 0x00, "Native scan code set" ) |
| 103 | | PORT_DIPSETTING( 0x04, "Enhanced 101 scan code set" ) |
| 104 | | PORT_DIPNAME( 0x08, 0x08, "Enable E0" ) |
| 105 | | PORT_DIPSETTING( 0x00, "Enable E0" ) |
| 106 | | PORT_DIPSETTING( 0x08, "Disable E0" ) |
| 107 | | PORT_DIPNAME( 0x10, 0x10, "Code tables" ) |
| 108 | | PORT_DIPSETTING( 0x00, "U.S. code tables" ) |
| 109 | | PORT_DIPSETTING( 0x10, "International code tables" ) |
| 110 | | PORT_BIT( 0x60, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 111 | | PORT_DIPNAME( 0x80, 0x80, "Key click" ) |
| 112 | | PORT_DIPSETTING( 0x00, "No key click" ) |
| 113 | | PORT_DIPSETTING( 0x80, "Key click" ) |
| 93 | static INPUT_PORTS_START( kb_keytronic_common ) |
| 114 | 94 | |
| 115 | 95 | PORT_START( "kb_keytronic_0f" ) |
| 116 | 96 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_5) PORT_CHAR('5') /* 06 */ |
| r5220 | r5221 | |
| 290 | 270 | INPUT_PORTS_END |
| 291 | 271 | |
| 292 | 272 | |
| 273 | INPUT_PORTS_START( kb_keytronic_pc ) |
| 274 | PORT_INCLUDE( kb_keytronic_common ) |
| 275 | |
| 276 | PORT_START( "kb_keytronic_0b" ) |
| 277 | PORT_DIPNAME( 0x01, 0x01, "Protocol selection" ) |
| 278 | PORT_DIPSETTING( 0x00, "Enhanced XT, AT and PS/2 models" ) |
| 279 | PORT_DIPSETTING( 0x01, "Standard PC and XT" ) |
| 280 | PORT_DIPNAME( 0x02, 0x02, "IRMA/Native scan code set" ) |
| 281 | PORT_DIPSETTING( 0x00, "Native scan code set" ) |
| 282 | PORT_DIPSETTING( 0x02, "IRMA Emulation" ) |
| 283 | PORT_DIPNAME( 0x04, 0x04, "Enhanced 101/Native scan code set" ) |
| 284 | PORT_DIPSETTING( 0x00, "Native scan code set" ) |
| 285 | PORT_DIPSETTING( 0x04, "Enhanced 101 scan code set" ) |
| 286 | PORT_DIPNAME( 0x08, 0x08, "Enable E0" ) |
| 287 | PORT_DIPSETTING( 0x00, "Enable E0" ) |
| 288 | PORT_DIPSETTING( 0x08, "Disable E0" ) |
| 289 | PORT_DIPNAME( 0x10, 0x10, "Code tables" ) |
| 290 | PORT_DIPSETTING( 0x00, "U.S. code tables" ) |
| 291 | PORT_DIPSETTING( 0x10, "International code tables" ) |
| 292 | PORT_BIT( 0x60, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 293 | PORT_DIPNAME( 0x80, 0x80, "Key click" ) |
| 294 | PORT_DIPSETTING( 0x00, "No key click" ) |
| 295 | PORT_DIPSETTING( 0x80, "Key click" ) |
| 296 | INPUT_PORTS_END |
| 297 | |
| 298 | |
| 299 | INPUT_PORTS_START( kb_keytronic_at ) |
| 300 | |
| 301 | PORT_INCLUDE( kb_keytronic_common ) |
| 302 | |
| 303 | PORT_START( "kb_keytronic_0b" ) |
| 304 | PORT_DIPNAME( 0x01, 0x00, "Protocol selection" ) |
| 305 | PORT_DIPSETTING( 0x00, "Enhanced XT, AT and PS/2 models" ) |
| 306 | PORT_DIPSETTING( 0x01, "Standard PC and XT" ) |
| 307 | PORT_DIPNAME( 0x02, 0x02, "IRMA/Native scan code set" ) |
| 308 | PORT_DIPSETTING( 0x00, "Native scan code set" ) |
| 309 | PORT_DIPSETTING( 0x02, "IRMA Emulation" ) |
| 310 | PORT_DIPNAME( 0x04, 0x04, "Enhanced 101/Native scan code set" ) |
| 311 | PORT_DIPSETTING( 0x00, "Native scan code set" ) |
| 312 | PORT_DIPSETTING( 0x04, "Enhanced 101 scan code set" ) |
| 313 | PORT_DIPNAME( 0x08, 0x00, "Enable E0" ) |
| 314 | PORT_DIPSETTING( 0x00, "Enable E0" ) |
| 315 | PORT_DIPSETTING( 0x08, "Disable E0" ) |
| 316 | PORT_DIPNAME( 0x10, 0x10, "Code tables" ) |
| 317 | PORT_DIPSETTING( 0x00, "U.S. code tables" ) |
| 318 | PORT_DIPSETTING( 0x10, "International code tables" ) |
| 319 | PORT_BIT( 0x60, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 320 | PORT_DIPNAME( 0x80, 0x80, "Key click" ) |
| 321 | PORT_DIPSETTING( 0x00, "No key click" ) |
| 322 | PORT_DIPSETTING( 0x80, "Key click" ) |
| 323 | INPUT_PORTS_END |
| 324 | |
| 325 | |
| 293 | 326 | /* Write handler which is called when the clock signal may have changed */ |
| 294 | 327 | WRITE8_HANDLER( kb_keytronic_set_clock_signal ) |
| 295 | 328 | { |
src/mess/drivers/pc.c
| r5220 | r5221 | |
| 530 | 530 | PORT_BIT( 0x02, 0x02, IPT_UNUSED ) /* no turbo switch */ |
| 531 | 531 | PORT_BIT( 0x01, 0x01, IPT_UNUSED ) |
| 532 | 532 | |
| 533 | | PORT_INCLUDE( kb_keytronic ) |
| 533 | PORT_INCLUDE( kb_keytronic_pc ) |
| 534 | 534 | PORT_INCLUDE( pc_mouse_microsoft ) /* IN12 - IN14 */ |
| 535 | 535 | PORT_INCLUDE( pc_joystick ) /* IN15 - IN19 */ |
| 536 | 536 | INPUT_PORTS_END |
| r5220 | r5221 | |
| 606 | 606 | PORT_BIT( 0x02, 0x02, IPT_UNUSED ) /* no turbo switch */ |
| 607 | 607 | PORT_BIT( 0x01, 0x01, IPT_UNUSED ) |
| 608 | 608 | |
| 609 | | PORT_INCLUDE( kb_keytronic ) |
| 609 | PORT_INCLUDE( kb_keytronic_pc ) |
| 610 | 610 | PORT_INCLUDE( pc_mouse_microsoft ) /* IN12 - IN14 */ |
| 611 | 611 | PORT_INCLUDE( pc_joystick ) /* IN15 - IN19 */ |
| 612 | 612 | PORT_INCLUDE( pcvideo_cga ) |
| r5220 | r5221 | |
| 683 | 683 | PORT_BIT( 0x02, 0x02, IPT_UNUSED ) /* no turbo switch */ |
| 684 | 684 | PORT_BIT( 0x01, 0x01, IPT_UNUSED ) |
| 685 | 685 | |
| 686 | | PORT_INCLUDE( kb_keytronic ) /* IN4 - IN11 */ |
| 686 | PORT_INCLUDE( kb_keytronic_pc ) /* IN4 - IN11 */ |
| 687 | 687 | PORT_INCLUDE( pc_mouse_microsoft ) /* IN12 - IN14 */ |
| 688 | 688 | PORT_INCLUDE( pc_joystick ) /* IN15 - IN19 */ |
| 689 | 689 | PORT_INCLUDE( pcvideo_cga ) |
| r5220 | r5221 | |
| 819 | 819 | PORT_BIT( 0x01, 0x01, IPT_UNUSED ) |
| 820 | 820 | |
| 821 | 821 | // PORT_INCLUDE( at_keyboard ) /* IN4 - IN11 */ |
| 822 | | PORT_INCLUDE( kb_keytronic ) |
| 822 | PORT_INCLUDE( kb_keytronic_pc ) |
| 823 | 823 | PORT_INCLUDE( pc_mouse_microsoft ) /* IN12 - IN14 */ |
| 824 | 824 | PORT_INCLUDE( pc_joystick ) /* IN15 - IN19 */ |
| 825 | 825 | PORT_INCLUDE( pcvideo_cga ) |