| 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 |
| r6153 | r6154 | |
|---|---|---|
| 1 | 1 | /* |
| 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. | |
| 4 | 4 | |
| 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). | |
| 7 | 9 | |
| 8 | ||
| 10 | | |
| 9 | 11 | |
| 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. | |
| 12 | 14 | |
| 13 | 15 | TODO: |
| 14 | 16 | |
| 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 | |
| 31 | 27 | */ |
| 32 | 28 | |
| 33 | 29 | #include "driver.h" |
| r6153 | r6154 | |
| 61 | 57 | /* Memory Map */ |
| 62 | 58 | |
| 63 | 59 | static 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 | |
| 65 | 61 | AM_RANGE(0x1000, 0x1003) AM_MIRROR(0x0ffc) AM_DEVREADWRITE(PIA6821_TAG, pia6821_r, pia6821_w) |
| 66 | 62 | AM_RANGE(0x2000, 0x2000) AM_MIRROR(0x0ffe) AM_READ(TMS9928A_vram_r) |
| 67 | 63 | AM_RANGE(0x2001, 0x2001) AM_MIRROR(0x0ffe) AM_READ(TMS9928A_register_r) |
| r6153 | r6154 | |
| 69 | 65 | AM_RANGE(0x3001, 0x3001) AM_MIRROR(0x0ffe) AM_WRITE(TMS9928A_register_w) |
| 70 | 66 | AM_RANGE(0x4000, 0x7fff) AM_ROMBANK(BANK_ROM2) |
| 71 | 67 | AM_RANGE(0x8000, 0xbfff) AM_ROMBANK(BANK_ROM1) |
| 72 | AM_RANGE(0xc000, 0xc7ff) AM_MIRROR(0x3800) AM_ROM | |
| 73 | ADDRESS_MAP_END | |
| 74 | ||
| 75 | static 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) | |
| 85 | 69 | AM_RANGE(0xe800, 0xe800) AM_DEVWRITE(CENTRONICS_TAG, centronics_data_w) |
| 86 | 70 | AM_RANGE(0xe801, 0xe801) AM_DEVREADWRITE(CENTRONICS_TAG, centronics_status_r, centronics_ctrl_w) |
| 87 | // | |
| 71 | // | |
| 88 | 72 | AM_RANGE(0xf800, 0xffff) AM_ROM |
| 89 | 73 | ADDRESS_MAP_END |
| 90 | 74 | |
| r6153 | r6154 | |
| 264 | 248 | |
| 265 | 249 | static INTERRUPT_GEN( crvision_int ) |
| 266 | 250 | { |
| 267 | ||
| 251 | | |
| 268 | 252 | } |
| 269 | 253 | |
| 270 | 254 | static void crvision_vdp_interrupt(running_machine *machine, int state) |
| r6153 | r6154 | |
| 475 | 459 | switch (size) |
| 476 | 460 | { |
| 477 | 461 | 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)); | |
| 480 | 465 | break; |
| 481 | 466 | |
| 482 | 467 | 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)); | |
| 486 | 475 | break; |
| 487 | 476 | |
| 488 | 477 | 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)); | |
| 491 | 481 | break; |
| 492 | 482 | |
| 493 | 483 | 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)); | |
| 498 | 496 | break; |
| 499 | 497 | |
| 500 | 498 | 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)); | |
| 505 | 507 | break; |
| 506 | 508 | |
| 507 | 509 | 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 | |
| 510 | 512 | memory_install_read8_handler(program, 0x8000, 0xbfff, 0, 0, SMH_BANK(BANK_ROM1)); |
| 511 | 513 | memory_install_read8_handler(program, 0x4000, 0x7fff, 0, 0, SMH_BANK(BANK_ROM2)); |
| 512 | 514 | break; |
| 513 | 515 | |
| 514 | 516 | 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)); | |
| 520 | 529 | break; |
| 521 | 530 | |
| 522 | 531 | default: |
| r6153 | r6154 | |
| 568 | 577 | |
| 569 | 578 | /* cassette */ |
| 570 | 579 | 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) | |
| 571 | 588 | MACHINE_DRIVER_END |
| 572 | 589 | |
| 573 | 590 | static MACHINE_DRIVER_START( ntsc ) |
| r6153 | r6154 | |
| 594 | 611 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 595 | 612 | MACHINE_DRIVER_END |
| 596 | 613 | |
| 597 | static 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 | |
| 610 | MACHINE_DRIVER_END | |
| 611 | ||
| 612 | 614 | /* ROMs */ |
| 613 | 615 | |
| 614 | 616 | ROM_START( crvision ) |
| 615 | 617 | ROM_REGION( 0x10000, M6502_TAG, 0 ) |
| 616 | ROM_LOAD( "crvision.u20", 0x | |
| 618 | ROM_LOAD( "crvision.u20", 0xf800, 0x0800, CRC(c3c590c6) SHA1(5ac620c529e4965efb5560fe824854a44c983757) ) | |
| 617 | 619 | ROM_END |
| 618 | 620 | |
| 619 | ROM_START( wizzard ) | |
| 620 | ROM_REGION( 0x10000, M6502_TAG, 0 ) | |
| 621 | ROM_LOAD( "wizzard.u20", 0xf800, 0x0800, CRC(c3c590c6) SHA1(5ac620c529e4965efb5560fe824854a44c983757) ) | |
| 622 | ROM_END | |
| 623 | ||
| 624 | 621 | ROM_START( fnvision ) |
| 625 | 622 | ROM_REGION( 0x10000, M6502_TAG, 0 ) |
| 626 | ROM_LOAD( "funboot.rom", 0x | |
| 623 | ROM_LOAD( "funboot.rom", 0xf800, 0x0800, CRC(05602697) SHA1(c280b20c8074ba9abb4be4338b538361dfae517f) ) | |
| 627 | 624 | ROM_END |
| 628 | 625 | |
| 626 | #define rom_wizzard rom_crvision | |
| 629 | 627 | #define rom_crvisioj rom_crvision |
| 630 | 628 | #define rom_crvisio2 rom_crvision |
| 631 | 629 | #define rom_rameses rom_fnvision |
| r6153 | r6154 | |
| 633 | 631 | |
| 634 | 632 | /* System Drivers */ |
| 635 | 633 | |
| 636 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT CONFIG COMPANY FULLNAME */ | |
| 637 | CONS( 1982, crvision, 0, 0, pal, crvision, 0, 0, "Video Technology", "CreatiVision", 0 ) | |
| 638 | CONS( 1982, fnvision, crvision, 0, pal, crvision, 0, 0, "Video Technology", "FunVision", 0 ) | |
| 639 | CONS( 1982, crvisioj, crvision, 0, ntsc, crvision, 0, 0, "Cheryco", "CreatiVision (Japan)", 0 ) | |
| 640 | CONS( 1982, wizzard, crvision, 0, wizzard, crvision, 0, 0, "Dick Smith Electronics", "Wizzard (Oceania)", 0 ) | |
| 641 | CONS( 1982, rameses, crvision, 0, pal, crvision, 0, 0, "Hanimex", "Rameses (Oceania)", 0 ) | |
| 642 | CONS( 1983, vz2000, crvision, 0, pal, crvision, 0, 0, "Dick Smith Electronics", "VZ 2000 (Oceania)", 0 ) | |
| 643 | CONS( 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 */ | |
| 635 | CONS( 1982, crvision, 0, 0, pal, crvision, 0, 0, "Video Technology", "CreatiVision", 0 ) | |
| 636 | CONS( 1982, fnvision, crvision, 0, pal, crvision, 0, 0, "Video Technology", "FunVision", 0 ) | |
| 637 | CONS( 1982, crvisioj, crvision, 0, ntsc, crvision, 0, 0, "Cheryco", "CreatiVision (Japan)", 0 ) | |
| 638 | CONS( 1982, wizzard, crvision, 0, pal, crvision, 0, 0, "Dick Smith Electronics", "Wizzard (Oceania)", 0 ) | |
| 639 | CONS( 1982, rameses, crvision, 0, pal, crvision, 0, 0, "Hanimex", "Rameses (Oceania)", 0 ) | |
| 640 | CONS( 1983, vz2000, crvision, 0, pal, crvision, 0, 0, "Dick Smith Electronics", "VZ 2000 (Oceania)", 0 ) | |
| 641 | CONS( 1983, crvisio2, crvision, 0, pal, crvision, 0, 0, "Video Technology", "CreatiVision MK-II (Europe)", 0 ) | |
| 644 | 642 | /* |
| 645 | COMP( 1983, lasr2001, 0, 0, lasr2001, lasr2001, 0, lasr2001, "Video Technology", "Laser 2001", GAME_NOT_WORKING ) | |
| 646 | COMP( 1983, vz2001, lasr2001, 0, lasr2001, lasr2001, 0, lasr2001, "Dick Smith Electronics", "VZ 2001 (Oceania)", GAME_NOT_WORKING ) | |
| 647 | COMP( 1983, manager, lasr2001, 0, lasr2001, lasr2001, 0, lasr2001, "Salora", "Manager (Finland)", GAME_NOT_WORKING ) | |
| 643 | COMP( 1983, lasr2001, 0, 0, lasr2001, lasr2001, 0, 0, "Video Technology", "Laser 2001", GAME_NOT_WORKING ) | |
| 644 | COMP( 1983, vz2001, lasr2001, 0, lasr2001, lasr2001, 0, 0, "Dick Smith Electronics", "VZ 2001 (Oceania)", GAME_NOT_WORKING ) | |
| 645 | COMP( 1983, manager, lasr2001, 0, lasr2001, lasr2001, 0, 0, "Salora", "Manager (Finland)", GAME_NOT_WORKING ) | |
| 648 | 646 | */ |
| Previous | 15994 Revisions | Next |