Previous 15994 Revisions Next

r10230 Sunday 30th January, 2011 at 01:56:02 UTC by Robbbert
[SOL20] Added character roms.
[src/mess/drivers]ptcsol.c

src/mess/drivers/ptcsol.c
r10229r10230
2424    Need a dump of BOOTLOAD. Need a tape of CUTER. Need orginal dumps of
2525    SOLOS, DPMON and CONSOL.
2626
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
2732    Other roms needed:
28      - Dump of the 2 character generators (motorola 6574 and 6575)
2933      - Dump of U18 in the keyboard
3034
3135    Hardware variants (ever shipped?):
r10229r10230
456460   PORT_CONFNAME( 0x01, 0x01, "High Baud Rate") // jumper on the board
457461   PORT_CONFSETTING(    0x00, "4800")
458462   PORT_CONFSETTING(    0x01, "9600")
463   PORT_CONFNAME( 0x02, 0x00, "Character Rom")
464   PORT_CONFSETTING(    0x00, "6574")
465   PORT_CONFSETTING(    0x02, "6575")
459466INPUT_PORTS_END
460467
461468static const ay31015_config sol20_ay31015_config =
r10229r10230
528535      }
529536      while (!(data & 1) && (s_count < 7)); // find which switch is used
530537
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
532539      s_clock = 9600 << 4;
533540   else
534541      s_clock = s_bauds[s_count] << 4;
r10229r10230
561568// Note on blinking characters:
562569// any character with bit 7 set will blink. With DPMON, do DA C000 C2FF to see what happens
563570   UINT8 s1 = input_port_read(screen->machine, "S1");
571   UINT16 which = (input_port_read(screen->machine, "CONFIG") & 2) << 10;
564572   sol20_state *state = screen->machine->driver_data<sol20_state>();
565573   UINT8 y,ra,chr,gfx;
566574   UINT16 sy=0,ma,x,inv;
r10229r10230
594602            if ((ra == 0) || ((s1 & 4) && (chr < 0x20)))
595603               gfx = inv;
596604            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            }
599612            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            }
601619
602620            /* Display a scanline of a character */
603621            *p++ = ( gfx & 0x80 ) ? 1 : 0;
r10229r10230
616634   return 0;
617635}
618636
637/* F4 Character Displayer */
638static 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
651static GFXDECODE_START( sol20 )
652   GFXDECODE_ENTRY( "chargen", 0x0000, sol20_charlayout, 0, 1 )
653GFXDECODE_END
654
619655WRITE8_MEMBER( sol20_state::sol20_kbd_put )
620656{
621657   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;
623659}
624660
625661static GENERIC_TERMINAL_INTERFACE( sol20_terminal_intf )
r10229r10230
643679   MCFG_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16)
644680   MCFG_SCREEN_SIZE(576, 208)
645681   MCFG_SCREEN_VISIBLE_AREA(0, 575, 0, 207)
682   MCFG_GFXDECODE(sol20)
646683   MCFG_PALETTE_LENGTH(2)
647684   MCFG_PALETTE_INIT(black_and_white)
648685
r10229r10230
673710   ROMX_LOAD( "dpmon.bin", 0xc000, 0x0800, BAD_DUMP CRC(2a84f099) SHA1(60ff6e38082c50afcf0f40707ef65668a411008b), ROM_BIOS(2) )
674711   ROM_SYSTEM_BIOS(2, "CONSOL", "CONSOL")
675712   ROMX_LOAD( "consol.bin", 0xc000, 0x0400, BAD_DUMP CRC(80bf6d85) SHA1(84b81c60bb08a3a5435ec1be56a67aa695bce099), ROM_BIOS(3) )
676   /* Character generator rom is missing */
677713
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) )
682717ROM_END
683718
684719/* Driver */

Previous 15994 Revisions Next


© 1998-2018 The MESS Team