Previous 15994 Revisions Next

r6103 Friday 16th October, 2009 at 15:31:27 UTC by Dirk Best
[VTECH1] Added support for the SHRG (super hires graphics) modification
[docs]messnew.txt
[src/mess]messdriv.c
[src/mess/drivers]vtech1.c

src/mess/messdriv.c
r6102r6103
810810    DRIVER( las210de )  /* 1984 Sanyo Laser 210 (Germany)                   */
811811    DRIVER( vz200 )     /* 1984 Dick Smith Electronics VZ-200               */
812812    DRIVER( laser310 )  /* 1984 Laser 310 (210 with diff. keyboard and RAM) */
813    DRIVER( laser310h ) /* 1984 Laser 310 with SHRG mod                     */
813814    DRIVER( vz300 )     /* 1984 Dick Smith Electronics VZ-300               */
814815    DRIVER( laser350 )  /* 1984? Laser 350                                  */
815816    DRIVER( laser500 )  /* 1984? Laser 500                                  */
src/mess/drivers/vtech1.c
r6102r6103
590590   if (LOG_VTECH1_LATCH)
591591      logerror("vtech1_latch_w $%02X\n", data);
592592
593   /* bit 1, SHRG mod (if installed) */
594   if (videoram_size == 0x2000)
595   {
596      mc6847_gm0_w(vtech1->mc6847, BIT(data, 1));
597      mc6847_gm2_w(vtech1->mc6847, BIT(data, 1));
598   }
599
593600   /* bit 2, cassette out */
594601   cassette_output(vtech1->cassette, BIT(data, 2) ? +1.0 : -1.0);
595602
r6102r6103
617624         memory_set_bank(space->machine, 3, data - 1);
618625}
619626
627static WRITE8_HANDLER( vtech1_video_bank_w )
628{
629   logerror("vtech1_video_bank_w $%02X\n", data);
630   memory_set_bank(space->machine, 4, data & 0x03);
631}
620632
633
621634/***************************************************************************
622635    VIDEO EMULATION
623636***************************************************************************/
r6102r6103
695708   vtech1->fdc_latch = 0;
696709}
697710
711static DRIVER_INIT( vtech1h )
712{
713   const address_space *prg = cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM);
698714
715   DRIVER_INIT_CALL(vtech1);
716
717   /* the SHRG mod replaces the standard videoram chip with an 8k chip */
718   videoram_size = 0x2000;
719   videoram = auto_alloc_array(machine, UINT8, videoram_size);
720
721   memory_install_readwrite8_handler(prg, 0x7000, 0x77ff, 0, 0, SMH_BANK(4), SMH_BANK(4));
722   memory_configure_bank(machine, 4, 0, 4, videoram, 0x800);
723   memory_set_bank(machine, 4, 0);
724}
725
726
699727/***************************************************************************
700728    ADDRESS MAPS
701729***************************************************************************/
r6102r6103
745773   AM_RANGE(0x70, 0x7f) AM_WRITE(vtech1_memory_bank_w)
746774ADDRESS_MAP_END
747775
776static ADDRESS_MAP_START( vtech1_shrg_io, ADDRESS_SPACE_IO, 8 )
777   AM_IMPORT_FROM(vtech1_io)
778   AM_RANGE(0xd0, 0xdf) AM_WRITE(vtech1_video_bank_w)
779ADDRESS_MAP_END
748780
781
749782/***************************************************************************
750783    INPUT PORTS
751784***************************************************************************/
r6102r6103
920953   DEVCB_NULL,
921954};
922955
956static const mc6847_interface vtech1_shrg_mc6847_intf =
957{
958   DEVCB_HANDLER(vtech1_mc6847_videoram_r),
959   DEVCB_NULL,
960   DEVCB_LINE_VCC,
961   DEVCB_NULL,
962   DEVCB_LINE_GND,
963   DEVCB_NULL,
964   DEVCB_NULL,
965   DEVCB_NULL,
966   DEVCB_NULL,
967   DEVCB_CPU_INPUT_LINE("maincpu", 0),
968   DEVCB_NULL,
969   DEVCB_NULL,
970};
971
923972static MACHINE_DRIVER_START( laser110 )
924973   MDRV_DRIVER_DATA(vtech1_state)
925974
r6102r6103
9971046   MDRV_RAM_EXTRA_OPTIONS("16K,32K,4098K")
9981047MACHINE_DRIVER_END
9991048
1049static MACHINE_DRIVER_START( laser310h )
1050    MDRV_IMPORT_FROM(laser310)
10001051
1052    MDRV_CPU_MODIFY("maincpu")
1053    MDRV_CPU_IO_MAP(vtech1_shrg_io)
1054
1055    MDRV_DEVICE_REMOVE("mc6847")
1056    MDRV_MC6847_ADD("mc6847", vtech1_shrg_mc6847_intf)
1057   MDRV_MC6847_TYPE(M6847_VERSION_ORIGINAL_PAL)
1058MACHINE_DRIVER_END
1059
1060
10011061/***************************************************************************
10021062    ROM DEFINITIONS
10031063***************************************************************************/
r6102r6103
10461106ROM_END
10471107
10481108#define rom_vz300       rom_laser310
1109#define rom_laser310h   rom_laser310
10491110
10501111
10511112/***************************************************************************
r6102r6103
10801141    GAME DRIVERS
10811142***************************************************************************/
10821143
1083/*    YEAR  NAME      PARENT    COMPAT  MACHINE   INPUT   INIT    CONFIG  COMPANY                   FULLNAME                          FLAGS */
1084COMP( 1983, laser110, 0,        0,      laser110, vtech1, vtech1, vtech1, "Video Technology",       "Laser 110",                      0 )
1085COMP( 1983, las110de, laser110, 0,      laser110, vtech1, vtech1, vtech1, "Sanyo",                  "Laser 110 (Germany)",            0 )
1086COMP( 1983, laser200, 0,        0,      laser200, vtech1, vtech1, vtech1, "Video Technology",       "Laser 200",                      0 )
1087COMP( 1983, vz200de,  laser200, 0,      laser200, vtech1, vtech1, vtech1, "Video Technology",       "VZ-200 (Germany & Netherlands)", 0 )
1088COMP( 1983, fellow,   laser200, 0,      laser200, vtech1, vtech1, vtech1, "Salora",                 "Fellow (Finland)",               0 )
1089COMP( 1983, tx8000,   laser200, 0,      laser200, vtech1, vtech1, vtech1, "Texet",                  "TX-8000 (UK)",                   0 )
1090COMP( 1984, laser210, 0,        0,      laser210, vtech1, vtech1, vtech1, "Video Technology",       "Laser 210",                      0 )
1091COMP( 1984, vz200,    laser210, 0,      laser210, vtech1, vtech1, vtech1, "Dick Smith Electronics", "VZ-200 (Oceania)",               0 )
1092COMP( 1984, las210de, laser210, 0,      laser210, vtech1, vtech1, vtech1, "Sanyo",                  "Laser 210 (Germany)",            0 )
1093COMP( 1984, laser310, 0,        0,      laser310, vtech1, vtech1, vtech1, "Video Technology",       "Laser 310",                      0 )
1094COMP( 1984, vz300,    laser310, 0,      laser310, vtech1, vtech1, vtech1, "Dick Smith Electronics", "VZ-300 (Oceania)",               0 )
1144/*    YEAR  NAME       PARENT    COMPAT  MACHINE    INPUT   INIT     CONFIG  COMPANY                   FULLNAME                          FLAGS */
1145COMP( 1983, laser110,  0,        0,      laser110,  vtech1, vtech1,  vtech1, "Video Technology",       "Laser 110",                      0 )
1146COMP( 1983, las110de,  laser110, 0,      laser110,  vtech1, vtech1,  vtech1, "Sanyo",                  "Laser 110 (Germany)",            0 )
1147COMP( 1983, laser200,  0,        0,      laser200,  vtech1, vtech1,  vtech1, "Video Technology",       "Laser 200",                      0 )
1148COMP( 1983, vz200de,   laser200, 0,      laser200,  vtech1, vtech1,  vtech1, "Video Technology",       "VZ-200 (Germany & Netherlands)", 0 )
1149COMP( 1983, fellow,    laser200, 0,      laser200,  vtech1, vtech1,  vtech1, "Salora",                 "Fellow (Finland)",               0 )
1150COMP( 1983, tx8000,    laser200, 0,      laser200,  vtech1, vtech1,  vtech1, "Texet",                  "TX-8000 (UK)",                   0 )
1151COMP( 1984, laser210,  0,        0,      laser210,  vtech1, vtech1,  vtech1, "Video Technology",       "Laser 210",                      0 )
1152COMP( 1984, vz200,     laser210, 0,      laser210,  vtech1, vtech1,  vtech1, "Dick Smith Electronics", "VZ-200 (Oceania)",               0 )
1153COMP( 1984, las210de,  laser210, 0,      laser210,  vtech1, vtech1,  vtech1, "Sanyo",                  "Laser 210 (Germany)",            0 )
1154COMP( 1984, laser310,  0,        0,      laser310,  vtech1, vtech1,  vtech1, "Video Technology",       "Laser 310",                      0 )
1155COMP( 1984, vz300,     laser310, 0,      laser310,  vtech1, vtech1,  vtech1, "Dick Smith Electronics", "VZ-300 (Oceania)",               0 )
1156COMP( 1984, laser310h, laser310, 0,      laser310h, vtech1, vtech1h, vtech1, "Video Technology",       "Laser 310 (SHRG)",               GAME_COMPUTER_MODIFIED )
docs/messnew.txt
r6102r6103
6868
6969- [TRS80] Model 4 and 4P can boot from floppy disk. [Robbbert]
7070
71- [VTECH1] Added support for the SHRG (super hires graphics)
72  modification.  [Dirk Best]
7173
7274
75
7376User Interface Changes:
7477-----------------------
7578(none)

Previous 15994 Revisions Next


© 1998-2018 The MESS Team