src/mess/drivers/mz2000.c
| r10834 | r10835 | |
| 7 | 7 | Basically a simpler version of Sharp MZ-2500 |
| 8 | 8 | |
| 9 | 9 | TODO: |
| 10 | | - keyboard hookup is copied from mz2500, but it's actually different; |
| 11 | 10 | - cassette interface; |
| 12 | 11 | - implement remaining video capabilities |
| 13 | 12 | - some softwares (namely the Art Magic one) hangs with a pit timer |
| r10834 | r10835 | |
| 332 | 331 | PORT_BIT(0x02,IP_ACTIVE_LOW,IPT_KEYBOARD) PORT_NAME("F10") PORT_CODE(KEYCODE_F10) |
| 333 | 332 | PORT_BIT(0x04,IP_ACTIVE_LOW,IPT_KEYBOARD) PORT_NAME("8 (PAD)") PORT_CODE(KEYCODE_8_PAD) |
| 334 | 333 | PORT_BIT(0x08,IP_ACTIVE_LOW,IPT_KEYBOARD) PORT_NAME("9 (PAD)") PORT_CODE(KEYCODE_9_PAD) |
| 335 | | PORT_BIT(0x10,IP_ACTIVE_LOW,IPT_KEYBOARD) PORT_NAME(", (PAD)") //PORT_CODE(KEYCODE_SLASH_PAD) |
| 334 | PORT_BIT(0x10,IP_ACTIVE_LOW,IPT_KEYBOARD) PORT_NAME("00 (PAD)") //PORT_CODE(KEYCODE_SLASH_PAD) |
| 336 | 335 | PORT_BIT(0x20,IP_ACTIVE_LOW,IPT_KEYBOARD) PORT_NAME(". (PAD)") PORT_CODE(KEYCODE_DEL_PAD) |
| 337 | 336 | PORT_BIT(0x40,IP_ACTIVE_LOW,IPT_KEYBOARD) PORT_NAME("+ (PAD)") PORT_CODE(KEYCODE_PLUS_PAD) |
| 338 | 337 | PORT_BIT(0x80,IP_ACTIVE_LOW,IPT_KEYBOARD) PORT_NAME("- (PAD)") PORT_CODE(KEYCODE_MINUS_PAD) |
| r10834 | r10835 | |
| 392 | 391 | PORT_BIT(0x02,IP_ACTIVE_LOW,IPT_KEYBOARD) PORT_NAME("Y") PORT_CODE(KEYCODE_Y) PORT_CHAR('Y') |
| 393 | 392 | PORT_BIT(0x04,IP_ACTIVE_LOW,IPT_KEYBOARD) PORT_NAME("Z") PORT_CODE(KEYCODE_Z) PORT_CHAR('Z') |
| 394 | 393 | PORT_BIT(0x08,IP_ACTIVE_LOW,IPT_KEYBOARD) PORT_NAME("^") |
| 395 | | PORT_BIT(0x10,IP_ACTIVE_LOW,IPT_KEYBOARD) //Yen symbol |
| 394 | PORT_BIT(0x10,IP_ACTIVE_LOW,IPT_KEYBOARD) PORT_NAME("\\") |
| 396 | 395 | PORT_BIT(0x20,IP_ACTIVE_LOW,IPT_KEYBOARD) PORT_NAME("_") |
| 397 | 396 | PORT_BIT(0x40,IP_ACTIVE_LOW,IPT_KEYBOARD) PORT_NAME(".") |
| 398 | 397 | PORT_BIT(0x80,IP_ACTIVE_LOW,IPT_KEYBOARD) PORT_NAME(",") |
| r10834 | r10835 | |
| 419 | 418 | |
| 420 | 419 | PORT_START("KEYA") |
| 421 | 420 | PORT_BIT(0x01,IP_ACTIVE_LOW,IPT_KEYBOARD) PORT_NAME("]") |
| 422 | | PORT_BIT(0x02,IP_ACTIVE_LOW,IPT_KEYBOARD) PORT_NAME("COPY") |
| 423 | | PORT_BIT(0x04,IP_ACTIVE_LOW,IPT_KEYBOARD) PORT_NAME("CLR") |
| 424 | | PORT_BIT(0x08,IP_ACTIVE_LOW,IPT_KEYBOARD) PORT_NAME("INST") |
| 425 | | PORT_BIT(0x10,IP_ACTIVE_LOW,IPT_KEYBOARD) PORT_NAME("BACKSPACE") PORT_CODE(KEYCODE_BACKSPACE) |
| 426 | | PORT_BIT(0x20,IP_ACTIVE_LOW,IPT_KEYBOARD) PORT_NAME("ESC") |
| 427 | | PORT_BIT(0x40,IP_ACTIVE_LOW,IPT_KEYBOARD) PORT_NAME("* (PAD)") PORT_CODE(KEYCODE_ASTERISK) |
| 428 | | PORT_BIT(0x80,IP_ACTIVE_LOW,IPT_KEYBOARD) PORT_NAME("/ (PAD)") PORT_CODE(KEYCODE_SLASH_PAD) |
| 421 | PORT_BIT(0x02,IP_ACTIVE_LOW,IPT_UNUSED) |
| 422 | PORT_BIT(0x04,IP_ACTIVE_LOW,IPT_KEYBOARD) PORT_NAME("HOME") PORT_CODE(KEYCODE_HOME) |
| 423 | PORT_BIT(0x08,IP_ACTIVE_LOW,IPT_KEYBOARD) PORT_NAME("DEL") PORT_CODE(KEYCODE_BACKSPACE) |
| 424 | PORT_BIT(0x10,IP_ACTIVE_LOW,IPT_UNUSED) |
| 425 | PORT_BIT(0x20,IP_ACTIVE_LOW,IPT_UNUSED) |
| 426 | PORT_BIT(0x40,IP_ACTIVE_LOW,IPT_UNUSED) |
| 427 | PORT_BIT(0x80,IP_ACTIVE_LOW,IPT_UNUSED) |
| 429 | 428 | |
| 430 | 429 | PORT_START("KEYB") |
| 431 | 430 | PORT_BIT(0x01,IP_ACTIVE_LOW,IPT_KEYBOARD) PORT_NAME("GRPH") |
| 432 | 431 | PORT_BIT(0x02,IP_ACTIVE_LOW,IPT_KEYBOARD) PORT_NAME("SLOCK") |
| 433 | 432 | PORT_BIT(0x04,IP_ACTIVE_LOW,IPT_KEYBOARD) PORT_NAME("SHIFT") PORT_CODE(KEYCODE_LSHIFT) |
| 434 | | PORT_BIT(0x08,IP_ACTIVE_LOW,IPT_KEYBOARD) PORT_NAME("KANA") |
| 435 | | PORT_BIT(0x10,IP_ACTIVE_LOW,IPT_KEYBOARD) PORT_NAME("CTRL") |
| 433 | PORT_BIT(0x08,IP_ACTIVE_LOW,IPT_KEYBOARD) PORT_NAME("RVS") |
| 434 | PORT_BIT(0x10,IP_ACTIVE_LOW,IPT_UNUSED) |
| 436 | 435 | PORT_BIT(0xe0,IP_ACTIVE_LOW,IPT_UNUSED) |
| 437 | 436 | |
| 438 | 437 | PORT_START("KEYC") |
| 439 | | PORT_BIT(0x01,IP_ACTIVE_LOW,IPT_KEYBOARD) PORT_NAME("KJ1") |
| 440 | | PORT_BIT(0x02,IP_ACTIVE_LOW,IPT_KEYBOARD) PORT_NAME("KJ2") |
| 441 | | PORT_BIT(0xfc,IP_ACTIVE_LOW,IPT_UNUSED) |
| 438 | PORT_BIT(0xff,IP_ACTIVE_LOW,IPT_UNUSED) |
| 442 | 439 | |
| 443 | 440 | PORT_START("KEYD") |
| 444 | | PORT_BIT(0x01,IP_ACTIVE_LOW,IPT_KEYBOARD) PORT_NAME("LOGO KEY") |
| 445 | | PORT_BIT(0xfe,IP_ACTIVE_LOW,IPT_UNUSED) |
| 441 | PORT_BIT(0xff,IP_ACTIVE_LOW,IPT_UNUSED) |
| 446 | 442 | |
| 447 | 443 | PORT_START("UNUSED") |
| 448 | 444 | PORT_BIT(0xff,IP_ACTIVE_LOW,IPT_UNUSED ) |
| r10834 | r10835 | |
| 722 | 718 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.20) |
| 723 | 719 | |
| 724 | 720 | MCFG_SOUND_ADD("beeper", BEEP, 0) |
| 725 | | MCFG_SOUND_ROUTE(ALL_OUTPUTS,"mono",0.50) |
| 721 | MCFG_SOUND_ROUTE(ALL_OUTPUTS,"mono",0.20) |
| 726 | 722 | MACHINE_CONFIG_END |
| 727 | 723 | |
| 728 | 724 | |