Previous 15994 Revisions Next

r6154 Wednesday 21st October, 2009 at 08:55:06 UTC by Fabio Priuli
- [CRVISION] Many improvements: [Luca Antignano]
* Merged the Dick Smith Wizzard into the Crvision machine because they
are exactly the same computers and share the same hardware and
peripherals
* Optional memory expansion can be chained to 14K not 32K
* Totally rewritten ROM loading routines into RAM. As a result, all 6K,
10K and 12K ROMs now load correctly
* Fixed system info, manufacturers, etc.
[src/mess/drivers]crvision.c

src/mess/drivers/crvision.c
r6153r6154
11/*
2    This 1980s computer was manufactured by Vtech of Hong Kong.
3    known as: creatiVision, Dick Smith Wizzard, Funvision, Hanimex Ramses, Laser2001 and possibly others.
2   This 1980s computer was manufactured by Vtech of Hong Kong.
3   known as: CreatiVision, Dick Smith Wizzard, Funvision, Rameses, VZ 2000 and possibly others.
44
5    There is also a CreatiVision Mk 2, possibly also known as the Laser 500. This was a proper computer,
6    containing a CreatiVision cartridge slot.
5   There is also a CreatiVision Mk 2, possibly also known as the Laser 500. This was a hardware variant,
6   sort of "evolved" hardware made compatible for the scheduled "ColecoVision expansion module", which
7   never actually shipped for CreatiVision, but for the Laser 2001 home computer (successor to
8   CreatiVision).
79
8    NOTE:
10   NOTE:
911
10    If you find that the keys R,D,F,G are not working while using the BASIC cartridge,
11    please remap the Joystick 2 keys to somewhere else. By default they overlap those keys.
12   If you find that the keys R,D,F,G are not working while using the BASIC cartridge,
13   please remap the Joystick 2 keys to somewhere else. By default they overlap those keys.
1214
1315    TODO:
1416
15    - BASIC v1,v2 numbers are invisible
16    - proper keyboard emulation, need keyboard schematics
17    - memory expansion 16K/32K, can be chained
18    - centronics control/status port
19    - convert to use new cartridge system
20    - non-working cartridges:
21        * Deep Sea Adventure (6K)
22        * Locomotive (10K)
23        * Planet Defender (6K)
24        * Tennis (Dick Smith 6K)
25        * Tennis (Wimbledon 6K)
26    - homebrew roms with graphics issues:
27        * Christmas Demo 1.0
28        * Titanic Frogger Demo 1.0
29        * Titanic Frogger Demo 1.1
30
17   - fix Diagnostic A (video) sprites generator test
18   - proper keyboard emulation, need keyboard schematics
19   - memory expansion 16K, can be chained
20   - centronics control/status port
21   - non-working cartridges:
22      * Diagnostic B (keyboard)
23   - homebrew roms with graphics issues:
24      * Christmas Demo 1.0
25      * Titanic Frogger Demo 1.0
26      * Titanic Frogger Demo 1.1
3127*/
3228
3329#include "driver.h"
r6153r6154
6157/* Memory Map */
6258
6359static ADDRESS_MAP_START( crvision_map, ADDRESS_SPACE_PROGRAM, 8 )
64   AM_RANGE(0x0000, 0x03ff) AM_MIRROR(0x0c00) AM_RAM
60   AM_RANGE(0x0000, 0x03ff) AM_MIRROR(0x0c00) AM_RAM
6561   AM_RANGE(0x1000, 0x1003) AM_MIRROR(0x0ffc) AM_DEVREADWRITE(PIA6821_TAG, pia6821_r, pia6821_w)
6662   AM_RANGE(0x2000, 0x2000) AM_MIRROR(0x0ffe) AM_READ(TMS9928A_vram_r)
6763   AM_RANGE(0x2001, 0x2001) AM_MIRROR(0x0ffe) AM_READ(TMS9928A_register_r)
r6153r6154
6965   AM_RANGE(0x3001, 0x3001) AM_MIRROR(0x0ffe) AM_WRITE(TMS9928A_register_w)
7066   AM_RANGE(0x4000, 0x7fff) AM_ROMBANK(BANK_ROM2)
7167   AM_RANGE(0x8000, 0xbfff) AM_ROMBANK(BANK_ROM1)
72   AM_RANGE(0xc000, 0xc7ff) AM_MIRROR(0x3800) AM_ROM
73ADDRESS_MAP_END
74
75static ADDRESS_MAP_START( wizzard_map, ADDRESS_SPACE_PROGRAM, 8 )
76   AM_RANGE(0x0000, 0x03ff) AM_MIRROR(0x0c00) AM_RAM
77   AM_RANGE(0x1000, 0x1003) AM_MIRROR(0x0ffc) AM_DEVREADWRITE(PIA6821_TAG, pia6821_r, pia6821_w)
78   AM_RANGE(0x2000, 0x2000) AM_MIRROR(0x0ffe) AM_READ(TMS9928A_vram_r)
79   AM_RANGE(0x2001, 0x2001) AM_MIRROR(0x0ffe) AM_READ(TMS9928A_register_r)
80   AM_RANGE(0x3000, 0x3000) AM_MIRROR(0x0ffe) AM_WRITE(TMS9928A_vram_w)
81   AM_RANGE(0x3001, 0x3001) AM_MIRROR(0x0ffe) AM_WRITE(TMS9928A_register_w)
82   AM_RANGE(0x4000, 0x7fff) AM_ROMBANK(BANK_ROM2)
83   AM_RANGE(0x8000, 0xbfff) AM_ROMBANK(BANK_ROM1)
84//  AM_RANGE(0xc000, 0xe7ff) AM_RAMBANK(3)
68//   AM_RANGE(0xc000, 0xe7ff) AM_RAMBANK(3)
8569   AM_RANGE(0xe800, 0xe800) AM_DEVWRITE(CENTRONICS_TAG, centronics_data_w)
8670   AM_RANGE(0xe801, 0xe801) AM_DEVREADWRITE(CENTRONICS_TAG, centronics_status_r, centronics_ctrl_w)
87//  AM_RANGE(0xf000, 0xf7ff) AM_RAMBANK(4)
71//   AM_RANGE(0xe802, 0xf7ff) AM_RAMBANK(4)
8872   AM_RANGE(0xf800, 0xffff) AM_ROM
8973ADDRESS_MAP_END
9074
r6153r6154
264248
265249static INTERRUPT_GEN( crvision_int )
266250{
267    TMS9928A_interrupt(device->machine);
251   TMS9928A_interrupt(device->machine);
268252}
269253
270254static void crvision_vdp_interrupt(running_machine *machine, int state)
r6153r6154
475459   switch (size)
476460   {
477461   case 0x1000: // 4K
478      image_fread(image, mem + 0x9000, 0x1000);
479      memory_install_read8_handler(program, 0x8000, 0x9fff, 0, 0x2000, SMH_BANK(BANK_ROM1));
462      image_fread(image, mem + 0x9000, 0x1000);         // load 4KB at 0x9000
463      memcpy(mem + 0xb000, mem + 0x9000, 0x1000);         // mirror 4KB at 0xb000
464      memory_install_read8_handler(program, 0x8000, 0xbfff, 0, 0x2000, SMH_BANK(BANK_ROM1));
480465      break;
481466
482467   case 0x1800: // 6K
483      image_fread(image, mem + 0x9000, 0x1000);
484      image_fread(image, mem + 0x8800, 0x0800);
485      memory_install_read8_handler(program, 0x8000, 0x9fff, 0, 0x2000, SMH_BANK(BANK_ROM1));
468      image_fread(image, mem + 0x9000, 0x1000);         // load lower 4KB at 0x9000
469      memcpy(mem + 0xb000, mem + 0x9000, 0x1000);         // mirror lower 4KB at 0xb000
470      image_fread(image, mem + 0x8000, 0x0800);         // load higher 2KB at 0x8000
471      memcpy(mem + 0x8800, mem + 0x8000, 0x0800);         // mirror higher 2KB at 0x8800
472      memcpy(mem + 0xa000, mem + 0x8000, 0x0800);         // mirror higher 2KB at 0xa000
473      memcpy(mem + 0xa800, mem + 0x8000, 0x0800);         // mirror higher 2KB at 0xa800
474      memory_install_read8_handler(program, 0x8000, 0xbfff, 0, 0x2000, SMH_BANK(BANK_ROM1));
486475      break;
487476
488477   case 0x2000: // 8K
489      image_fread(image, mem + 0x8000, 0x2000);
490      memory_install_read8_handler(program, 0x8000, 0x9fff, 0, 0x2000, SMH_BANK(BANK_ROM1));
478      image_fread(image, mem + 0x8000, 0x2000);         // load 8KB at 0x8000
479      memcpy(mem + 0xa000, mem + 0x8000, 0x2000);         // mirror 8KB at 0xa000
480      memory_install_read8_handler(program, 0x8000, 0xbfff, 0, 0x2000, SMH_BANK(BANK_ROM1));
491481      break;
492482
493483   case 0x2800: // 10K
494      image_fread(image, mem + 0x8000, 0x2000);
495      image_fread(image, mem + 0x5800, 0x0800);
496      memory_install_read8_handler(program, 0x8000, 0x9fff, 0, 0x2000, SMH_BANK(BANK_ROM1));
497      memory_install_read8_handler(program, 0x4000, 0x5fff, 0, 0x2000, SMH_BANK(BANK_ROM2));
484      image_fread(image, mem + 0x8000, 0x2000);         // load lower 8KB at 0x8000
485      memcpy(mem + 0xa000, mem + 0x8000, 0x2000);         // mirror lower 8KB at 0xa000
486      image_fread(image, mem + 0x4000, 0x0800);         // load higher 2KB at 0x4000
487      memcpy(mem + 0x4800, mem + 0x4000, 0x0800);         // mirror higher 2KB at 0x4800
488      memcpy(mem + 0x5000, mem + 0x4000, 0x0800);         // mirror higher 2KB at 0x5000
489      memcpy(mem + 0x5800, mem + 0x4000, 0x0800);         // mirror higher 2KB at 0x5800
490      memcpy(mem + 0x6000, mem + 0x4000, 0x0800);         // mirror higher 2KB at 0x6000
491      memcpy(mem + 0x6800, mem + 0x4000, 0x0800);         // mirror higher 2KB at 0x6800
492      memcpy(mem + 0x7000, mem + 0x4000, 0x0800);         // mirror higher 2KB at 0x7000
493      memcpy(mem + 0x7800, mem + 0x4000, 0x0800);         // mirror higher 2KB at 0x7800
494      memory_install_read8_handler(program, 0x8000, 0xbfff, 0, 0, SMH_BANK(BANK_ROM1));
495      memory_install_read8_handler(program, 0x4000, 0x7fff, 0, 0, SMH_BANK(BANK_ROM2));
498496      break;
499497
500498   case 0x3000: // 12K
501      image_fread(image, mem + 0x8000, 0x2000);
502      image_fread(image, mem + 0x5000, 0x1000);
503      memory_install_read8_handler(program, 0x8000, 0x9fff, 0, 0x2000, SMH_BANK(BANK_ROM1));
504      memory_install_read8_handler(program, 0x4000, 0x5fff, 0, 0x2000, SMH_BANK(BANK_ROM2));
499      image_fread(image, mem + 0x8000, 0x2000);         // load lower 8KB at 0x8000
500      memcpy(mem + 0xa000, mem + 0x8000, 0x2000);         // mirror lower 8KB at 0xa000
501      image_fread(image, mem + 0x4000, 0x1000);         // load higher 4KB at 0x4000
502      memcpy(mem + 0x5000, mem + 0x4000, 0x1000);         // mirror higher 4KB at 0x5000
503      memcpy(mem + 0x6000, mem + 0x4000, 0x1000);         // mirror higher 4KB at 0x6000
504      memcpy(mem + 0x7000, mem + 0x4000, 0x1000);         // mirror higher 4KB at 0x7000
505      memory_install_read8_handler(program, 0x8000, 0xbfff, 0, 0, SMH_BANK(BANK_ROM1));
506      memory_install_read8_handler(program, 0x4000, 0x7fff, 0, 0, SMH_BANK(BANK_ROM2));
505507      break;
506508
507509   case 0x4000: // 16K
508      image_fread(image, mem + 0xa000, 0x2000);
509      image_fread(image, mem + 0x8000, 0x2000);
510      image_fread(image, mem + 0xa000, 0x2000);         // load lower 8KB at 0xa000
511      image_fread(image, mem + 0x8000, 0x2000);         // load higher 8KB at 0x8000
510512      memory_install_read8_handler(program, 0x8000, 0xbfff, 0, 0, SMH_BANK(BANK_ROM1));
511513      memory_install_read8_handler(program, 0x4000, 0x7fff, 0, 0, SMH_BANK(BANK_ROM2));
512514      break;
513515
514516   case 0x4800: // 18K
515      image_fread(image, mem + 0xa000, 0x2000);
516      image_fread(image, mem + 0x8000, 0x2000);
517      image_fread(image, mem + 0x4800, 0x0800);
518      memory_install_read8_handler(program, 0x8000, 0x8fff, 0, 0, SMH_BANK(BANK_ROM1));
519      memory_install_read8_handler(program, 0x4000, 0x4fff, 0, 0x3000, SMH_BANK(BANK_ROM2));
517      image_fread(image, mem + 0xa000, 0x2000);         // load lower 8KB at 0xa000
518      image_fread(image, mem + 0x8000, 0x2000);         // load higher 8KB at 0x8000
519      image_fread(image, mem + 0x4000, 0x0800);         // load higher 2KB at 0x4000
520      memcpy(mem + 0x4800, mem + 0x4000, 0x0800);         // mirror higher 2KB at 0x4800
521      memcpy(mem + 0x5000, mem + 0x4000, 0x0800);         // mirror higher 2KB at 0x5000
522      memcpy(mem + 0x5800, mem + 0x4000, 0x0800);         // mirror higher 2KB at 0x5800
523      memcpy(mem + 0x6000, mem + 0x4000, 0x0800);         // mirror higher 2KB at 0x6000
524      memcpy(mem + 0x6800, mem + 0x4000, 0x0800);         // mirror higher 2KB at 0x6800
525      memcpy(mem + 0x7000, mem + 0x4000, 0x0800);         // mirror higher 2KB at 0x7000
526      memcpy(mem + 0x7800, mem + 0x4000, 0x0800);         // mirror higher 2KB at 0x7800
527      memory_install_read8_handler(program, 0x8000, 0xbfff, 0, 0, SMH_BANK(BANK_ROM1));
528      memory_install_read8_handler(program, 0x4000, 0x7fff, 0, 0, SMH_BANK(BANK_ROM2));
520529      break;
521530
522531   default:
r6153r6154
568577
569578   /* cassette */
570579   MDRV_CASSETTE_ADD(CASSETTE_TAG, crvision_cassette_config)
580
581   /* printer */
582   MDRV_CENTRONICS_ADD(CENTRONICS_TAG, standard_centronics)
583
584   /* internal ram */
585   MDRV_RAM_ADD("messram")
586   MDRV_RAM_DEFAULT_SIZE("1K")   // MAIN RAM
587   MDRV_RAM_EXTRA_OPTIONS("15K") // 16K expansion (lower 14K available only, upper 2K shared with BIOS ROM)
571588MACHINE_DRIVER_END
572589
573590static MACHINE_DRIVER_START( ntsc )
r6153r6154
594611   MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */
595612MACHINE_DRIVER_END
596613
597static MACHINE_DRIVER_START( wizzard )
598   MDRV_IMPORT_FROM(pal)
599
600   MDRV_CPU_MODIFY(M6502_TAG)
601   MDRV_CPU_PROGRAM_MAP(wizzard_map)
602
603   /* printer */
604   MDRV_CENTRONICS_ADD(CENTRONICS_TAG, standard_centronics)
605   
606   /* internal ram */
607   MDRV_RAM_ADD("messram")
608   MDRV_RAM_DEFAULT_SIZE("1K")
609   MDRV_RAM_EXTRA_OPTIONS("17K,33K") // 16K or 32K expansion
610MACHINE_DRIVER_END
611
612614/* ROMs */
613615
614616ROM_START( crvision )
615617    ROM_REGION( 0x10000, M6502_TAG, 0 )
616    ROM_LOAD( "crvision.u20", 0xc000, 0x0800, CRC(c3c590c6) SHA1(5ac620c529e4965efb5560fe824854a44c983757) )
618    ROM_LOAD( "crvision.u20", 0xf800, 0x0800, CRC(c3c590c6) SHA1(5ac620c529e4965efb5560fe824854a44c983757) )
617619ROM_END
618620
619ROM_START( wizzard )
620    ROM_REGION( 0x10000, M6502_TAG, 0 )
621    ROM_LOAD( "wizzard.u20",  0xf800, 0x0800, CRC(c3c590c6) SHA1(5ac620c529e4965efb5560fe824854a44c983757) )
622ROM_END
623
624621ROM_START( fnvision )
625622    ROM_REGION( 0x10000, M6502_TAG, 0 )
626    ROM_LOAD( "funboot.rom",  0xc000, 0x0800, CRC(05602697) SHA1(c280b20c8074ba9abb4be4338b538361dfae517f) )
623    ROM_LOAD( "funboot.rom",  0xf800, 0x0800, CRC(05602697) SHA1(c280b20c8074ba9abb4be4338b538361dfae517f) )
627624ROM_END
628625
626#define rom_wizzard rom_crvision
629627#define rom_crvisioj rom_crvision
630628#define rom_crvisio2 rom_crvision
631629#define rom_rameses rom_fnvision
r6153r6154
633631
634632/* System Drivers */
635633
636/*    YEAR  NAME      PARENT    COMPAT  MACHINE     INPUT       INIT    CONFIG      COMPANY                     FULLNAME */
637CONS( 1982, crvision, 0,      0,      pal,      crvision,   0,      0,         "Video Technology",         "CreatiVision", 0 )
638CONS( 1982, fnvision, crvision, 0,      pal,      crvision,   0,      0,         "Video Technology",         "FunVision", 0 )
639CONS( 1982, crvisioj, crvision,   0,      ntsc,      crvision,   0,      0,         "Cheryco",               "CreatiVision (Japan)", 0 )
640CONS( 1982, wizzard,  crvision, 0,      wizzard,   crvision,   0,      0,   "Dick Smith Electronics",   "Wizzard (Oceania)", 0 )
641CONS( 1982, rameses,  crvision, 0,      pal,      crvision,   0,      0,         "Hanimex",               "Rameses (Oceania)", 0 )
642CONS( 1983, vz2000,   crvision, 0,      pal,      crvision,   0,      0,         "Dick Smith Electronics",   "VZ 2000 (Oceania)", 0 )
643CONS( 1983, crvisio2, crvision, 0,      pal,      crvision,   0,      0,         "Sanyo Video",            "CreatiVision MK-II (Germany)", 0 )
634/*    YEAR  NAME        PARENT    COMPAT  MACHINE     INPUT       INIT  CONFIG  COMPANY                   FULLNAME */
635CONS(   1982,   crvision,   0,          0,    pal,        crvision,   0,    0,      "Video Technology",       "CreatiVision", 0 )
636CONS(   1982,   fnvision,   crvision,   0,    pal,        crvision,   0,    0,      "Video Technology",       "FunVision", 0 )
637CONS(   1982,   crvisioj,   crvision,   0,    ntsc,       crvision,   0,    0,      "Cheryco",                "CreatiVision (Japan)", 0 )
638CONS(   1982,   wizzard,    crvision,   0,    pal,        crvision,   0,    0,      "Dick Smith Electronics", "Wizzard (Oceania)", 0 )
639CONS(   1982,   rameses,    crvision,   0,    pal,        crvision,   0,    0,      "Hanimex",                "Rameses (Oceania)", 0 )
640CONS(   1983,   vz2000,     crvision,   0,    pal,        crvision,   0,    0,      "Dick Smith Electronics", "VZ 2000 (Oceania)", 0 )
641CONS(   1983,   crvisio2,   crvision,   0,    pal,        crvision,   0,    0,      "Video Technology",       "CreatiVision MK-II (Europe)", 0 )
644642/*
645COMP( 1983, lasr2001, 0,        0,      lasr2001,   lasr2001,   0,      lasr2001,   "Video Technology",         "Laser 2001", GAME_NOT_WORKING )
646COMP( 1983, vz2001,   lasr2001, 0,      lasr2001,   lasr2001,   0,      lasr2001,   "Dick Smith Electronics",   "VZ 2001 (Oceania)", GAME_NOT_WORKING )
647COMP( 1983, manager,  lasr2001, 0,      lasr2001,   lasr2001,   0,      lasr2001,   "Salora",                   "Manager (Finland)", GAME_NOT_WORKING )
643COMP(   1983,   lasr2001,   0,          0,    lasr2001,   lasr2001,   0,    0,      "Video Technology",       "Laser 2001", GAME_NOT_WORKING )
644COMP(   1983,   vz2001,     lasr2001,   0,    lasr2001,   lasr2001,   0,    0,      "Dick Smith Electronics", "VZ 2001 (Oceania)", GAME_NOT_WORKING )
645COMP(   1983,   manager,    lasr2001,   0,    lasr2001,   lasr2001,   0,    0,      "Salora",                 "Manager (Finland)", GAME_NOT_WORKING )
648646*/

Previous 15994 Revisions Next


© 1998-2018 The MESS Team