src/mess/drivers/mycom.c
| r15355 | r15356 | |
| 31 | 31 | standard monitor, and Basic, will also respond to this key. |
| 32 | 32 | - The keyboard has a "English" key on the left, and a "Japan" key on the |
| 33 | 33 | right. Pressing the appropriate key toggles the input language mode. |
| 34 | | Internally, this turns the Kana bit off/on. On our keyboard, hold down |
| 35 | | the ALT key to get Kana; release it to get English. |
| 34 | Internally, this turns the Kana bit off/on. On our keyboard, the ALT key |
| 35 | toggles between English and Kana. |
| 36 | 36 | |
| 37 | 37 | TODO/info: |
| 38 | | - Sound not working. See the info down the page. |
| 38 | - Sound not working. The info makes its way to the audio chip but for |
| 39 | some unknown reason, nothing is heard. |
| 39 | 40 | - FDC, type 1771, single sided, capacity 143KBytes, not connected up |
| 40 | 41 | - Cassette doesn't load |
| 41 | 42 | - Printer |
| r15355 | r15356 | |
| 308 | 309 | PORT_START("XX") |
| 309 | 310 | PORT_BIT(0x001,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("CTRL") PORT_CODE(KEYCODE_LCONTROL) PORT_CODE(KEYCODE_RCONTROL) |
| 310 | 311 | PORT_BIT(0x002,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("SHIFT") PORT_CODE(KEYCODE_LSHIFT) PORT_CODE(KEYCODE_RSHIFT) |
| 311 | | PORT_BIT(0x004,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("KANA") PORT_CODE(KEYCODE_LALT) PORT_CODE(KEYCODE_RALT) |
| 312 | PORT_BIT(0x004,IP_ACTIVE_HIGH,IPT_KEYBOARD) PORT_NAME("KANA") PORT_CODE(KEYCODE_LALT) PORT_CODE(KEYCODE_RALT) PORT_TOGGLE |
| 312 | 313 | INPUT_PORTS_END |
| 313 | 314 | |
| 314 | 315 | |
| r15355 | r15356 | |
| 330 | 331 | GFXDECODE_ENTRY( "chargen", 0x0000, mycom_charlayout, 0, 1 ) |
| 331 | 332 | GFXDECODE_END |
| 332 | 333 | |
| 333 | | static const wd17xx_interface wd1771_intf = |
| 334 | | { |
| 335 | | DEVCB_NULL, |
| 336 | | DEVCB_NULL, // no information available |
| 337 | | DEVCB_NULL, |
| 338 | | {FLOPPY_0, FLOPPY_1, NULL, NULL} |
| 339 | | }; |
| 340 | | |
| 341 | 334 | static const mc6845_interface mc6845_intf = |
| 342 | 335 | { |
| 343 | 336 | "screen", /* screen we are acting on */ |
| r15355 | r15356 | |
| 357 | 350 | m_i_videoram = (m_i_videoram & 0x700) | data; |
| 358 | 351 | |
| 359 | 352 | m_sn_we = data; |
| 360 | | /* doesn't work? */ |
| 361 | | //printf(":%X ",data); |
| 362 | | //if(m_sn_we) |
| 363 | | //sn76496_w(m_audio, 0, data); |
| 364 | 353 | } |
| 365 | 354 | |
| 366 | 355 | WRITE8_MEMBER( mycom_state::mycom_06_w ) |
| r15355 | r15356 | |
| 418 | 407 | m_cass->change_state( |
| 419 | 408 | BIT(data,3) ? CASSETTE_MOTOR_ENABLED : CASSETTE_MOTOR_DISABLED, CASSETTE_MASK_MOTOR); |
| 420 | 409 | |
| 421 | | if BIT(data, 3) // motor on |
| 410 | if (BIT(data, 3)) // motor on |
| 422 | 411 | m_cass->output( BIT(data, 2) ? -1.0 : +1.0); |
| 423 | 412 | |
| 424 | 413 | if ( (BIT(data, 7)) != (BIT(m_0a, 7)) ) |
| r15355 | r15356 | |
| 426 | 415 | |
| 427 | 416 | m_0a = data; |
| 428 | 417 | |
| 429 | | /* Info about sound |
| 430 | | - uses a SN76489N chip at an unknown clock |
| 431 | | - each time a key is pressed, 4 lots of data are output to port 4 |
| 432 | | - after each data byte, there is a 4 byte control sequence to port 0a |
| 433 | | - the control sequence is 9F,8F,AF,BF |
| 434 | | - the data bytes are 8D,01,9F,9F |
| 435 | | - the end result is silence :( */ |
| 436 | | |
| 437 | | // no sound comes out |
| 418 | // if WE & CE are low, pass sound command to audio chip |
| 438 | 419 | if ((data & 0x30)==0) |
| 439 | 420 | sn76496_w(m_audio, 0, m_sn_we); |
| 440 | 421 | } |
| r15355 | r15356 | |
| 535 | 516 | } |
| 536 | 517 | } |
| 537 | 518 | |
| 519 | // The floppy parameters are unknown, the below is copied from another driver |
| 520 | static LEGACY_FLOPPY_OPTIONS_START(mycom) |
| 521 | LEGACY_FLOPPY_OPTION(mycom, "fdd", "mycom disk image", basicdsk_identify_default, basicdsk_construct_default, NULL, |
| 522 | HEADS([2]) |
| 523 | TRACKS([82]) |
| 524 | SECTORS([5]) |
| 525 | SECTOR_LENGTH([1024]) |
| 526 | FIRST_SECTOR_ID([1])) |
| 527 | LEGACY_FLOPPY_OPTIONS_END |
| 528 | |
| 529 | static const floppy_interface mycom_floppy_interface = |
| 530 | { |
| 531 | DEVCB_NULL, |
| 532 | DEVCB_NULL, |
| 533 | DEVCB_NULL, |
| 534 | DEVCB_NULL, |
| 535 | DEVCB_NULL, |
| 536 | FLOPPY_STANDARD_5_25_DSHD, |
| 537 | LEGACY_FLOPPY_OPTIONS_NAME(mycom), |
| 538 | NULL, |
| 539 | NULL |
| 540 | }; |
| 541 | |
| 542 | static const wd17xx_interface wd1771_intf = |
| 543 | { |
| 544 | DEVCB_NULL, |
| 545 | DEVCB_NULL, // no information available |
| 546 | DEVCB_NULL, |
| 547 | {FLOPPY_0, FLOPPY_1, NULL, NULL} |
| 548 | }; |
| 549 | |
| 550 | |
| 538 | 551 | MACHINE_START_MEMBER(mycom_state) |
| 539 | 552 | { |
| 540 | 553 | m_p_ram = memregion("maincpu")->base(); |
| r15355 | r15356 | |
| 582 | 595 | MCFG_SPEAKER_STANDARD_MONO("mono") |
| 583 | 596 | MCFG_SOUND_WAVE_ADD(WAVE_TAG, CASSETTE_TAG) |
| 584 | 597 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) |
| 585 | | MCFG_SOUND_ADD("sn1", SN76489, 1996800) // unknown clock / divider |
| 586 | | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) |
| 598 | MCFG_SOUND_ADD("sn1", SN76489, XTAL_10MHz / 4) |
| 599 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.50) |
| 587 | 600 | |
| 588 | 601 | /* Devices */ |
| 589 | 602 | MCFG_MSM5832_ADD(MSM5832RS_TAG, XTAL_32_768kHz) |
| 590 | 603 | MCFG_CASSETTE_ADD( CASSETTE_TAG, default_cassette_interface ) |
| 591 | 604 | MCFG_FD1771_ADD("fdc", wd1771_intf) |
| 605 | MCFG_LEGACY_FLOPPY_2_DRIVES_ADD(mycom_floppy_interface) |
| 592 | 606 | |
| 593 | 607 | MCFG_TIMER_ADD_PERIODIC("keyboard_timer", mycom_kbd, attotime::from_hz(20)) |
| 594 | 608 | MACHINE_CONFIG_END |
| r15355 | r15356 | |
| 615 | 629 | |
| 616 | 630 | /* Driver */ |
| 617 | 631 | |
| 618 | | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT COMPANY FULLNAME FLAGS */ |
| 619 | | COMP( 1981, mycom, 0, 0, mycom, mycom, mycom, "Japan Electronics College", "MYCOMZ-80A", GAME_NOT_WORKING | GAME_NO_SOUND) |
| 620 | | |
| 632 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT COMPANY FULLNAME FLAGS */ |
| 633 | COMP( 1981, mycom, 0, 0, mycom, mycom, mycom, "Japan Electronics College", "MYCOMZ-80A", GAME_NOT_WORKING | GAME_NO_SOUND ) |