src/mess/drivers/ptcsol.c
| r10229 | r10230 | |
| 24 | 24 | Need a dump of BOOTLOAD. Need a tape of CUTER. Need orginal dumps of |
| 25 | 25 | SOLOS, DPMON and CONSOL. |
| 26 | 26 | |
| 27 | The character roms are built by a script from the Solace source, then the |
| 28 | characters moved back to the original 7x9 matrix positions, as shown in |
| 29 | the manual. Although they look exactly the same, I've marked them as |
| 30 | BAD_DUMP until properly verified. |
| 31 | |
| 27 | 32 | Other roms needed: |
| 28 | | - Dump of the 2 character generators (motorola 6574 and 6575) |
| 29 | 33 | - Dump of U18 in the keyboard |
| 30 | 34 | |
| 31 | 35 | Hardware variants (ever shipped?): |
| r10229 | r10230 | |
| 456 | 460 | PORT_CONFNAME( 0x01, 0x01, "High Baud Rate") // jumper on the board |
| 457 | 461 | PORT_CONFSETTING( 0x00, "4800") |
| 458 | 462 | PORT_CONFSETTING( 0x01, "9600") |
| 463 | PORT_CONFNAME( 0x02, 0x00, "Character Rom") |
| 464 | PORT_CONFSETTING( 0x00, "6574") |
| 465 | PORT_CONFSETTING( 0x02, "6575") |
| 459 | 466 | INPUT_PORTS_END |
| 460 | 467 | |
| 461 | 468 | static const ay31015_config sol20_ay31015_config = |
| r10229 | r10230 | |
| 528 | 535 | } |
| 529 | 536 | while (!(data & 1) && (s_count < 7)); // find which switch is used |
| 530 | 537 | |
| 531 | | if ((s_count == 7) && (input_port_read(machine, "CONFIG"))) // if highest, look at jumper |
| 538 | if ((s_count == 7) && (input_port_read(machine, "CONFIG")&1)) // if highest, look at jumper |
| 532 | 539 | s_clock = 9600 << 4; |
| 533 | 540 | else |
| 534 | 541 | s_clock = s_bauds[s_count] << 4; |
| r10229 | r10230 | |
| 561 | 568 | // Note on blinking characters: |
| 562 | 569 | // any character with bit 7 set will blink. With DPMON, do DA C000 C2FF to see what happens |
| 563 | 570 | UINT8 s1 = input_port_read(screen->machine, "S1"); |
| 571 | UINT16 which = (input_port_read(screen->machine, "CONFIG") & 2) << 10; |
| 564 | 572 | sol20_state *state = screen->machine->driver_data<sol20_state>(); |
| 565 | 573 | UINT8 y,ra,chr,gfx; |
| 566 | 574 | UINT16 sy=0,ma,x,inv; |
| r10229 | r10230 | |
| 594 | 602 | if ((ra == 0) || ((s1 & 4) && (chr < 0x20))) |
| 595 | 603 | gfx = inv; |
| 596 | 604 | else |
| 597 | | if (ra < 10) |
| 598 | | gfx = state->FNT[(chr<<4) | (ra-1) ] ^ inv; |
| 605 | if ((chr==0x2C) || (chr==0x3B) || (chr==0x67) || (chr==0x6A) || (chr==0x70) || (chr==0x71) || (chr==0x79)) |
| 606 | { |
| 607 | if (ra < 4) |
| 608 | gfx = inv; |
| 609 | else |
| 610 | gfx = state->FNT[which | (chr<<4) | (ra-4) ] ^ inv; |
| 611 | } |
| 599 | 612 | else |
| 600 | | gfx = inv; |
| 613 | { |
| 614 | if (ra < 10) |
| 615 | gfx = state->FNT[which | (chr<<4) | (ra-1) ] ^ inv; |
| 616 | else |
| 617 | gfx = inv; |
| 618 | } |
| 601 | 619 | |
| 602 | 620 | /* Display a scanline of a character */ |
| 603 | 621 | *p++ = ( gfx & 0x80 ) ? 1 : 0; |
| r10229 | r10230 | |
| 616 | 634 | return 0; |
| 617 | 635 | } |
| 618 | 636 | |
| 637 | /* F4 Character Displayer */ |
| 638 | static const gfx_layout sol20_charlayout = |
| 639 | { |
| 640 | 7, 9, /* 7 x 9 characters */ |
| 641 | 128*2, /* 128 characters per rom */ |
| 642 | 1, /* 1 bits per pixel */ |
| 643 | { 0 }, /* no bitplanes */ |
| 644 | /* x offsets */ |
| 645 | { 0, 1, 2, 3, 4, 5, 6 }, |
| 646 | /* y offsets */ |
| 647 | { 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8, 8*8 }, |
| 648 | 8*16 /* every char takes 16 bytes */ |
| 649 | }; |
| 650 | |
| 651 | static GFXDECODE_START( sol20 ) |
| 652 | GFXDECODE_ENTRY( "chargen", 0x0000, sol20_charlayout, 0, 1 ) |
| 653 | GFXDECODE_END |
| 654 | |
| 619 | 655 | WRITE8_MEMBER( sol20_state::sol20_kbd_put ) |
| 620 | 656 | { |
| 621 | 657 | m_sol20_fa &= 0xfe; |
| 622 | | m_sol20_fc = data | 0x80; // CONSOL requires bit 7 to be high, others don't care |
| 658 | m_sol20_fc = data; |
| 623 | 659 | } |
| 624 | 660 | |
| 625 | 661 | static GENERIC_TERMINAL_INTERFACE( sol20_terminal_intf ) |
| r10229 | r10230 | |
| 643 | 679 | MCFG_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 644 | 680 | MCFG_SCREEN_SIZE(576, 208) |
| 645 | 681 | MCFG_SCREEN_VISIBLE_AREA(0, 575, 0, 207) |
| 682 | MCFG_GFXDECODE(sol20) |
| 646 | 683 | MCFG_PALETTE_LENGTH(2) |
| 647 | 684 | MCFG_PALETTE_INIT(black_and_white) |
| 648 | 685 | |
| r10229 | r10230 | |
| 673 | 710 | ROMX_LOAD( "dpmon.bin", 0xc000, 0x0800, BAD_DUMP CRC(2a84f099) SHA1(60ff6e38082c50afcf0f40707ef65668a411008b), ROM_BIOS(2) ) |
| 674 | 711 | ROM_SYSTEM_BIOS(2, "CONSOL", "CONSOL") |
| 675 | 712 | ROMX_LOAD( "consol.bin", 0xc000, 0x0400, BAD_DUMP CRC(80bf6d85) SHA1(84b81c60bb08a3a5435ec1be56a67aa695bce099), ROM_BIOS(3) ) |
| 676 | | /* Character generator rom is missing */ |
| 677 | 713 | |
| 678 | | /* character generator not dumped, using the one from 'c10' for now */ |
| 679 | | ROM_REGION( 0x2000, "chargen", 0 ) |
| 680 | | ROM_LOAD( "c10_char.bin", 0x0000, 0x2000, BAD_DUMP CRC(cb530b6f) SHA1(95590bbb433db9c4317f535723b29516b9b9fcbf)) |
| 681 | | /* There are actually 2 character generators available - the 6574 and the 6575 */ |
| 714 | ROM_REGION( 0x1000, "chargen", 0 ) |
| 715 | ROM_LOAD( "6574.bin", 0x0000, 0x0800, BAD_DUMP CRC(fd75df4f) SHA1(4d09aae2f933478532b7d3d1a2dee7123d9828ca) ) |
| 716 | ROM_LOAD( "6575.bin", 0x0800, 0x0800, BAD_DUMP CRC(cfdb76c2) SHA1(ab00798161d13f07bee3cf0e0070a2f0a805591f) ) |
| 682 | 717 | ROM_END |
| 683 | 718 | |
| 684 | 719 | /* Driver */ |