src/mess/drivers/mycom.c
| r9441 | r9442 | |
| 248 | 248 | PORT_BIT(0x02000000,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("9") PORT_CODE(KEYCODE_9) PORT_CHAR('9') |
| 249 | 249 | PORT_BIT(0x04000000,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME(":") PORT_CODE(KEYCODE_QUOTE) PORT_CHAR(':') |
| 250 | 250 | PORT_BIT(0x08000000,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME(";") PORT_CODE(KEYCODE_COLON) PORT_CHAR(';') |
| 251 | | PORT_BIT(0x10000000,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("<") PORT_CODE(KEYCODE_BACKSLASH2) PORT_CHAR('<') |
| 251 | PORT_BIT(0x10000000,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("<") PORT_CODE(KEYCODE_COMMA) PORT_CHAR('<') |
| 252 | 252 | PORT_BIT(0x20000000,IP_ACTIVE_HIGH,IPT_UNUSED) //0x3d = |
| 253 | 253 | PORT_BIT(0x40000000,IP_ACTIVE_HIGH,IPT_UNUSED) //0x3e > |
| 254 | 254 | PORT_BIT(0x80000000,IP_ACTIVE_HIGH,IPT_UNUSED) //0x3f ? |
| r9441 | r9442 | |
| 371 | 371 | static READ8_DEVICE_HANDLER( mycom_06_r ) |
| 372 | 372 | { |
| 373 | 373 | /* |
| 374 | | xxxx ---- keyboard related, it expects to return 1101 here |
| 374 | x--- ---- keyboard s5 |
| 375 | -x-- ---- keyboard s4 (motor on/off) |
| 376 | --x- ---- keyboard s3 (must be high) |
| 377 | ---x ---- keyboard s2 |
| 375 | 378 | */ |
| 376 | | return (mame_rand(device->machine) & 0x20) | 0x00; |
| 379 | return 0xff; |
| 377 | 380 | } |
| 378 | 381 | |
| 379 | 382 | static READ8_DEVICE_HANDLER( mycom_05_r ) |
| r9441 | r9442 | |
| 471 | 474 | if(scancode == 0x3c) |
| 472 | 475 | scancode = 0x3e; |
| 473 | 476 | } |
| 477 | if (keymod & 1) scancode &= 0xbf; // ctrl, sets d6 low |
| 478 | if (keymod & 4) scancode |= 0x80; // kana, sets d7 high |
| 474 | 479 | keyb_press = scancode; |
| 475 | 480 | keyb_press_flag = 1; |
| 476 | 481 | return; |