src/mess/drivers/apf.c
| r1311 | r1312 | |
| 2 | 2 | |
| 3 | 3 | ******************************************************************************/ |
| 4 | 4 | #include "driver.h" |
| 5 | #include "inputx.h" |
| 5 | 6 | #include "video/m6847.h" |
| 6 | 7 | #include "includes/apf.h" |
| 7 | 8 | |
| r1311 | r1312 | |
| 13 | 14 | #include "sound/speaker.h" |
| 14 | 15 | |
| 15 | 16 | /* |
| 16 | | 0000- 2000-2003 PIA of M1000. is itself repeated until 3fff. |
| 17 | | She controls " keypads ", the way of video and the loudspeaker. Putting to 0 one of the 4 least |
| 18 | | significant bits of 2002, the corresponding line of keys is ***reflxed mng in 2000 (32 keys altogether). |
| 19 | | The other four bits of 2002 control the video way. Bit 0 of 2003 controls the interruptions. Bit 3 of 2003 controls |
| 20 | | the loudspeaker. 4000-47ff ROM of M1000. is repeated until 5fff and in e000-ffff. 6000-6003 PIA of the APF. |
| 21 | | is itself repeated until 63ff. She controls the keyboard of the APF and the cassette. The value of the |
| 22 | | number that represents the three bits less significant of 6002 they determine the line of eight |
| 23 | | keys that it is ***reflxed mng in 6000. Bit 4 of 6002 controls the motor of the cassette. Bit 5 of |
| 24 | | 6002 activates or deactivates the recording. Bit 5 of 6002 indicates the level of recording in |
| 25 | | the cassette. 6400-64ff would be the interface Here series, optional. 6500-66ff would be the |
| 26 | | disk controller Here, optional. 6800-77ff ROM (" cartridge ") 7800-7fff Probably ROM. The BASIC |
| 27 | | leaves frees this zone. 8000-9fff ROM (" cartridge ") A000-BFFF ram (8 Kb) C000-DFFF ram |
| 28 | | additional (8 Kb) E000-FFFF ROM of M1000 (to see 4000-47FF) The interruption activates with |
| 29 | | the vertical synchronism of the video. routine that it executes is in the ROM of M1000 |
| 30 | | and puts the video in way text during a short interval, so that the first line is seen of |
| 31 | | text screen in the superior part of the graphical screen. |
| 17 | 0000- 2000-2003 PIA of M1000. is itself repeated until 3fff. |
| 18 | She controls " keypads ", the way of video and the loudspeaker. Putting to 0 one of the 4 least |
| 19 | significant bits of 2002, the corresponding line of keys is ***reflxed mng in 2000 (32 keys altogether). |
| 20 | The other four bits of 2002 control the video way. Bit 0 of 2003 controls the interruptions. Bit 3 of 2003 controls |
| 21 | the loudspeaker. 4000-47ff ROM of M1000. is repeated until 5fff and in e000-ffff. 6000-6003 PIA of the APF. |
| 22 | is itself repeated until 63ff. She controls the keyboard of the APF and the cassette. The value of the |
| 23 | number that represents the three bits less significant of 6002 they determine the line of eight |
| 24 | keys that it is ***reflxed mng in 6000. Bit 4 of 6002 controls the motor of the cassette. Bit 5 of |
| 25 | 6002 activates or deactivates the recording. Bit 5 of 6002 indicates the level of recording in |
| 26 | the cassette. 6400-64ff would be the interface Here series, optional. 6500-66ff would be the |
| 27 | disk controller Here, optional. 6800-77ff ROM (" cartridge ") 7800-7fff Probably ROM. The BASIC |
| 28 | leaves frees this zone. 8000-9fff ROM (" cartridge ") A000-BFFF ram (8 Kb) C000-DFFF ram |
| 29 | additional (8 Kb) E000-FFFF ROM of M1000 (to see 4000-47FF) The interruption activates with |
| 30 | the vertical synchronism of the video. routine that it executes is in the ROM of M1000 |
| 31 | and puts the video in way text during a short interval, so that the first line is seen of |
| 32 | text screen in the superior part of the graphical screen. |
| 32 | 33 | */ |
| 33 | 34 | |
| 34 | 35 | /* 6600, 6500-6503 wd179x disc controller? 6400, 6401 */ |
| r1311 | r1312 | |
| 79 | 80 | /* bit 7..4 video control */ |
| 80 | 81 | /* bit 3..0 keypad line select */ |
| 81 | 82 | if (data & 0x08) |
| 82 | | pad_data &= readinputport(3); |
| 83 | pad_data &= readinputportbytag("joy3"); |
| 83 | 84 | if (data & 0x04) |
| 84 | | pad_data &= readinputport(2); |
| 85 | pad_data &= readinputportbytag("joy2"); |
| 85 | 86 | if (data & 0x02) |
| 86 | | pad_data &= readinputport(1); |
| 87 | pad_data &= readinputportbytag("joy1"); |
| 87 | 88 | if (data & 0x01) |
| 88 | | pad_data &= readinputport(0); |
| 89 | pad_data &= readinputportbytag("joy0"); |
| 89 | 90 | |
| 90 | 91 | /* 1b standard, 5b, db */ |
| 91 | 92 | /* 0001 */ |
| r1311 | r1312 | |
| 235 | 236 | |
| 236 | 237 | keyboard_line = data & 0x07; |
| 237 | 238 | |
| 239 | // TODO: convert to readinputbytag |
| 238 | 240 | keyboard_data = readinputport(keyboard_line+4); |
| 239 | 241 | |
| 240 | 242 | /* bit 4: cassette motor control */ |
| r1311 | r1312 | |
| 388 | 390 | |
| 389 | 391 | static ADDRESS_MAP_START(apf_imagination_map, ADDRESS_SPACE_PROGRAM, 8) |
| 390 | 392 | AM_RANGE( 0x00000, 0x003ff) AM_RAM AM_BASE(&apf_video_ram) AM_MIRROR(0x1c00) |
| 391 | | AM_RANGE( 0x02000, 0x03fff) AM_READWRITE(pia_0_r, pia_0_w) |
| 393 | AM_RANGE( 0x02000, 0x03fff) AM_READWRITE(pia_0_r, pia_0_w) |
| 392 | 394 | AM_RANGE( 0x04000, 0x047ff) AM_ROM AM_REGION(REGION_CPU1, 0x10000) AM_MIRROR(0x1800) |
| 393 | 395 | AM_RANGE( 0x06000, 0x063ff) AM_READWRITE(pia_1_r, pia_1_w) |
| 394 | 396 | AM_RANGE( 0x06400, 0x064ff) AM_READWRITE(serial_r, serial_w) |
| r1311 | r1312 | |
| 406 | 408 | |
| 407 | 409 | static ADDRESS_MAP_START(apf_m1000_map, ADDRESS_SPACE_PROGRAM, 8) |
| 408 | 410 | AM_RANGE( 0x00000, 0x003ff) AM_RAM AM_BASE(&apf_video_ram) AM_MIRROR(0x1c00) |
| 409 | | AM_RANGE( 0x02000, 0x03fff) AM_READWRITE(pia_0_r, pia_0_w) |
| 411 | AM_RANGE( 0x02000, 0x03fff) AM_READWRITE(pia_0_r, pia_0_w) |
| 410 | 412 | AM_RANGE( 0x04000, 0x047ff) AM_ROM AM_REGION(REGION_CPU1, 0x10000) AM_MIRROR(0x1800) |
| 411 | 413 | AM_RANGE( 0x06800, 0x077ff) AM_ROM |
| 412 | 414 | AM_RANGE( 0x08000, 0x09fff) AM_ROM |
| r1311 | r1312 | |
| 414 | 416 | AM_RANGE( 0x0e000, 0x0e7ff) AM_ROM AM_REGION(REGION_CPU1, 0x10000) AM_MIRROR(0x1800) |
| 415 | 417 | ADDRESS_MAP_END |
| 416 | 418 | |
| 417 | | static INPUT_PORTS_START( apf_m1000) |
| 419 | /* The following input ports definitions are wrong and can't be debugged unless the driver |
| 420 | is capable of running more cartridges. However each of the controllers supported by the M-1000 |
| 421 | have these features: |
| 422 | |
| 423 | 1 8-way joystick |
| 424 | 1 big red fire button on the upper side |
| 425 | 12-keys keypad with the following layout |
| 426 | |
| 427 | 7 8 9 0 |
| 428 | 4 5 6 Cl |
| 429 | 1 2 3 En |
| 430 | |
| 431 | On the control panel of the M-1000 there are two big buttons: a Reset key and the Power switch |
| 432 | |
| 433 | Reference: http://www.nausicaa.net/~lgreenf/apfpage2.htm |
| 434 | */ |
| 435 | |
| 436 | static INPUT_PORTS_START( apf_m1000 ) |
| 437 | |
| 438 | /* |
| 439 | There must be a bug lurking somewhere, because the lines 0-3 are not detected correctly: |
| 440 | Using another known APF emulator, this simple Basic program can be used to read |
| 441 | the joysticks and the keyboard: |
| 442 | |
| 443 | 10 PRINT KEY$(n); |
| 444 | 20 GOTO 10 |
| 445 | |
| 446 | where n = 0, 1 or 2 - 0 = keyboard, 1,2 = joysticks #1 and #2 |
| 447 | |
| 448 | When reading the keyboard KEY$(0) returns the character associated to the key, with the |
| 449 | following exceptions: |
| 450 | |
| 451 | Ctrl = CHR$(1) |
| 452 | Rept = CHR$(2) |
| 453 | Here Is = CHR$(4) |
| 454 | Rubout = CHR$(8) |
| 455 | |
| 456 | When reading the joysticks, KEY$() = "N", "S", "E", "W" for the directions |
| 457 | "0" - "9" for the keypad digits |
| 458 | "?" for "Cl" |
| 459 | "!" for "En" |
| 460 | |
| 461 | Current code doesn't behaves this way... |
| 462 | |
| 463 | */ |
| 464 | |
| 418 | 465 | /* line 0 */ |
| 419 | | PORT_START |
| 420 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("q") PORT_CODE(KEYCODE_Q) |
| 421 | | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("w") PORT_CODE(KEYCODE_W) |
| 422 | | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("e") PORT_CODE(KEYCODE_E) |
| 423 | | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("r") PORT_CODE(KEYCODE_R) |
| 424 | | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("t") PORT_CODE(KEYCODE_T) |
| 425 | | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("y") PORT_CODE(KEYCODE_Y) |
| 426 | | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("u") PORT_CODE(KEYCODE_U) |
| 427 | | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("i") PORT_CODE(KEYCODE_I) |
| 466 | PORT_START_TAG("joy0") |
| 467 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_OTHER) PORT_NAME("q") PORT_CODE(KEYCODE_Q) |
| 468 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_OTHER) PORT_NAME("w") PORT_CODE(KEYCODE_W) |
| 469 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_OTHER) PORT_NAME("e") PORT_CODE(KEYCODE_E) |
| 470 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_OTHER) PORT_NAME("r") PORT_CODE(KEYCODE_R) |
| 471 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_OTHER) PORT_NAME("t") PORT_CODE(KEYCODE_T) |
| 472 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_OTHER) PORT_NAME("y") PORT_CODE(KEYCODE_Y) |
| 473 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_OTHER) PORT_NAME("u") PORT_CODE(KEYCODE_U) |
| 474 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_OTHER) PORT_NAME("i") PORT_CODE(KEYCODE_I) |
| 428 | 475 | |
| 429 | 476 | /* line 1 */ |
| 430 | | PORT_START |
| 431 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("o") PORT_CODE(KEYCODE_O) |
| 432 | | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("p") PORT_CODE(KEYCODE_P) |
| 433 | | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("a") PORT_CODE(KEYCODE_A) |
| 434 | | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("s") PORT_CODE(KEYCODE_S) |
| 435 | | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("d") PORT_CODE(KEYCODE_D) |
| 436 | | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("f") PORT_CODE(KEYCODE_F) |
| 437 | | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("g") PORT_CODE(KEYCODE_G) |
| 438 | | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("h") PORT_CODE(KEYCODE_H) |
| 477 | PORT_START_TAG("joy1") |
| 478 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_OTHER) PORT_NAME("o") PORT_CODE(KEYCODE_O) |
| 479 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_OTHER) PORT_NAME("p") PORT_CODE(KEYCODE_P) |
| 480 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_OTHER) PORT_NAME("a") PORT_CODE(KEYCODE_A) |
| 481 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_OTHER) PORT_NAME("s") PORT_CODE(KEYCODE_S) |
| 482 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_OTHER) PORT_NAME("d") PORT_CODE(KEYCODE_D) |
| 483 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_OTHER) PORT_NAME("f") PORT_CODE(KEYCODE_F) |
| 484 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_OTHER) PORT_NAME("g") PORT_CODE(KEYCODE_G) |
| 485 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_OTHER) PORT_NAME("h") PORT_CODE(KEYCODE_H) |
| 439 | 486 | |
| 440 | 487 | /* line 2 */ |
| 441 | | PORT_START |
| 442 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("j") PORT_CODE(KEYCODE_J) |
| 443 | | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("k") PORT_CODE(KEYCODE_K) |
| 444 | | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("l") PORT_CODE(KEYCODE_L) |
| 445 | | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("z") PORT_CODE(KEYCODE_Z) |
| 446 | | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("x") PORT_CODE(KEYCODE_X) |
| 447 | | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("c") PORT_CODE(KEYCODE_C) |
| 448 | | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("v") PORT_CODE(KEYCODE_V) |
| 449 | | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("b") PORT_CODE(KEYCODE_B) |
| 488 | PORT_START_TAG("joy2") |
| 489 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_OTHER) PORT_NAME("j") PORT_CODE(KEYCODE_J) |
| 490 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_OTHER) PORT_NAME("k") PORT_CODE(KEYCODE_K) |
| 491 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_OTHER) PORT_NAME("l") PORT_CODE(KEYCODE_L) |
| 492 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_OTHER) PORT_NAME("z") PORT_CODE(KEYCODE_Z) |
| 493 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_OTHER) PORT_NAME("x") PORT_CODE(KEYCODE_X) |
| 494 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_OTHER) PORT_NAME("c") PORT_CODE(KEYCODE_C) |
| 495 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_OTHER) PORT_NAME("v") PORT_CODE(KEYCODE_V) |
| 496 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_OTHER) PORT_NAME("b") PORT_CODE(KEYCODE_B) |
| 450 | 497 | |
| 451 | 498 | /* line 3 */ |
| 452 | | PORT_START |
| 453 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("n") PORT_CODE(KEYCODE_N) |
| 454 | | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("m") PORT_CODE(KEYCODE_3) |
| 455 | | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("1") PORT_CODE(KEYCODE_1) |
| 456 | | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("2") PORT_CODE(KEYCODE_2) |
| 457 | | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("3") PORT_CODE(KEYCODE_3) |
| 458 | | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("4") PORT_CODE(KEYCODE_4) |
| 459 | | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("5") PORT_CODE(KEYCODE_5) |
| 460 | | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("6") PORT_CODE(KEYCODE_6) |
| 499 | PORT_START_TAG("joy3") |
| 500 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_OTHER) PORT_NAME("n") PORT_CODE(KEYCODE_N) |
| 501 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_OTHER) PORT_NAME("m") PORT_CODE(KEYCODE_M) |
| 502 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_OTHER) PORT_NAME("1") PORT_CODE(KEYCODE_1) |
| 503 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_OTHER) PORT_NAME("2") PORT_CODE(KEYCODE_2) |
| 504 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_OTHER) PORT_NAME("3") PORT_CODE(KEYCODE_3) |
| 505 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_OTHER) PORT_NAME("4") PORT_CODE(KEYCODE_4) |
| 506 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_OTHER) PORT_NAME("5") PORT_CODE(KEYCODE_5) |
| 507 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_OTHER) PORT_NAME("6") PORT_CODE(KEYCODE_6) |
| 508 | |
| 461 | 509 | INPUT_PORTS_END |
| 462 | 510 | |
| 463 | 511 | |
| 464 | | static INPUT_PORTS_START( apf_imagination) |
| 465 | | /* temp assignments , these are the keypad */ |
| 466 | | PORT_START |
| 467 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("q") PORT_CODE(KEYCODE_0_PAD) |
| 468 | | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("w") PORT_CODE(KEYCODE_1_PAD) |
| 469 | | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("e") PORT_CODE(KEYCODE_2_PAD) |
| 470 | | PORT_BIT (0x0f8, 0xf8, IPT_UNUSED) |
| 512 | static INPUT_PORTS_START( apf_imagination ) |
| 471 | 513 | |
| 472 | | PORT_START |
| 473 | | PORT_BIT (0x0ff, 0xff, IPT_UNUSED) |
| 514 | PORT_INCLUDE( apf_m1000 ) |
| 474 | 515 | |
| 475 | | PORT_START |
| 476 | | PORT_BIT (0x0ff, 0xff, IPT_UNUSED) |
| 516 | /* Reference: http://www.nausicaa.net/~lgreenf/apfpage2.htm */ |
| 477 | 517 | |
| 478 | | PORT_START |
| 479 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("F1") PORT_CODE(KEYCODE_F1) |
| 480 | | PORT_BIT (0x0fe, 0xfe, IPT_UNUSED) |
| 481 | | |
| 482 | | /* assignments with ** are known to be correct */ |
| 483 | 518 | /* keyboard line 0 */ |
| 484 | | PORT_START |
| 485 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("X") PORT_CODE(KEYCODE_X)/**/ |
| 486 | | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Z") PORT_CODE(KEYCODE_Z)/**/ |
| 487 | | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Q") PORT_CODE(KEYCODE_Q)/**/ |
| 488 | | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("2") PORT_CODE(KEYCODE_2)/**/ |
| 489 | | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("A") PORT_CODE(KEYCODE_A)/**/ |
| 490 | | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("1") PORT_CODE(KEYCODE_1)/**/ |
| 491 | | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("W") PORT_CODE(KEYCODE_W) /**/ |
| 492 | | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("S") PORT_CODE(KEYCODE_S) /**/ |
| 519 | PORT_START_TAG("key0") |
| 520 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("X") PORT_CODE(KEYCODE_X) PORT_CHAR('x') |
| 521 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Z") PORT_CODE(KEYCODE_Z) PORT_CHAR('z') |
| 522 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Q IF") PORT_CODE(KEYCODE_Q) PORT_CHAR('q') |
| 523 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("2 \" LET") PORT_CODE(KEYCODE_2) PORT_CHAR('2') PORT_CHAR('\"') |
| 524 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("A") PORT_CODE(KEYCODE_A) PORT_CHAR('a') |
| 525 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("1 ! GOSUB") PORT_CODE(KEYCODE_1) PORT_CHAR('1') PORT_CHAR('!') |
| 526 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("W STEP") PORT_CODE(KEYCODE_W) PORT_CHAR('w') |
| 527 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("S") PORT_CODE(KEYCODE_S) PORT_CHAR('s') |
| 493 | 528 | |
| 494 | 529 | /* keyboard line 1 */ |
| 495 | | PORT_START |
| 496 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("C") PORT_CODE(KEYCODE_C) /**/ |
| 497 | | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("V") PORT_CODE(KEYCODE_V) /**/ |
| 498 | | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("R") PORT_CODE(KEYCODE_R)/**/ |
| 499 | | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("3") PORT_CODE(KEYCODE_3)/**/ |
| 500 | | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("F") PORT_CODE(KEYCODE_F)/**/ |
| 501 | | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("4") PORT_CODE(KEYCODE_4)/**/ |
| 502 | | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("E") PORT_CODE(KEYCODE_E)/**/ |
| 503 | | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("D") PORT_CODE(KEYCODE_D) /**/ |
| 530 | PORT_START_TAG("key1") |
| 531 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("C") PORT_CODE(KEYCODE_C) PORT_CHAR('c') |
| 532 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("V") PORT_CODE(KEYCODE_V) PORT_CHAR('v') |
| 533 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("R READ") PORT_CODE(KEYCODE_R) PORT_CHAR('r') |
| 534 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("3 # DATA") PORT_CODE(KEYCODE_3) PORT_CHAR('3') PORT_CHAR('#') |
| 535 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("F") PORT_CODE(KEYCODE_F) PORT_CHAR('f') |
| 536 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("4 $ INPUT") PORT_CODE(KEYCODE_4) PORT_CHAR('4') PORT_CHAR('$') |
| 537 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("E STOP") PORT_CODE(KEYCODE_E) PORT_CHAR('e') |
| 538 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("D") PORT_CODE(KEYCODE_D) PORT_CHAR('d') |
| 504 | 539 | |
| 505 | 540 | /* keyboard line 2 */ |
| 506 | | PORT_START |
| 507 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("N") PORT_CODE(KEYCODE_N)/**/ |
| 508 | | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("B") PORT_CODE(KEYCODE_B)/**/ |
| 509 | | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("T") PORT_CODE(KEYCODE_T)/**/ |
| 510 | | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("6") PORT_CODE(KEYCODE_6) /**/ |
| 511 | | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("G") PORT_CODE(KEYCODE_G) /**/ |
| 512 | | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("5") PORT_CODE(KEYCODE_5)/**/ |
| 513 | | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Y") PORT_CODE(KEYCODE_Y)/**/ |
| 514 | | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("H") PORT_CODE(KEYCODE_H)/**/ |
| 541 | PORT_START_TAG("key2") |
| 542 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("N ^") PORT_CODE(KEYCODE_N) PORT_CHAR('n') PORT_CHAR('^') |
| 543 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("B") PORT_CODE(KEYCODE_B) PORT_CHAR('b') |
| 544 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("T NEXT") PORT_CODE(KEYCODE_T) PORT_CHAR('t') |
| 545 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("6 & FOR") PORT_CODE(KEYCODE_6) PORT_CHAR('6') PORT_CHAR('&') |
| 546 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("G") PORT_CODE(KEYCODE_G) PORT_CHAR('g') |
| 547 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("5 % DIM") PORT_CODE(KEYCODE_5) PORT_CHAR('5') PORT_CHAR('%') |
| 548 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Y PRINT") PORT_CODE(KEYCODE_Y) PORT_CHAR('y') |
| 549 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("H") PORT_CODE(KEYCODE_H) PORT_CHAR('h') |
| 515 | 550 | |
| 516 | 551 | /* keyboard line 3 */ |
| 517 | | PORT_START |
| 518 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("M") PORT_CODE(KEYCODE_M) /**/ |
| 519 | | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME(",") PORT_CODE(KEYCODE_COMMA) /**/ |
| 520 | | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("I") PORT_CODE(KEYCODE_I)/**/ |
| 521 | | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("7") PORT_CODE(KEYCODE_7)/**/ |
| 522 | | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("K") PORT_CODE(KEYCODE_K)/**/ |
| 523 | | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("8") PORT_CODE(KEYCODE_8)/**/ |
| 524 | | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("U") PORT_CODE(KEYCODE_U)/**/ |
| 525 | | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("J") PORT_CODE(KEYCODE_J)/**/ |
| 552 | PORT_START_TAG("key3") |
| 553 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("M ]") PORT_CODE(KEYCODE_M) PORT_CHAR('m') PORT_CHAR(']') |
| 554 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME(", <") PORT_CODE(KEYCODE_COMMA) PORT_CHAR(',') PORT_CHAR('<') |
| 555 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("I LIST") PORT_CODE(KEYCODE_I) PORT_CHAR('i') |
| 556 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("7 ' RETURN") PORT_CODE(KEYCODE_7) PORT_CHAR('7') PORT_CHAR('\'') |
| 557 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("K [") PORT_CODE(KEYCODE_K) PORT_CHAR('k') PORT_CHAR('[') |
| 558 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("8 ( THEN") PORT_CODE(KEYCODE_8) PORT_CHAR('8') PORT_CHAR('(') |
| 559 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("U END") PORT_CODE(KEYCODE_U) PORT_CHAR('u') |
| 560 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("J") PORT_CODE(KEYCODE_J) PORT_CHAR('j') |
| 526 | 561 | |
| 527 | 562 | /* keyboard line 4 */ |
| 528 | | PORT_START |
| 529 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("/") PORT_CODE(KEYCODE_SLASH) /**/ |
| 530 | | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME(".") PORT_CODE(KEYCODE_STOP) /**/ |
| 531 | | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("O") PORT_CODE(KEYCODE_O) /**/ |
| 532 | | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("0") PORT_CODE(KEYCODE_0) /**/ |
| 533 | | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("L") PORT_CODE(KEYCODE_L) /**/ |
| 534 | | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("9") PORT_CODE(KEYCODE_9) /**/ |
| 535 | | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("P") PORT_CODE(KEYCODE_P) /**/ |
| 536 | | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME(";") PORT_CODE(KEYCODE_COLON) /**/ |
| 563 | PORT_START_TAG("key4") |
| 564 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("/ ?") PORT_CODE(KEYCODE_SLASH) PORT_CHAR('/') PORT_CHAR('?') |
| 565 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME(". >") PORT_CODE(KEYCODE_STOP) PORT_CHAR('.') PORT_CHAR('>') |
| 566 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("O _ REM") PORT_CODE(KEYCODE_O) PORT_CHAR('o') PORT_CHAR('_') |
| 567 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("0 GOTO") PORT_CODE(KEYCODE_0) PORT_CHAR('0') |
| 568 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("L \\") PORT_CODE(KEYCODE_L) PORT_CHAR('l') PORT_CHAR('\\') |
| 569 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("9 ) ON") PORT_CODE(KEYCODE_9) PORT_CHAR('9') PORT_CHAR(')') |
| 570 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("P @ USING") PORT_CODE(KEYCODE_P) PORT_CHAR('p') PORT_CHAR('@') |
| 571 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("; +") PORT_CODE(KEYCODE_COLON) PORT_CHAR(';') PORT_CHAR('+') |
| 537 | 572 | |
| 538 | 573 | /* keyboard line 5 */ |
| 539 | | PORT_START |
| 540 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("SPACE") PORT_CODE(KEYCODE_SPACE) /**/ |
| 541 | | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME(":") PORT_CODE(KEYCODE_QUOTE) /**/ |
| 542 | | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("ENTER") PORT_CODE(KEYCODE_ENTER) /**/ |
| 543 | | PORT_BIT (0x08, 0x08, IPT_UNUSED) |
| 544 | | PORT_BIT (0x10, 0x10, IPT_UNUSED) |
| 545 | | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("-") PORT_CODE(KEYCODE_MINUS) /**/ |
| 546 | | PORT_BIT (0x40, 0x40, IPT_UNUSED) |
| 547 | | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("DEL") PORT_CODE(KEYCODE_BACKSPACE) /**/ |
| 574 | PORT_START_TAG("key5") |
| 575 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Space") PORT_CODE(KEYCODE_SPACE) PORT_CHAR(32) |
| 576 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME(": *") PORT_CODE(KEYCODE_MINUS) PORT_CHAR(':') PORT_CHAR('*') |
| 577 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Return") PORT_CODE(KEYCODE_CLOSEBRACE) PORT_CHAR(13) |
| 578 | /* Not sure about the following, could be also bit 0x10 or 0x40: using other known APF emulators as benchmark, |
| 579 | it looks like that Line Feed is not intercepted by KEY$(). Unless a better method is devised (APF assembly?) |
| 580 | I'll stick with this assignment. |
| 581 | */ |
| 582 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Line Feed") PORT_CODE(KEYCODE_OPENBRACE) PORT_CHAR(10) |
| 583 | PORT_BIT(0x10, 0x10, IPT_UNUSED) /* ??? */ |
| 584 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("- = RESTORE") PORT_CODE(KEYCODE_EQUALS) PORT_CHAR('-') PORT_CHAR('=') |
| 585 | PORT_BIT(0x40, 0x40, IPT_UNUSED) /* ??? */ |
| 586 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Rubout") PORT_CODE(KEYCODE_QUOTE) PORT_CHAR(8) |
| 548 | 587 | |
| 549 | 588 | /* line 6 */ |
| 550 | | PORT_START |
| 551 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("SHIFT") PORT_CODE(KEYCODE_RSHIFT) /**/ |
| 552 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("SHIFT") PORT_CODE(KEYCODE_LSHIFT) /**/ |
| 553 | | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("[") PORT_CODE(KEYCODE_OPENBRACE) /**/ |
| 554 | | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("FUNCTION?") PORT_CODE(KEYCODE_LCONTROL) /**/ |
| 555 | | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("REPEAT") PORT_CODE(KEYCODE_TAB) /**/ |
| 589 | PORT_START_TAG("key6") |
| 590 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Right Shift") PORT_CODE(KEYCODE_RSHIFT) PORT_CHAR(UCHAR_SHIFT_1) |
| 591 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Left Shift") PORT_CODE(KEYCODE_LSHIFT) PORT_CHAR(UCHAR_SHIFT_1) |
| 592 | /* This key displays the glyph "[", but a quick test reveals that its ASCII code is 27. */ |
| 593 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Esc") PORT_CODE(KEYCODE_TAB) PORT_CHAR(27) |
| 594 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Ctrl") PORT_CODE(KEYCODE_LCONTROL) PORT_CHAR(UCHAR_SHIFT_2) |
| 595 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Rept") PORT_CODE(KEYCODE_ENTER) PORT_CHAR(UCHAR_MAMEKEY(TAB)) |
| 596 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Break") PORT_CODE(KEYCODE_BACKSLASH) PORT_CHAR(UCHAR_MAMEKEY(DEL)) |
| 597 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Here Is") PORT_CODE(KEYCODE_BACKSPACE) PORT_CHAR(UCHAR_MAMEKEY(HOME)) |
| 598 | /* It's very likely these inputs are actually disconnected: if connected they act as a duplicate of key "X" and "Z" */ |
| 599 | // PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Another X") PORT_CODE(KEYCODE_8_PAD) |
| 600 | // PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Another Z") PORT_CODE(KEYCODE_9_PAD) |
| 601 | PORT_BIT(0x40, 0x40, IPT_UNUSED) |
| 602 | PORT_BIT(0x80, 0x80, IPT_UNUSED) |
| 556 | 603 | |
| 557 | | PORT_BIT( 0x010, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("SHIFT") PORT_CODE(KEYCODE_3_PAD) |
| 558 | | PORT_BIT( 0x020, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("SHIFT") PORT_CODE(KEYCODE_4_PAD) |
| 559 | | PORT_BIT( 0x040, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("SHIFT") PORT_CODE(KEYCODE_5_PAD) /* same as X */ |
| 560 | | PORT_BIT( 0x080, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("SHIFT") PORT_CODE(KEYCODE_6_PAD) /* same as Z */ |
| 561 | | |
| 562 | 604 | /* line 7 */ |
| 563 | | PORT_START |
| 564 | | PORT_BIT( 0x001, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("SHIFT") PORT_CODE(KEYCODE_7_PAD) |
| 565 | | PORT_BIT( 0x002, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("SHIFT") PORT_CODE(KEYCODE_8_PAD) |
| 566 | | PORT_BIT( 0x004, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("SHIFT") PORT_CODE(KEYCODE_9_PAD) |
| 605 | PORT_START_TAG("key7") |
| 606 | PORT_BIT(0xff, 0xff, IPT_UNUSED) /* ??? */ |
| 567 | 607 | |
| 568 | | /* |
| 569 | | PORT_BIT (0x01, 0x01, IPT_UNUSED) |
| 570 | | PORT_BIT (0x02, 0x02, IPT_UNUSED) |
| 571 | | PORT_BIT (0x04, 0x04, IPT_UNUSED) */ |
| 572 | | PORT_BIT (0x08, 0x08, IPT_UNUSED) |
| 573 | | PORT_BIT (0x10, 0x10, IPT_UNUSED) |
| 574 | | PORT_BIT (0x20, 0x20, IPT_UNUSED) |
| 575 | | PORT_BIT (0x40, 0x40, IPT_UNUSED) |
| 576 | | PORT_BIT (0x80, 0x80, IPT_UNUSED) |
| 577 | | |
| 578 | 608 | INPUT_PORTS_END |
| 579 | 609 | |
| 580 | 610 | |