src/mame/machine/stvcd.c
| r788 | r789 | |
| 31 | 31 | |
| 32 | 32 | // super-verbose |
| 33 | 33 | #if 0 |
| 34 | | #define CDROM_LOG printf |
| 34 | #define CDROM_LOG(x) printf x; |
| 35 | 35 | #else |
| 36 | | #define CDROM_LOG(...) |
| 36 | #define CDROM_LOG(x) |
| 37 | 37 | #endif |
| 38 | 38 | |
| 39 | 39 | static cdrom_file *cdrom = (cdrom_file *)NULL; |
| r788 | r789 | |
| 265 | 265 | |
| 266 | 266 | if (cdrom) |
| 267 | 267 | { |
| 268 | | CDROM_LOG("Opened CD-ROM successfully, reading root directory\n"); |
| 268 | CDROM_LOG(("Opened CD-ROM successfully, reading root directory\n")) |
| 269 | 269 | read_new_dir(0xffffff); // read root directory |
| 270 | 270 | } |
| 271 | 271 | else |
| r788 | r789 | |
| 295 | 295 | blocks[i].size = sectlenin; |
| 296 | 296 | *blknum = i; |
| 297 | 297 | |
| 298 | | CDROM_LOG("CD: allocating block %d, size %x\n", i, sectlenin); |
| 298 | CDROM_LOG(("CD: allocating block %d, size %x\n", i, sectlenin)) |
| 299 | 299 | |
| 300 | 300 | return &blocks[i]; |
| 301 | 301 | } |
| r788 | r789 | |
| 309 | 309 | { |
| 310 | 310 | INT32 i; |
| 311 | 311 | |
| 312 | | CDROM_LOG("cd_free_block: %x\n", (UINT32)blktofree); |
| 312 | CDROM_LOG(("cd_free_block: %x\n", (UINT32)blktofree)) |
| 313 | 313 | |
| 314 | 314 | for (i = 0; i < 200; i++) |
| 315 | 315 | { |
| 316 | 316 | if (&blocks[i] == blktofree) |
| 317 | 317 | { |
| 318 | | CDROM_LOG("CD: freeing block %d\n", i); |
| 318 | CDROM_LOG(("CD: freeing block %d\n", i)) |
| 319 | 319 | } |
| 320 | 320 | } |
| 321 | 321 | |
| r788 | r789 | |
| 330 | 330 | if (*sectoffs == 0xffff) |
| 331 | 331 | { |
| 332 | 332 | // last sector |
| 333 | | CDROM_LOG("CD: Don't know how to handle offset ffff\n"); |
| 333 | CDROM_LOG(("CD: Don't know how to handle offset ffff\n")) |
| 334 | 334 | } |
| 335 | 335 | else if (*sectnum == 0xffff) |
| 336 | 336 | { |
| r788 | r789 | |
| 379 | 379 | |
| 380 | 380 | hirqreg = rv; |
| 381 | 381 | |
| 382 | | // CDROM_LOG("RW HIRQ: %04x (PC=%x)\n", rv, activecpu_get_pc()); |
| 382 | // CDROM_LOG(("RW HIRQ: %04x (PC=%x)\n", rv, activecpu_get_pc())) |
| 383 | 383 | |
| 384 | 384 | return rv; |
| 385 | 385 | break; |
| 386 | 386 | |
| 387 | 387 | case 0x000c: |
| 388 | 388 | case 0x000e: |
| 389 | | CDROM_LOG("RW HIRM: %04x\n", hirqmask); |
| 389 | CDROM_LOG(("RW HIRM: %04x\n", hirqmask)) |
| 390 | 390 | return hirqmask; |
| 391 | 391 | break; |
| 392 | 392 | |
| 393 | 393 | case 0x0018: |
| 394 | 394 | case 0x001a: |
| 395 | | // CDROM_LOG("RW CR1: %04x\n", cr1); |
| 395 | // CDROM_LOG(("RW CR1: %04x\n", cr1)) |
| 396 | 396 | return cr1; |
| 397 | 397 | break; |
| 398 | 398 | |
| 399 | 399 | case 0x001c: |
| 400 | 400 | case 0x001e: |
| 401 | | // CDROM_LOG("RW CR2: %04x\n", cr2); |
| 401 | // CDROM_LOG(("RW CR2: %04x\n", cr2)) |
| 402 | 402 | return cr2; |
| 403 | 403 | break; |
| 404 | 404 | |
| 405 | 405 | case 0x0020: |
| 406 | 406 | case 0x0022: |
| 407 | | // CDROM_LOG("RW CR3: %04x\n", cr3); |
| 407 | // CDROM_LOG(("RW CR3: %04x\n", cr3)) |
| 408 | 408 | return cr3; |
| 409 | 409 | break; |
| 410 | 410 | |
| 411 | 411 | case 0x0024: |
| 412 | 412 | case 0x0026: |
| 413 | | // CDROM_LOG("RW CR4: %04x\n", cr4); |
| 413 | // CDROM_LOG(("RW CR4: %04x\n", cr4)) |
| 414 | 414 | return cr4; |
| 415 | 415 | break; |
| 416 | 416 | |
| r788 | r789 | |
| 443 | 443 | break; |
| 444 | 444 | |
| 445 | 445 | default: |
| 446 | | CDROM_LOG("STVCD: Unhandled xfer type %d\n", (int)xfertype); |
| 446 | CDROM_LOG(("STVCD: Unhandled xfer type %d\n", (int)xfertype)) |
| 447 | 447 | rv = 0xffff; |
| 448 | 448 | break; |
| 449 | 449 | } |
| r788 | r789 | |
| 452 | 452 | break; |
| 453 | 453 | |
| 454 | 454 | default: |
| 455 | | CDROM_LOG( "CD: RW %08x (PC=%x)\n", addr, activecpu_get_pc()); |
| 455 | CDROM_LOG(("CD: RW %08x (PC=%x)\n", addr, activecpu_get_pc())) |
| 456 | 456 | return 0xffff; |
| 457 | 457 | break; |
| 458 | 458 | } |
| r788 | r789 | |
| 486 | 486 | // did we run out of sector? |
| 487 | 487 | if (xferoffs >= transpart->blocks[xfersect]->size) |
| 488 | 488 | { |
| 489 | | CDROM_LOG("CD: finished xfer of block %d of %d\n", xfersect+1, xfersectnum); |
| 489 | CDROM_LOG(("CD: finished xfer of block %d of %d\n", xfersect+1, xfersectnum)) |
| 490 | 490 | |
| 491 | 491 | xferoffs = 0; |
| 492 | 492 | xfersect++; |
| r788 | r789 | |
| 498 | 498 | { |
| 499 | 499 | INT32 i; |
| 500 | 500 | |
| 501 | | CDROM_LOG("Killing sectors in done\n"); |
| 501 | CDROM_LOG(("Killing sectors in done\n")) |
| 502 | 502 | |
| 503 | 503 | // deallocate the blocks |
| 504 | 504 | for (i = xfersectpos; i < xfersectpos+xfersectnum; i++) |
| r788 | r789 | |
| 521 | 521 | break; |
| 522 | 522 | |
| 523 | 523 | default: |
| 524 | | CDROM_LOG("CD: unhandled 32-bit transfer type\n"); |
| 524 | CDROM_LOG(("CD: unhandled 32-bit transfer type\n")) |
| 525 | 525 | break; |
| 526 | 526 | } |
| 527 | 527 | |
| r788 | r789 | |
| 529 | 529 | break; |
| 530 | 530 | |
| 531 | 531 | default: |
| 532 | | CDROM_LOG( "CD: RL %08x (PC=%x)\n", addr, activecpu_get_pc()); |
| 532 | CDROM_LOG(("CD: RL %08x (PC=%x)\n", addr, activecpu_get_pc())) |
| 533 | 533 | return 0xffff; |
| 534 | 534 | break; |
| 535 | 535 | } |
| r788 | r789 | |
| 543 | 543 | { |
| 544 | 544 | case 0x0008: |
| 545 | 545 | case 0x000a: |
| 546 | | // CDROM_LOG("WW HIRQ: %04x & %04x => %04x (PC %x)\n", hirqreg, data, hirqreg & data, activecpu_get_pc()); |
| 546 | // CDROM_LOG(("WW HIRQ: %04x & %04x => %04x (PC %x)\n", hirqreg, data, hirqreg & data, activecpu_get_pc())) |
| 547 | 547 | hirqreg &= data; |
| 548 | 548 | return; |
| 549 | 549 | case 0x000c: |
| 550 | 550 | case 0x000e: |
| 551 | | CDROM_LOG("WW HIRM: %04x => %04x\n", hirqmask, data); |
| 551 | CDROM_LOG(("WW HIRM: %04x => %04x\n", hirqmask, data)) |
| 552 | 552 | hirqmask = data; |
| 553 | 553 | return; |
| 554 | 554 | case 0x0018: |
| 555 | 555 | case 0x001a: |
| 556 | | // CDROM_LOG("WW CR1: %04x\n", data); |
| 556 | // CDROM_LOG(("WW CR1: %04x\n", data)) |
| 557 | 557 | cr1 = data; |
| 558 | 558 | cd_stat &= ~CD_STAT_PERI; |
| 559 | 559 | break; |
| 560 | 560 | case 0x001c: |
| 561 | 561 | case 0x001e: |
| 562 | | // CDROM_LOG("WW CR2: %04x\n", data); |
| 562 | // CDROM_LOG(("WW CR2: %04x\n", data)) |
| 563 | 563 | cr2 = data; |
| 564 | 564 | break; |
| 565 | 565 | case 0x0020: |
| 566 | 566 | case 0x0022: |
| 567 | | // CDROM_LOG("WW CR3: %04x\n", data); |
| 567 | // CDROM_LOG(("WW CR3: %04x\n", data)) |
| 568 | 568 | cr3 = data; |
| 569 | 569 | break; |
| 570 | 570 | case 0x0024: |
| 571 | 571 | case 0x0026: |
| 572 | | // CDROM_LOG("WW CR4: %04x\n", data); |
| 572 | // CDROM_LOG(("WW CR4: %04x\n", data)) |
| 573 | 573 | cr4 = data; |
| 574 | | // CDROM_LOG("CD: command exec %02x %02x %02x %02x %02x (stat %04x)\n", hirqreg, cr1, cr2, cr3, cr4, cd_stat); |
| 574 | // CDROM_LOG(("CD: command exec %02x %02x %02x %02x %02x (stat %04x)\n", hirqreg, cr1, cr2, cr3, cr4, cd_stat)) |
| 575 | 575 | |
| 576 | 576 | if (!cdrom) |
| 577 | 577 | { |
| r788 | r789 | |
| 586 | 586 | switch (cr1 & 0xff00) |
| 587 | 587 | { |
| 588 | 588 | case 0x0000: |
| 589 | | CDROM_LOG( "CD: Get Status (PC=%x)\n", activecpu_get_pc()); |
| 589 | CDROM_LOG(("CD: Get Status (PC=%x)\n", activecpu_get_pc())) |
| 590 | 590 | |
| 591 | 591 | // values taken from a US saturn with a disc in and the lid closed |
| 592 | 592 | hirqreg |= CMOK; |
| r788 | r789 | |
| 594 | 594 | cr2 = 0x4101; |
| 595 | 595 | cr3 = 0x100 | (cd_curfad>>16); |
| 596 | 596 | cr4 = cd_curfad; |
| 597 | | CDROM_LOG(" = %04x %04x %04x %04x %04x\n", hirqreg, cr1, cr2, cr3, cr4); |
| 597 | CDROM_LOG((" = %04x %04x %04x %04x %04x\n", hirqreg, cr1, cr2, cr3, cr4)) |
| 598 | 598 | break; |
| 599 | 599 | |
| 600 | 600 | case 0x0100: |
| 601 | | CDROM_LOG( "CD: Get Hardware Info (PC=%x)\n", activecpu_get_pc()); |
| 601 | CDROM_LOG(("CD: Get Hardware Info (PC=%x)\n", activecpu_get_pc())) |
| 602 | 602 | hirqreg |= CMOK; |
| 603 | 603 | cr1 = cd_stat; |
| 604 | 604 | cr2 = 0x0201; |
| r788 | r789 | |
| 607 | 607 | break; |
| 608 | 608 | |
| 609 | 609 | case 0x200: // Get TOC |
| 610 | | CDROM_LOG( "CD: Get TOC (PC=%x)\n", activecpu_get_pc()); |
| 610 | CDROM_LOG(("CD: Get TOC (PC=%x)\n", activecpu_get_pc())) |
| 611 | 611 | cd_readTOC(); |
| 612 | 612 | cd_stat = CD_STAT_TRANS|CD_STAT_PAUSE; |
| 613 | 613 | cr2 = 102*2; // TOC length in words (102 entries @ 2 words/4bytes each) |
| r788 | r789 | |
| 621 | 621 | // bios is interested in returns in cr3 and cr4 |
| 622 | 622 | // cr3 should be data track # |
| 623 | 623 | // cr4 must be > 1 and < 100 or bios gets angry. |
| 624 | | CDROM_LOG( "CD: Get Session Info (PC=%x)\n", activecpu_get_pc()); |
| 624 | CDROM_LOG(("CD: Get Session Info (PC=%x)\n", activecpu_get_pc())) |
| 625 | 625 | cd_readTOC(); |
| 626 | 626 | switch (cr1 & 0xff) |
| 627 | 627 | { |
| r788 | r789 | |
| 652 | 652 | // CR1 & 4 = don't confirm mode 2 subheader |
| 653 | 653 | // CR1 & 8 = retry reading mode 2 sectors |
| 654 | 654 | // CR1 & 10 = force single-speed |
| 655 | | CDROM_LOG( "CD: Initialize CD system (PC=%x)\n", activecpu_get_pc()); |
| 655 | CDROM_LOG(("CD: Initialize CD system (PC=%x)\n", activecpu_get_pc())) |
| 656 | 656 | hirqreg |= (CMOK|DRDY|ESEL); |
| 657 | 657 | cd_stat = CD_STAT_PAUSE; |
| 658 | 658 | cd_curfad = 150; |
| r788 | r789 | |
| 666 | 666 | case 0x0600: // end data transfer |
| 667 | 667 | // returns # of bytes transfered (24 bits) in |
| 668 | 668 | // low byte of cr1 (MSB) and cr2 (middle byte, LSB) |
| 669 | | CDROM_LOG("CD: End data transfer (PC=%x) (%d bytes xfer'd)\n", activecpu_get_pc(), xferdnum); |
| 669 | CDROM_LOG(("CD: End data transfer (PC=%x) (%d bytes xfer'd)\n", activecpu_get_pc(), xferdnum)) |
| 670 | 670 | |
| 671 | 671 | // clear the "transfer" flag |
| 672 | 672 | cd_stat &= ~CD_STAT_TRANS; |
| r788 | r789 | |
| 739 | 739 | xferdnum = 0; |
| 740 | 740 | hirqreg |= CMOK; |
| 741 | 741 | |
| 742 | | CDROM_LOG(" = %04x %04x %04x %04x %04x\n", hirqreg, cr1, cr2, cr3, cr4); |
| 742 | CDROM_LOG((" = %04x %04x %04x %04x %04x\n", hirqreg, cr1, cr2, cr3, cr4)) |
| 743 | 743 | break; |
| 744 | 744 | |
| 745 | 745 | case 0x1000: // Play Disk. FAD is in lowest 7 bits of cr1 and all of cr2. |
| 746 | | CDROM_LOG( "CD: Play Disk (PC=%x)\n", activecpu_get_pc()); |
| 746 | CDROM_LOG(("CD: Play Disk (PC=%x)\n", activecpu_get_pc())) |
| 747 | 747 | cd_stat = CD_STAT_PLAY; //|0x80; // set "cd-rom" bit? |
| 748 | 748 | cd_curfad = ((cr1&0xff)<<16) | cr2; |
| 749 | 749 | fadstoplay = ((cr3&0xff)<<16) | cr4; |
| r788 | r789 | |
| 763 | 763 | mame_printf_error("CD: Play Disk track mode, not yet implemented\n"); |
| 764 | 764 | } |
| 765 | 765 | |
| 766 | | CDROM_LOG("CD: Play Disk: start %x length %x\n", cd_curfad, fadstoplay); |
| 766 | CDROM_LOG(("CD: Play Disk: start %x length %x\n", cd_curfad, fadstoplay)) |
| 767 | 767 | |
| 768 | 768 | cr2 = 0x4101; // ctrl/adr in hi byte, track # in low byte |
| 769 | 769 | cr3 = (0x100) | ((cd_curfad>>16)&0xff); // index of subcode in hi byte, frame address |
| r788 | r789 | |
| 781 | 781 | break; |
| 782 | 782 | |
| 783 | 783 | case 0x1100: // disk seek |
| 784 | | CDROM_LOG( "CD: Disk seek (PC=%x)\n", activecpu_get_pc()); |
| 784 | CDROM_LOG(("CD: Disk seek (PC=%x)\n", activecpu_get_pc())) |
| 785 | 785 | if (cr1 & 0x80) |
| 786 | 786 | { |
| 787 | 787 | temp = (cr1&0x7f)<<16; // get FAD to seek to |
| r788 | r789 | |
| 793 | 793 | } |
| 794 | 794 | else |
| 795 | 795 | { |
| 796 | | CDROM_LOG("CD: not clear how to handle FAD seek\n"); |
| 796 | CDROM_LOG(("CD: not clear how to handle FAD seek\n")) |
| 797 | 797 | cd_curfad = temp; |
| 798 | 798 | } |
| 799 | 799 | } |
| r788 | r789 | |
| 827 | 827 | // get operation |
| 828 | 828 | parm = cr3>>8; |
| 829 | 829 | |
| 830 | | CDROM_LOG( "CD: Set CD Device Connection (PC=%x) filter # %x\n", activecpu_get_pc(), parm); |
| 830 | CDROM_LOG(("CD: Set CD Device Connection (PC=%x) filter # %x\n", activecpu_get_pc(), parm)) |
| 831 | 831 | |
| 832 | 832 | cddevicenum = parm; |
| 833 | 833 | |
| r788 | r789 | |
| 853 | 853 | { |
| 854 | 854 | UINT8 fnum = (cr3>>8)&0xff; |
| 855 | 855 | |
| 856 | | CDROM_LOG( "CD: Set Filter Range (PC=%x)\n", activecpu_get_pc()); |
| 856 | CDROM_LOG(("CD: Set Filter Range (PC=%x)\n", activecpu_get_pc())) |
| 857 | 857 | |
| 858 | 858 | filters[fnum].fad = ((cr1 & 0xff)<<16) | cr2; |
| 859 | 859 | filters[fnum].range = ((cr3 & 0xff)<<16) | cr4; |
| r788 | r789 | |
| 869 | 869 | { |
| 870 | 870 | UINT8 fnum = (cr3>>8)&0xff; |
| 871 | 871 | |
| 872 | | CDROM_LOG( "CD: Set Filter Subheader conditions (PC=%x) %x => chan %x masks %x fid %x vals %x\n", activecpu_get_pc(), fnum, cr1&0xff, cr2, cr3&0xff, cr4); |
| 872 | CDROM_LOG(("CD: Set Filter Subheader conditions (PC=%x) %x => chan %x masks %x fid %x vals %x\n", activecpu_get_pc(), fnum, cr1&0xff, cr2, cr3&0xff, cr4)) |
| 873 | 873 | |
| 874 | 874 | filters[fnum].chan = cr1 & 0xff; |
| 875 | 875 | filters[fnum].smmask = (cr2>>8)&0xff; |
| r788 | r789 | |
| 900 | 900 | filters[fnum].mode = mode; |
| 901 | 901 | } |
| 902 | 902 | |
| 903 | | CDROM_LOG( "CD: Set Filter Mode (PC=%x) filt %x mode %x\n", activecpu_get_pc(), fnum, mode); |
| 903 | CDROM_LOG(("CD: Set Filter Mode (PC=%x) filt %x mode %x\n", activecpu_get_pc(), fnum, mode)) |
| 904 | 904 | hirqreg |= (CMOK|ESEL|DRDY); |
| 905 | 905 | cr2 = 0x4101; // ctrl/adr in hi byte, track # in low byte |
| 906 | 906 | cr3 = 0x0100|((cd_curfad>>16)&0xff); |
| r788 | r789 | |
| 912 | 912 | { |
| 913 | 913 | UINT8 fnum = (cr3>>8)&0xff; |
| 914 | 914 | |
| 915 | | CDROM_LOG( "CD: Set Filter Connection (PC=%x) %x => mode %x parm %04x\n", activecpu_get_pc(), fnum, cr1 & 0xf, cr2); |
| 915 | CDROM_LOG(("CD: Set Filter Connection (PC=%x) %x => mode %x parm %04x\n", activecpu_get_pc(), fnum, cr1 & 0xf, cr2)) |
| 916 | 916 | |
| 917 | 917 | // set true condition? |
| 918 | 918 | if (cr1 & 1) |
| r788 | r789 | |
| 932 | 932 | break; |
| 933 | 933 | |
| 934 | 934 | case 0x4800: // Reset Selector |
| 935 | | CDROM_LOG( "CD: Reset Selector (PC=%x)\n", activecpu_get_pc()); |
| 935 | CDROM_LOG(("CD: Reset Selector (PC=%x)\n", activecpu_get_pc())) |
| 936 | 936 | hirqreg |= (CMOK|ESEL|DRDY); |
| 937 | 937 | cr2 = 0x4101; // ctrl/adr in hi byte, track # in low byte |
| 938 | 938 | cr3 = 0x0100|((cd_curfad>>16)&0xff); |
| r788 | r789 | |
| 946 | 946 | |
| 947 | 947 | cr3 = 0x1800; |
| 948 | 948 | cr4 = 200; |
| 949 | | CDROM_LOG( "CD: Get Buffer Size = %d (PC=%x)\n", cr2, activecpu_get_pc()); |
| 949 | CDROM_LOG(("CD: Get Buffer Size = %d (PC=%x)\n", cr2, activecpu_get_pc())) |
| 950 | 950 | hirqreg |= (CMOK|ESEL|DRDY); // DRDY is probably wrong |
| 951 | 951 | break; |
| 952 | 952 | |
| r788 | r789 | |
| 964 | 964 | cr4 = partitions[bufnum].numblks; |
| 965 | 965 | } |
| 966 | 966 | |
| 967 | | CDROM_LOG( "CD: Get Sector Number (PC=%x) (bufno %d) = %d blocks\n", activecpu_get_pc(), bufnum, cr4); |
| 967 | CDROM_LOG(("CD: Get Sector Number (PC=%x) (bufno %d) = %d blocks\n", activecpu_get_pc(), bufnum, cr4)) |
| 968 | 968 | |
| 969 | 969 | cr2 = 0; |
| 970 | 970 | cr3 = 0; |
| r788 | r789 | |
| 978 | 978 | UINT32 sectoffs = cr2; |
| 979 | 979 | UINT32 numsect = cr4; |
| 980 | 980 | |
| 981 | | CDROM_LOG( "CD: Calculate actual size: buf %x offs %x numsect %x (PC=%x)\n", bufnum, sectoffs, numsect, activecpu_get_pc()); |
| 981 | CDROM_LOG(("CD: Calculate actual size: buf %x offs %x numsect %x (PC=%x)\n", bufnum, sectoffs, numsect, activecpu_get_pc())) |
| 982 | 982 | |
| 983 | 983 | calcsize = 0; |
| 984 | 984 | if (partitions[bufnum].size != -1) |
| r788 | r789 | |
| 1003 | 1003 | break; |
| 1004 | 1004 | |
| 1005 | 1005 | case 0x5300: // get actual block size |
| 1006 | | CDROM_LOG( "CD: Get actual block size (PC=%x)\n", activecpu_get_pc()); |
| 1006 | CDROM_LOG(("CD: Get actual block size (PC=%x)\n", activecpu_get_pc())) |
| 1007 | 1007 | hirqreg |= (CMOK|ESEL); |
| 1008 | 1008 | cr1 = cd_stat | ((calcsize>>16)&0xff); |
| 1009 | 1009 | cr2 = (calcsize & 0xffff); |
| r788 | r789 | |
| 1012 | 1012 | break; |
| 1013 | 1013 | |
| 1014 | 1014 | case 0x6000: // set sector length |
| 1015 | | CDROM_LOG( "CD: Set sector length (PC=%x)\n", activecpu_get_pc()); |
| 1015 | CDROM_LOG(("CD: Set sector length (PC=%x)\n", activecpu_get_pc())) |
| 1016 | 1016 | hirqreg |= (CMOK|ESEL|EFLS|SCDQ|DRDY); |
| 1017 | 1017 | |
| 1018 | 1018 | switch (cr1 & 0xff) |
| r788 | r789 | |
| 1054 | 1054 | UINT32 sectofs = cr2; |
| 1055 | 1055 | UINT32 bufnum = cr3>>8; |
| 1056 | 1056 | |
| 1057 | | CDROM_LOG( "CD: Get sector data (PC=%x) (SN %d SO %d BN %d)\n", activecpu_get_pc(), sectnum, sectofs, bufnum); |
| 1057 | CDROM_LOG(("CD: Get sector data (PC=%x) (SN %d SO %d BN %d)\n", activecpu_get_pc(), sectnum, sectofs, bufnum)) |
| 1058 | 1058 | |
| 1059 | 1059 | if (bufnum >= MAX_FILTERS) |
| 1060 | 1060 | { |
| 1061 | | CDROM_LOG("CD: invalid buffer number\n"); |
| 1061 | CDROM_LOG(("CD: invalid buffer number\n")); |
| 1062 | 1062 | cd_stat = 0xff; // ERROR |
| 1063 | 1063 | hirqreg |= (CMOK|EHST); |
| 1064 | 1064 | return; |
| r788 | r789 | |
| 1066 | 1066 | |
| 1067 | 1067 | if (partitions[bufnum].numblks == 0) |
| 1068 | 1068 | { |
| 1069 | | CDROM_LOG("CD: buffer is empty\n"); |
| 1069 | CDROM_LOG(("CD: buffer is empty\n")) |
| 1070 | 1070 | cd_stat = 0xff; // ERROR |
| 1071 | 1071 | hirqreg |= (CMOK|EHST); |
| 1072 | 1072 | return; |
| r788 | r789 | |
| 1094 | 1094 | UINT32 bufnum = cr3>>8; |
| 1095 | 1095 | INT32 i; |
| 1096 | 1096 | |
| 1097 | | CDROM_LOG( "CD: Delete sector data (PC=%x) (SN %d SO %d BN %d)\n", activecpu_get_pc(), sectnum, sectofs, bufnum); |
| 1097 | CDROM_LOG(("CD: Delete sector data (PC=%x) (SN %d SO %d BN %d)\n", activecpu_get_pc(), sectnum, sectofs, bufnum)) |
| 1098 | 1098 | |
| 1099 | 1099 | if (bufnum >= MAX_FILTERS) |
| 1100 | 1100 | { |
| 1101 | | CDROM_LOG("CD: invalid buffer number\n"); |
| 1101 | CDROM_LOG(("CD: invalid buffer number\n")) |
| 1102 | 1102 | cd_stat = 0xff; // ERROR |
| 1103 | 1103 | hirqreg |= (CMOK|EHST); |
| 1104 | 1104 | return; |
| r788 | r789 | |
| 1106 | 1106 | |
| 1107 | 1107 | if (partitions[bufnum].numblks == 0) |
| 1108 | 1108 | { |
| 1109 | | CDROM_LOG("CD: buffer is empty\n"); |
| 1109 | CDROM_LOG(("CD: buffer is empty\n")) |
| 1110 | 1110 | cd_stat = 0xff; // ERROR |
| 1111 | 1111 | hirqreg |= (CMOK|EHST); |
| 1112 | 1112 | return; |
| r788 | r789 | |
| 1137 | 1137 | UINT32 sectofs = cr2; |
| 1138 | 1138 | UINT32 bufnum = cr3>>8; |
| 1139 | 1139 | |
| 1140 | | CDROM_LOG( "CD: Get and delete sector data (PC=%x) (SN %d SO %d BN %d)\n", activecpu_get_pc(), sectnum, sectofs, bufnum); |
| 1140 | CDROM_LOG(("CD: Get and delete sector data (PC=%x) (SN %d SO %d BN %d)\n", activecpu_get_pc(), sectnum, sectofs, bufnum)) |
| 1141 | 1141 | |
| 1142 | 1142 | if (bufnum >= MAX_FILTERS) |
| 1143 | 1143 | { |
| 1144 | | CDROM_LOG("CD: invalid buffer number\n"); |
| 1144 | CDROM_LOG(("CD: invalid buffer number\n")) |
| 1145 | 1145 | cd_stat = 0xff; // ERROR |
| 1146 | 1146 | hirqreg |= (CMOK|EHST); |
| 1147 | 1147 | return; |
| r788 | r789 | |
| 1149 | 1149 | |
| 1150 | 1150 | if (partitions[bufnum].numblks == 0) |
| 1151 | 1151 | { |
| 1152 | | CDROM_LOG("CD: buffer is empty\n"); |
| 1152 | CDROM_LOG(("CD: buffer is empty\n")) |
| 1153 | 1153 | cd_stat = 0xff; // ERROR |
| 1154 | 1154 | hirqreg |= (CMOK|EHST); |
| 1155 | 1155 | return; |
| r788 | r789 | |
| 1171 | 1171 | break; |
| 1172 | 1172 | |
| 1173 | 1173 | case 0x6700: // get copy error |
| 1174 | | CDROM_LOG( "CD: Get copy error (PC=%x)\n", activecpu_get_pc()); |
| 1174 | CDROM_LOG(("CD: Get copy error (PC=%x)\n", activecpu_get_pc())) |
| 1175 | 1175 | hirqreg |= (CMOK|ESEL|EFLS|SCDQ|DRDY); |
| 1176 | 1176 | break; |
| 1177 | 1177 | |
| 1178 | 1178 | case 0x7000: // change directory |
| 1179 | | CDROM_LOG( "CD: Change Directory (PC=%x)\n", activecpu_get_pc()); |
| 1179 | CDROM_LOG(("CD: Change Directory (PC=%x)\n", activecpu_get_pc())) |
| 1180 | 1180 | hirqreg |= (CMOK|EFLS); |
| 1181 | 1181 | |
| 1182 | 1182 | temp = (cr3&0xff)<<16; |
| r788 | r789 | |
| 1185 | 1185 | break; |
| 1186 | 1186 | |
| 1187 | 1187 | case 0x7100: // Read directory entry |
| 1188 | | CDROM_LOG( "CD: Read Directory Entry (PC=%x)\n", activecpu_get_pc()); |
| 1188 | CDROM_LOG(("CD: Read Directory Entry (PC=%x)\n", activecpu_get_pc())) |
| 1189 | 1189 | hirqreg |= (CMOK|DRDY); |
| 1190 | 1190 | |
| 1191 | 1191 | temp = (cr3&0xff)<<16; |
| r788 | r789 | |
| 1196 | 1196 | break; |
| 1197 | 1197 | |
| 1198 | 1198 | case 0x7200: // Get file system scope |
| 1199 | | CDROM_LOG( "CD: Get file system scope(PC=%x)\n", activecpu_get_pc()); |
| 1199 | CDROM_LOG(("CD: Get file system scope(PC=%x)\n", activecpu_get_pc())) |
| 1200 | 1200 | hirqreg |= (CMOK|DRDY); |
| 1201 | 1201 | cr2 = numfiles; // # of files in directory |
| 1202 | 1202 | cr3 = 0x0100; // report directory held |
| r788 | r789 | |
| 1204 | 1204 | break; |
| 1205 | 1205 | |
| 1206 | 1206 | case 0x7300: // Get File Info |
| 1207 | | CDROM_LOG( "CD: Get File Info (PC=%x)\n", activecpu_get_pc()); |
| 1207 | CDROM_LOG(("CD: Get File Info (PC=%x)\n", activecpu_get_pc())) |
| 1208 | 1208 | cd_stat |= CD_STAT_TRANS; |
| 1209 | 1209 | cd_stat &= 0xff00; // clear top byte of return value |
| 1210 | 1210 | hirqreg |= (CMOK|DRDY); |
| r788 | r789 | |
| 1254 | 1254 | xfertype = XFERTYPE_FILEINFO_1; |
| 1255 | 1255 | xfercount = 0; |
| 1256 | 1256 | } |
| 1257 | | CDROM_LOG(" = %04x %04x %04x %04x %04x\n", hirqreg, cr1, cr2, cr3, cr4); |
| 1257 | CDROM_LOG((" = %04x %04x %04x %04x %04x\n", hirqreg, cr1, cr2, cr3, cr4)) |
| 1258 | 1258 | break; |
| 1259 | 1259 | |
| 1260 | 1260 | case 0x7400: // Read File |
| 1261 | | CDROM_LOG( "CD: Read File (PC=%x)\n", activecpu_get_pc()); |
| 1261 | CDROM_LOG(("CD: Read File (PC=%x)\n", activecpu_get_pc())) |
| 1262 | 1262 | temp = (cr3&0xff)<<16; |
| 1263 | 1263 | temp |= cr4; |
| 1264 | 1264 | |
| r788 | r789 | |
| 1289 | 1289 | break; |
| 1290 | 1290 | |
| 1291 | 1291 | case 0x7500: |
| 1292 | | CDROM_LOG( "CD: Abort File (PC=%x)\n", activecpu_get_pc()); |
| 1292 | CDROM_LOG(("CD: Abort File (PC=%x)\n", activecpu_get_pc())) |
| 1293 | 1293 | // bios expects "2bc" mask to work against this |
| 1294 | 1294 | hirqreg |= (CMOK|EFLS|EHST|ESEL|DCHG|PEND|BFUL|CSCT|DRDY); |
| 1295 | 1295 | cd_stat = CD_STAT_PERI|CD_STAT_PAUSE; // force to pause |
| 1296 | 1296 | break; |
| 1297 | 1297 | |
| 1298 | 1298 | case 0xe000: // appears to be copy protection check. needs only to return OK. |
| 1299 | | CDROM_LOG( "CD: Verify copy protection (PC=%x)\n", activecpu_get_pc()); |
| 1299 | CDROM_LOG(("CD: Verify copy protection (PC=%x)\n", activecpu_get_pc())) |
| 1300 | 1300 | cd_stat = CD_STAT_PAUSE; |
| 1301 | 1301 | cr1 = cd_stat; // necessary to pass |
| 1302 | 1302 | cr2 = 0x4; |
| r788 | r789 | |
| 1306 | 1306 | break; |
| 1307 | 1307 | |
| 1308 | 1308 | case 0xe100: // get disc region |
| 1309 | | CDROM_LOG( "CD: Get disc region (PC=%x)\n", activecpu_get_pc()); |
| 1309 | CDROM_LOG(("CD: Get disc region (PC=%x)\n", activecpu_get_pc())) |
| 1310 | 1310 | cd_stat = CD_STAT_PAUSE; |
| 1311 | 1311 | cr1 = cd_stat; // necessary to pass |
| 1312 | 1312 | cr2 = 0x4; // (must return this value to pass bios checks) |
| r788 | r789 | |
| 1314 | 1314 | break; |
| 1315 | 1315 | |
| 1316 | 1316 | default: |
| 1317 | | CDROM_LOG( "CD: Unknown command %04x (PC=%x)\n", cr1, activecpu_get_pc()); |
| 1317 | CDROM_LOG(("CD: Unknown command %04x (PC=%x)\n", cr1, activecpu_get_pc())) |
| 1318 | 1318 | hirqreg |= (CMOK); |
| 1319 | 1319 | break; |
| 1320 | 1320 | } |
| 1321 | | // CDROM_LOG("ret: %04x %04x %04x %04x %04x\n", hirqreg, cr1, cr2, cr3, cr4); |
| 1321 | // CDROM_LOG(("ret: %04x %04x %04x %04x %04x\n", hirqreg, cr1, cr2, cr3, cr4)) |
| 1322 | 1322 | break; |
| 1323 | 1323 | default: |
| 1324 | | CDROM_LOG("CD: WW %08x %04x (PC=%x)\n", addr, data, activecpu_get_pc()); |
| 1324 | CDROM_LOG(("CD: WW %08x %04x (PC=%x)\n", addr, data, activecpu_get_pc())) |
| 1325 | 1325 | break; |
| 1326 | 1326 | } |
| 1327 | 1327 | } |
| r788 | r789 | |
| 1372 | 1372 | break; |
| 1373 | 1373 | |
| 1374 | 1374 | default: |
| 1375 | | CDROM_LOG("Unknown CD read @ %x\n", offset); |
| 1375 | CDROM_LOG(("Unknown CD read @ %x\n", offset)) |
| 1376 | 1376 | break; |
| 1377 | 1377 | } |
| 1378 | 1378 | |
| r788 | r789 | |
| 1401 | 1401 | break; |
| 1402 | 1402 | |
| 1403 | 1403 | default: |
| 1404 | | CDROM_LOG("Unknown CD write %x @ %x\n", data, offset); |
| 1404 | CDROM_LOG(("Unknown CD write %x @ %x\n", data, offset)) |
| 1405 | 1405 | break; |
| 1406 | 1406 | } |
| 1407 | 1407 | } |
| r788 | r789 | |
| 1641 | 1641 | int match = 1, keepgoing = 2; |
| 1642 | 1642 | partitionT *filterprt = (partitionT *)NULL; |
| 1643 | 1643 | |
| 1644 | | CDROM_LOG("cd_filterdata, trktype %d\n", trktype); |
| 1644 | CDROM_LOG(("cd_filterdata, trktype %d\n", trktype)) |
| 1645 | 1645 | |
| 1646 | 1646 | // loop on the filters |
| 1647 | 1647 | do |
| r788 | r789 | |
| 1828 | 1828 | |
| 1829 | 1829 | if (!fadstoplay) |
| 1830 | 1830 | { |
| 1831 | | CDROM_LOG("cd_playdata: playback ended\n"); |
| 1831 | CDROM_LOG(("cd_playdata: playback ended\n")) |
| 1832 | 1832 | cd_stat = CD_STAT_PAUSE; |
| 1833 | 1833 | |
| 1834 | 1834 | hirqreg |= PEND; |
| 1835 | 1835 | |
| 1836 | 1836 | if (playtype == 1) |
| 1837 | 1837 | { |
| 1838 | | CDROM_LOG("cd_playdata: setting EFLS\n"); |
| 1838 | CDROM_LOG(("cd_playdata: setting EFLS\n")) |
| 1839 | 1839 | hirqreg |= EFLS; |
| 1840 | 1840 | } |
| 1841 | 1841 | } |
src/mame/video/nemesis.c
| r788 | r789 | |
| 26 | 26 | static UINT8 *blank_characterdata; /* pseudo character */ |
| 27 | 27 | |
| 28 | 28 | /* gfxram dirty flags */ |
| 29 | | static UINT8 *char_dirty; /* 2048 chars */ |
| 30 | 29 | |
| 31 | 30 | /* we should be able to draw sprite gfx directly without caching to GfxElements */ |
| 32 | | static UINT8 *sprite_dirty; /* 512 sprites */ |
| 33 | | static UINT8 *sprite3216_dirty; /* 256 sprites */ |
| 34 | | static UINT8 *sprite816_dirty; /* 1024 sprites */ |
| 35 | | static UINT8 *sprite1632_dirty; /* 256 sprites */ |
| 36 | | static UINT8 *sprite3232_dirty; /* 128 sprites */ |
| 37 | | static UINT8 *sprite168_dirty; /* 1024 sprites */ |
| 38 | | static UINT8 *sprite6464_dirty; /* 32 sprites */ |
| 39 | 31 | |
| 32 | static UINT8 *sprite_dirty[8]; |
| 33 | |
| 34 | static const struct |
| 35 | { |
| 36 | UINT8 width; |
| 37 | UINT8 height; |
| 38 | UINT8 char_type; |
| 39 | } |
| 40 | sprite_data[8] = |
| 41 | { |
| 42 | { 32, 32, 4 }, { 16, 32, 5 }, { 32, 16, 2 }, { 64, 64, 3 }, |
| 43 | { 8, 8, 0 }, { 16, 8, 6 }, { 8, 16, 3 }, { 16, 16, 1 } |
| 44 | }; |
| 45 | |
| 40 | 46 | static TILE_GET_INFO( get_bg_tile_info ) |
| 41 | 47 | { |
| 42 | 48 | int code,color,flags; |
| r788 | r789 | |
| 189 | 195 | |
| 190 | 196 | if (oldword != data) |
| 191 | 197 | { |
| 192 | | char_dirty[offset / 16] = 1; |
| 193 | | sprite_dirty[offset / 64] = 1; |
| 194 | | sprite3216_dirty[offset / 128] = 1; |
| 195 | | sprite1632_dirty[offset / 128] = 1; |
| 196 | | sprite3232_dirty[offset / 256] = 1; |
| 197 | | sprite168_dirty[offset / 32] = 1; |
| 198 | | sprite816_dirty[offset / 32] = 1; |
| 199 | | sprite6464_dirty[offset / 1024] = 1; |
| 198 | int i; |
| 199 | for (i=0; i<8; i++) |
| 200 | { |
| 201 | int w = sprite_data[i].width; |
| 202 | int h = sprite_data[i].height; |
| 203 | sprite_dirty[i][offset * 4 / (w * h)] = 1; |
| 204 | } |
| 200 | 205 | } |
| 201 | 206 | } |
| 202 | 207 | |
| r788 | r789 | |
| 204 | 209 | /* claim a palette dirty array */ |
| 205 | 210 | VIDEO_START( nemesis ) |
| 206 | 211 | { |
| 212 | int i; |
| 207 | 213 | spriteram_words = spriteram_size / 2; |
| 208 | 214 | |
| 209 | 215 | background = tilemap_create( |
| r788 | r789 | |
| 217 | 223 | tilemap_set_scroll_rows( background, 256 ); |
| 218 | 224 | tilemap_set_scroll_rows( foreground, 256 ); |
| 219 | 225 | |
| 220 | | char_dirty = auto_malloc(2048); |
| 221 | | memset(char_dirty,1,2048); |
| 226 | for (i=0; i<8; i++) |
| 227 | { |
| 228 | int w = sprite_data[i].width; |
| 229 | int h = sprite_data[i].height; |
| 230 | int size = 0x20000 / (w * h); |
| 231 | sprite_dirty[i] = auto_malloc(size); |
| 232 | memset(sprite_dirty[i], 1, size); |
| 233 | } |
| 222 | 234 | |
| 223 | | sprite_dirty = auto_malloc(512); |
| 224 | | memset(sprite_dirty,1,512); |
| 225 | | |
| 226 | | sprite3216_dirty = auto_malloc(256); |
| 227 | | memset(sprite3216_dirty,1,256); |
| 228 | | |
| 229 | | sprite1632_dirty = auto_malloc(256); |
| 230 | | memset(sprite1632_dirty,1,256); |
| 231 | | |
| 232 | | sprite3232_dirty = auto_malloc(128); |
| 233 | | memset(sprite3232_dirty,1,128); |
| 234 | | |
| 235 | | sprite168_dirty = auto_malloc(1024); |
| 236 | | memset(sprite168_dirty,1,1024); |
| 237 | | |
| 238 | | sprite816_dirty = auto_malloc(1024); |
| 239 | | memset(sprite816_dirty,1,1024); |
| 240 | | |
| 241 | | sprite6464_dirty = auto_malloc(32); |
| 242 | | memset(sprite6464_dirty,1,32); |
| 243 | | |
| 244 | 235 | memset(nemesis_characterram,0,nemesis_characterram_size); |
| 245 | 236 | |
| 246 | 237 | |
| r788 | r789 | |
| 281 | 272 | int priority; |
| 282 | 273 | int size; |
| 283 | 274 | int w,h; |
| 275 | int idx; |
| 284 | 276 | |
| 285 | 277 | for (priority=256-1; priority>=0; priority--) |
| 286 | 278 | { |
| r788 | r789 | |
| 307 | 299 | flipx = spriteram16[adress+1] & 0x01; |
| 308 | 300 | flipy = spriteram16[adress+4] & 0x20; |
| 309 | 301 | |
| 310 | | switch(size&0x38) |
| 311 | | { |
| 312 | | case 0x00: /* sprite 32x32*/ |
| 313 | | char_type=4; |
| 314 | | code/=8; |
| 315 | | w=32; |
| 316 | | h=32; |
| 317 | | break; |
| 318 | | case 0x08: /* sprite 16x32 */ |
| 319 | | char_type=5; |
| 320 | | code/=4; |
| 321 | | w=16; |
| 322 | | h=32; |
| 323 | | break; |
| 324 | | case 0x10: /* sprite 32x16 */ |
| 325 | | char_type=2; |
| 326 | | code/=4; |
| 327 | | w=32; |
| 328 | | h=16; |
| 329 | | break; |
| 330 | | case 0x18: /* sprite 64x64 */ |
| 331 | | char_type=7; |
| 332 | | code/=32; |
| 333 | | w=64; |
| 334 | | h=64; |
| 335 | | break; |
| 336 | | case 0x20: /* char 8x8 */ |
| 337 | | char_type=0; |
| 338 | | code*=2; |
| 339 | | w=8; |
| 340 | | h=8; |
| 341 | | break; |
| 342 | | case 0x28: /* sprite 16x8 */ |
| 343 | | char_type=6; |
| 344 | | w=16; |
| 345 | | h=8; |
| 346 | | break; |
| 347 | | case 0x30: /* sprite 8x16 */ |
| 348 | | char_type=3; |
| 349 | | w=8; |
| 350 | | h=16; |
| 351 | | break; |
| 352 | | case 0x38: |
| 353 | | default: /* sprite 16x16 */ |
| 354 | | char_type=1; |
| 355 | | code/=2; |
| 356 | | w=16; |
| 357 | | h=16; |
| 358 | | break; |
| 359 | | } |
| 302 | idx = (size >> 3) & 7; |
| 303 | w = sprite_data[idx].width; |
| 304 | h = sprite_data[idx].height; |
| 305 | code = code * 8 * 16 / (w * h); |
| 306 | char_type = sprite_data[idx].char_type; |
| 360 | 307 | |
| 361 | 308 | if( zoom ) |
| 362 | 309 | { |
| r788 | r789 | |
| 390 | 337 | int bAnyDirty; |
| 391 | 338 | |
| 392 | 339 | bAnyDirty = 0; |
| 393 | | for (offs = 0x800 - 1;offs >= 0;offs --) |
| 340 | for (offs = spriteram_words - 1;offs >= 0;offs --) |
| 394 | 341 | { |
| 395 | | if (char_dirty[offs] ) |
| 342 | if (sprite_dirty[4][offs]) |
| 396 | 343 | { |
| 397 | 344 | decodechar(machine->gfx[0],offs,(UINT8 *)nemesis_characterram, |
| 398 | 345 | machine->drv->gfxdecodeinfo[0].gfxlayout); |
| 399 | 346 | bAnyDirty = 1; |
| 400 | | char_dirty[offs] = 0; |
| 347 | sprite_dirty[4][offs] = 0; |
| 401 | 348 | } |
| 402 | 349 | } |
| 403 | 350 | if( bAnyDirty ) |
| r788 | r789 | |
| 420 | 367 | if (zoom != 0xFF || code!=0) |
| 421 | 368 | { |
| 422 | 369 | int size = spriteram16[offs+1]; |
| 423 | | switch(size&0x38) |
| 424 | | { |
| 425 | | case 0x00: |
| 426 | | /* sprite 32x32*/ |
| 427 | | char_type=4; |
| 428 | | code/=8; |
| 429 | | if (sprite3232_dirty[code] == 1) |
| 430 | | { |
| 431 | | decodechar(machine->gfx[char_type],code,(UINT8 *)nemesis_characterram, |
| 432 | | machine->drv->gfxdecodeinfo[char_type].gfxlayout); |
| 433 | | sprite3232_dirty[code] = 0; |
| 434 | | } |
| 435 | | break; |
| 436 | | case 0x08: |
| 437 | | /* sprite 16x32 */ |
| 438 | | char_type=5; |
| 439 | | code/=4; |
| 440 | | if (sprite1632_dirty[code] == 1) |
| 441 | | { |
| 442 | | decodechar(machine->gfx[char_type],code,(UINT8 *)nemesis_characterram, |
| 443 | | machine->drv->gfxdecodeinfo[char_type].gfxlayout); |
| 444 | | sprite1632_dirty[code] = 0; |
| 370 | int idx = (size >> 3) & 7; |
| 371 | int w, h; |
| 445 | 372 | |
| 446 | | } |
| 447 | | break; |
| 448 | | case 0x10: |
| 449 | | /* sprite 32x16 */ |
| 450 | | char_type=2; |
| 451 | | code/=4; |
| 452 | | if (sprite3216_dirty[code] == 1) |
| 453 | | { |
| 454 | | decodechar(machine->gfx[char_type],code,(UINT8 *)nemesis_characterram, |
| 455 | | machine->drv->gfxdecodeinfo[char_type].gfxlayout); |
| 456 | | sprite3216_dirty[code] = 0; |
| 457 | | } |
| 458 | | break; |
| 459 | | case 0x18: |
| 460 | | /* sprite 64x64 */ |
| 461 | | char_type=7; |
| 462 | | code/=32; |
| 463 | | if (sprite6464_dirty[code] == 1) |
| 464 | | { |
| 465 | | decodechar(machine->gfx[char_type],code,(UINT8 *)nemesis_characterram, |
| 466 | | machine->drv->gfxdecodeinfo[char_type].gfxlayout); |
| 467 | | sprite6464_dirty[code] = 0; |
| 468 | | } |
| 469 | | break; |
| 470 | | case 0x20: |
| 471 | | /* char 8x8 */ |
| 472 | | char_type=0; |
| 473 | | code*=2; |
| 474 | | if (char_dirty[code] == 1) |
| 475 | | { |
| 476 | | decodechar(machine->gfx[char_type],code,(UINT8 *)nemesis_characterram, |
| 477 | | machine->drv->gfxdecodeinfo[char_type].gfxlayout); |
| 478 | | char_dirty[code] = 0; |
| 479 | | } |
| 480 | | break; |
| 481 | | case 0x28: |
| 482 | | /* sprite 16x8 */ |
| 483 | | char_type=6; |
| 484 | | if (sprite168_dirty[code] == 1) |
| 485 | | { |
| 486 | | decodechar(machine->gfx[char_type],code,(UINT8 *)nemesis_characterram, |
| 487 | | machine->drv->gfxdecodeinfo[char_type].gfxlayout); |
| 488 | | sprite168_dirty[code] = 0; |
| 489 | | } |
| 490 | | break; |
| 491 | | case 0x30: |
| 492 | | /* sprite 8x16 */ |
| 493 | | char_type=3; |
| 494 | | if (sprite816_dirty[code] == 1) |
| 495 | | { |
| 496 | | decodechar(machine->gfx[char_type],code,(UINT8 *)nemesis_characterram, |
| 497 | | machine->drv->gfxdecodeinfo[char_type].gfxlayout); |
| 498 | | sprite816_dirty[code] = 0; |
| 499 | | } |
| 500 | | break; |
| 501 | | default: |
| 502 | | logerror("UN-SUPPORTED SPRITE SIZE %-4x\n",size&0x38); |
| 503 | | case 0x38: |
| 504 | | /* sprite 16x16 */ |
| 505 | | char_type=1; |
| 506 | | code/=2; |
| 507 | | if (sprite_dirty[code] == 1) |
| 508 | | { |
| 509 | | decodechar(machine->gfx[char_type],code,(UINT8 *)nemesis_characterram, |
| 510 | | machine->drv->gfxdecodeinfo[char_type].gfxlayout); |
| 511 | | sprite_dirty[code] = 2; |
| 512 | | |
| 513 | | } |
| 514 | | break; |
| 373 | w = sprite_data[idx].width; |
| 374 | h = sprite_data[idx].height; |
| 375 | code = code * 8 * 16 / (w * h); |
| 376 | char_type = sprite_data[idx].char_type; |
| 377 | if (sprite_dirty[idx][code] == 1) |
| 378 | { |
| 379 | decodechar(machine->gfx[char_type],code,(UINT8 *)nemesis_characterram, |
| 380 | machine->drv->gfxdecodeinfo[char_type].gfxlayout); |
| 381 | sprite_dirty[idx][code] = 0; |
| 515 | 382 | } |
| 516 | 383 | } |
| 517 | 384 | } |
src/mame/drivers/bfm_sc2.c
| r788 | r789 | |
| 146 | 146 | //#include "video/awpvid.h" |
| 147 | 147 | #include "machine/steppers.h" // stepper motor |
| 148 | 148 | |
| 149 | | #include "machine/lamps.h" |
| 150 | 149 | #include "machine/bfm_bd1.h" // vfd |
| 151 | 150 | #include "machine/mmtr.h" |
| 152 | 151 | |
| r788 | r789 | |
| 206 | 205 | |
| 207 | 206 | static int sc2_show_door; // flag <>0, show door state |
| 208 | 207 | static int sc2_door_state; // door switch strobe/data |
| 209 | | static int sc2_show_vfd_display; |
| 210 | 208 | |
| 211 | 209 | static int reel12_latch; |
| 212 | 210 | static int reel34_latch; |
| r788 | r789 | |
| 328 | 326 | watchdog_kicked = 0; |
| 329 | 327 | |
| 330 | 328 | |
| 331 | | bfm_bd1_reset(0); // reset display1 |
| 332 | | bfm_bd1_reset(1); // reset display2 |
| 329 | BFM_BD1_reset(0); // reset display1 |
| 330 | BFM_BD1_reset(1); // reset display2 |
| 333 | 331 | |
| 334 | 332 | e2ram_reset(); |
| 335 | 333 | |
| r788 | r789 | |
| 506 | 504 | |
| 507 | 505 | static INTERRUPT_GEN( timer_irq ) |
| 508 | 506 | { |
| 509 | | timercnt++; |
| 510 | | |
| 511 | | |
| 512 | | if ( (timercnt & 0x03) == 0 ) sc2_show_vfd_display = readinputportbytag_safe("DEBUGPORT",13) & 0x01; // debug port |
| 513 | | |
| 514 | 507 | if ( watchdog_kicked ) |
| 515 | 508 | { |
| 516 | 509 | watchdog_cnt = 0; |
| r788 | r789 | |
| 707 | 700 | |
| 708 | 701 | static WRITE8_HANDLER( mux_output_w ) |
| 709 | 702 | { |
| 703 | int i; |
| 710 | 704 | int off = offset<<3; |
| 711 | 705 | |
| 712 | 706 | Lamps[ off ] = (data & 0x01) != 0; |
| r788 | r789 | |
| 718 | 712 | Lamps[ off+6 ] = (data & 0x40) != 0; |
| 719 | 713 | Lamps[ off+7 ] = (data & 0x80) != 0; |
| 720 | 714 | |
| 721 | | if ( offset == 0 ) Lamps_SetBrightness(0, 255, Lamps); // update all lamps after strobe 0 has been updated |
| 715 | if (offset == 0) // update all lamps after strobe 0 has been updated (HACK) |
| 716 | { |
| 717 | for ( i = 0; i < 256; i++ ) |
| 718 | { |
| 719 | output_set_lamp_value(i, Lamps[i]); |
| 720 | } |
| 721 | } |
| 722 | 722 | } |
| 723 | 723 | |
| 724 | 724 | /////////////////////////////////////////////////////////////////////////// |
| r788 | r789 | |
| 1084 | 1084 | static WRITE8_HANDLER( vfd1_data_w ) |
| 1085 | 1085 | { |
| 1086 | 1086 | vfd1_latch = data; |
| 1087 | | bfm_bd1_newdata(0, data); |
| 1087 | BFM_BD1_newdata(0, data); |
| 1088 | BFM_BD1_draw(0); |
| 1088 | 1089 | } |
| 1089 | 1090 | |
| 1090 | 1091 | /////////////////////////////////////////////////////////////////////////// |
| r788 | r789 | |
| 1092 | 1093 | static WRITE8_HANDLER( vfd2_data_w ) |
| 1093 | 1094 | { |
| 1094 | 1095 | vfd2_latch = data; |
| 1095 | | bfm_bd1_newdata(1, data); |
| 1096 | BFM_BD1_newdata(1, data); |
| 1097 | BFM_BD1_draw(1); |
| 1096 | 1098 | } |
| 1097 | 1099 | |
| 1098 | 1100 | /////////////////////////////////////////////////////////////////////////// |
| 1099 | 1101 | |
| 1100 | 1102 | static WRITE8_HANDLER( vfd_reset_w ) |
| 1101 | 1103 | { |
| 1102 | | bfm_bd1_reset(0); // reset both VFD's |
| 1103 | | bfm_bd1_reset(1); |
| 1104 | BFM_BD1_reset(0); // reset both VFD's |
| 1105 | BFM_BD1_reset(1); |
| 1106 | BFM_BD1_draw(0); |
| 1107 | BFM_BD1_draw(1); |
| 1104 | 1108 | } |
| 1105 | 1109 | |
| 1106 | 1110 | /////////////////////////////////////////////////////////////////////////// |
| r788 | r789 | |
| 1584 | 1588 | // reset the board ////////////////////////////////////////////////////// |
| 1585 | 1589 | |
| 1586 | 1590 | on_scorpion2_reset(); |
| 1591 | BFM_BD1_init(0); |
| 1592 | BFM_BD1_init(1); |
| 1587 | 1593 | //BFM_dm01_reset(); No known video based game has a Matrix board |
| 1588 | 1594 | } |
| 1589 | 1595 | |
| 1590 | | static void adder_lamp_draw(void) |
| 1591 | | { |
| 1592 | | int i,nrlamps; |
| 1593 | | |
| 1594 | | nrlamps = Lamps_GetNumberLamps(); |
| 1595 | | for ( i = 0; i < (nrlamps+1); i++ ) |
| 1596 | | { |
| 1597 | | output_set_lamp_value(i, Lamps_GetBrightness(i)); |
| 1598 | | } |
| 1599 | | } |
| 1600 | | |
| 1601 | | static VIDEO_UPDATE( addersc2 ) |
| 1602 | | { |
| 1603 | | adder_lamp_draw(); |
| 1604 | | |
| 1605 | | if ( sc2_show_door ) |
| 1606 | | { |
| 1607 | | output_set_value("door",( Scorpion2_GetSwitchState(sc2_door_state>>4, sc2_door_state & 0x0F) ) ); |
| 1608 | | } |
| 1609 | | |
| 1610 | | if ( sc2_show_vfd_display )//Configuration switch on, indicating VFD present |
| 1611 | | { |
| 1612 | | bfm_bd1_draw(0); |
| 1613 | | } |
| 1614 | | return video_update_adder2(machine,screen,bitmap,cliprect); |
| 1615 | | } |
| 1616 | | |
| 1617 | 1596 | // memory map for scorpion2 board video addon ///////////////////////////// |
| 1618 | 1597 | |
| 1619 | 1598 | static ADDRESS_MAP_START( memmap_vid, ADDRESS_SPACE_PROGRAM, 8 ) |
| r788 | r789 | |
| 1822 | 1801 | PORT_DIPSETTING( 0x10, "2 credit per round" ) |
| 1823 | 1802 | PORT_DIPSETTING( 0x18, "4 credits per round" ) |
| 1824 | 1803 | |
| 1825 | | PORT_START_TAG("DEBUGPORT") |
| 1826 | | PORT_CONFNAME( 0x01, 0x00, "Internal Alpha Display" ) |
| 1827 | | PORT_CONFSETTING( 0x00, DEF_STR( Off ) ) |
| 1828 | | PORT_CONFSETTING( 0x01, DEF_STR( On ) ) |
| 1829 | | |
| 1830 | 1804 | INPUT_PORTS_END |
| 1831 | 1805 | |
| 1832 | 1806 | // input ports for golden crown /////////////////////////////////// |
| r788 | r789 | |
| 1991 | 1965 | PORT_DIPSETTING( 0x10, "3" ) |
| 1992 | 1966 | PORT_DIPSETTING( 0x18, "4 (slow)" ) |
| 1993 | 1967 | |
| 1994 | | PORT_START_TAG("DEBUGPORT") |
| 1995 | | PORT_CONFNAME( 0x01, 0x00, "Internal Alpha Display" ) |
| 1996 | | PORT_CONFSETTING( 0x00, DEF_STR( Off ) ) |
| 1997 | | PORT_CONFSETTING( 0x01, DEF_STR( On ) ) |
| 1998 | | |
| 1999 | 1968 | INPUT_PORTS_END |
| 2000 | 1969 | |
| 2001 | 1970 | // input ports for dutch quintoon ///////////////////////////////// |
| r788 | r789 | |
| 2150 | 2119 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 2151 | 2120 | PORT_DIPSETTING( 0x10, DEF_STR( On ) ) |
| 2152 | 2121 | |
| 2153 | | PORT_START_TAG("DEBUGPORT") |
| 2154 | | PORT_CONFNAME( 0x01, 0x00, "Internal Alpha Display" ) |
| 2155 | | PORT_CONFSETTING( 0x00, DEF_STR( Off ) ) |
| 2156 | | PORT_CONFSETTING( 0x01, DEF_STR( On ) ) |
| 2157 | | |
| 2158 | 2122 | INPUT_PORTS_END |
| 2159 | 2123 | |
| 2160 | 2124 | // input ports for UK quintoon //////////////////////////////////////////// |
| r788 | r789 | |
| 2309 | 2273 | PORT_DIPSETTING( 0x04, "80%") |
| 2310 | 2274 | PORT_DIPSETTING( 0x14, "85%") |
| 2311 | 2275 | |
| 2312 | | PORT_START_TAG("DEBUGPORT") |
| 2313 | | PORT_CONFNAME( 0x01, 0x00, "Internal Alpha Display" ) |
| 2314 | | PORT_CONFSETTING( 0x00, DEF_STR( Off ) ) |
| 2315 | | PORT_CONFSETTING( 0x01, DEF_STR( On ) ) |
| 2316 | | |
| 2317 | 2276 | INPUT_PORTS_END |
| 2318 | 2277 | |
| 2319 | 2278 | // input ports for slotsnl /////////////////////////////////////////////// |
| r788 | r789 | |
| 2467 | 2426 | PORT_DIPSETTING( 0x08, "3" ) |
| 2468 | 2427 | PORT_DIPSETTING( 0x18, "4" ) |
| 2469 | 2428 | |
| 2470 | | PORT_START_TAG("DEBUGPORT") |
| 2471 | | PORT_CONFNAME( 0x01, 0x00, "Internal Alpha Display" ) |
| 2472 | | PORT_CONFSETTING( 0x00, DEF_STR( Off ) ) |
| 2473 | | PORT_CONFSETTING( 0x01, DEF_STR( On ) ) |
| 2474 | | |
| 2475 | 2429 | INPUT_PORTS_END |
| 2476 | 2430 | |
| 2477 | 2431 | // input ports for sltblgtk ////////////////////////////////////////////// |
| r788 | r789 | |
| 2627 | 2581 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 2628 | 2582 | PORT_DIPSETTING( 0x10, DEF_STR( On ) ) |
| 2629 | 2583 | |
| 2630 | | PORT_START_TAG("DEBUGPORT") |
| 2631 | | PORT_CONFNAME( 0x01, 0x00, "Internal Alpha Display" ) |
| 2632 | | PORT_CONFSETTING( 0x00, DEF_STR( Off ) ) |
| 2633 | | PORT_CONFSETTING( 0x01, DEF_STR( On ) ) |
| 2634 | | |
| 2635 | 2584 | INPUT_PORTS_END |
| 2636 | 2585 | |
| 2637 | 2586 | // input ports for sltblgpo ////////////////////////////////////////////// |
| r788 | r789 | |
| 2786 | 2735 | PORT_DIPSETTING( 0x18, "94%") |
| 2787 | 2736 | PORT_DIPSETTING( 0x08, "96%") |
| 2788 | 2737 | |
| 2789 | | PORT_START_TAG("DEBUGPORT") |
| 2790 | | PORT_CONFNAME( 0x01, 0x00, "Internal Alpha Display" ) |
| 2791 | | PORT_CONFSETTING( 0x00, DEF_STR( Off ) ) |
| 2792 | | PORT_CONFSETTING( 0x01, DEF_STR( On ) ) |
| 2793 | | |
| 2794 | 2738 | INPUT_PORTS_END |
| 2795 | 2739 | |
| 2796 | 2740 | // input ports for paradice /////////////////////////////////////////////// |
| r788 | r789 | |
| 2943 | 2887 | PORT_DIPSETTING( 0x10, "2" ) |
| 2944 | 2888 | PORT_DIPSETTING( 0x18, "3" ) |
| 2945 | 2889 | |
| 2946 | | PORT_START_TAG("DEBUGPORT") |
| 2947 | | PORT_CONFNAME( 0x01, 0x00, "Internal Alpha Display" ) |
| 2948 | | PORT_CONFSETTING( 0x00, DEF_STR( Off ) ) |
| 2949 | | PORT_CONFSETTING( 0x01, DEF_STR( On ) ) |
| 2950 | | |
| 2951 | 2890 | INPUT_PORTS_END |
| 2952 | 2891 | |
| 2953 | 2892 | // input ports for pokio ////////////////////////////////////////////////// |
| r788 | r789 | |
| 3101 | 3040 | PORT_DIPSETTING( 0x10, "2" ) |
| 3102 | 3041 | PORT_DIPSETTING( 0x18, "3" ) |
| 3103 | 3042 | |
| 3104 | | PORT_START_TAG("DEBUGPORT") |
| 3105 | | PORT_CONFNAME( 0x01, 0x00, "Internal Alpha Display" ) |
| 3106 | | PORT_CONFSETTING( 0x00, DEF_STR( Off ) ) |
| 3107 | | PORT_CONFSETTING( 0x01, DEF_STR( On ) ) |
| 3108 | | |
| 3109 | 3043 | INPUT_PORTS_END |
| 3110 | 3044 | |
| 3111 | 3045 | static struct upd7759_interface upd7759_interface = |
| r788 | r789 | |
| 3136 | 3070 | MDRV_SCREEN_REFRESH_RATE(50) |
| 3137 | 3071 | MDRV_VIDEO_START( adder2) |
| 3138 | 3072 | MDRV_VIDEO_RESET( adder2) |
| 3139 | | MDRV_VIDEO_UPDATE(addersc2) |
| 3073 | MDRV_VIDEO_UPDATE(adder2) |
| 3140 | 3074 | |
| 3141 | 3075 | MDRV_PALETTE_LENGTH(16) |
| 3142 | 3076 | MDRV_COLORTABLE_LENGTH(16) |
| r788 | r789 | |
| 3169 | 3103 | } |
| 3170 | 3104 | |
| 3171 | 3105 | memset(sc2_Inputs, 0, sizeof(sc2_Inputs)); // clear all inputs |
| 3172 | | |
| 3173 | | Lamps_init(256); |
| 3174 | 3106 | } |
| 3175 | 3107 | |
| 3176 | 3108 | static void adder2_common_init(void) |
src/mame/drivers/mpu4.c
| r788 | r789 | |
| 1 | 1 | /*************************************************************************** |
| 2 | 2 | MPU4 highly preliminary driver by J.Wallace, and Anonymous. |
| 3 | 3 | |
| 4 | 03-08-2007: J Wallace: Removed audio filter for now, since sound is more accurate without them. |
| 5 | Connect 4 now has the right sound. |
| 4 | 6 | 03-07-2007: J Wallace: Several major changes, including input relabelling, and system timer improvements. |
| 5 | 7 | 06-2007: Atari Ace, many cleanups and optimizations of I/O routines |
| 6 | 8 | 09-06-2007: J Wallace: Fixed 50Hz detection circuit. |
| r788 | r789 | |
| 273 | 275 | #include "sound/ay8910.h" |
| 274 | 276 | #include "sound/flt_rc.h" |
| 275 | 277 | #include "sound/2413intf.h" |
| 276 | | #include "machine/lamps.h" // lamp matrix |
| 277 | 278 | #include "machine/steppers.h" // stepper motor |
| 278 | 279 | #include "machine/roc10937.h" // vfd |
| 279 | 280 | #include "machine/mmtr.h" |
| r788 | r789 | |
| 281 | 282 | // Video |
| 282 | 283 | #include "cpu/m68000/m68000.h" |
| 283 | 284 | #include "machine/6850acia.h" |
| 284 | | //#include "machine/74148.h" |
| 285 | 285 | #include "sound/saa1099.h" |
| 286 | 286 | |
| 287 | 287 | //Deal 'Em |
| r788 | r789 | |
| 294 | 294 | #define LOG_IC8(x) |
| 295 | 295 | #define LOGSTUFF(x) |
| 296 | 296 | #else |
| 297 | | #define LOG(x) logerror x |
| 297 | #define LOG(x) |
| 298 | 298 | #define LOG_CHR(x) |
| 299 | 299 | #define LOG_IC3(x) |
| 300 | 300 | #define LOG_IC8(x) |
| r788 | r789 | |
| 305 | 305 | #include "connect4.lh" |
| 306 | 306 | #define MPU4_MASTER_CLOCK (6880000) |
| 307 | 307 | #define VIDEO_MASTER_CLOCK (10000000) |
| 308 | | |
| 308 | //#include "video/awpvid.h" //Fruit Machines Only |
| 309 | 309 | // local vars ///////////////////////////////////////////////////////////// |
| 310 | 310 | static int mod_number; |
| 311 | 311 | static int mmtr_data; |
| r788 | r789 | |
| 324 | 324 | static int prot_col; |
| 325 | 325 | static int lamp_col; |
| 326 | 326 | static int ic24_active; |
| 327 | static int led_extend; |
| 327 | 328 | static mame_timer *ic24_timer; |
| 328 | 329 | static mame_timer *freq_timer; |
| 329 | 330 | static TIMER_CALLBACK( ic24_timeout ); |
| r788 | r789 | |
| 338 | 339 | UINT8 MPU4_chr_data[72]; |
| 339 | 340 | static UINT8 led_segs[8]; |
| 340 | 341 | static UINT8 Lamps[128]; // 128 multiplexed lamps |
| 342 | //static UINT8 Lampscopy[128]; |
| 341 | 343 | // 32 multiplexed inputs - but a further 8 possible per AUX. |
| 342 | 344 | // Two connectors 'orange' (sampled every 8ms) and 'black' (sampled every 16ms) |
| 343 | 345 | // Each connector carries two banks of eight inputs and two enable signals |
| r788 | r789 | |
| 402 | 404 | Lamps[(8*input_strobe)+i] = (lamp_strobe & (1 << i)) != 0; |
| 403 | 405 | Lamps[(8*input_strobe)+i+64] = (lamp_strobe2 & (1 << i)) != 0; |
| 404 | 406 | } |
| 405 | | Lamps_SetBrightness(0, 127, Lamps); |
| 406 | | //if ( input_strobe == 0 ) Lamps_SetBrightness(0, 127, Lamps); // update all lamps after strobe 0 has been updated, needs a new timer |
| 407 | | } |
| 408 | 407 | |
| 409 | | static void mpu4_lamp_draw(void) |
| 410 | | { |
| 411 | | int i,nrlamps; |
| 412 | | |
| 413 | | nrlamps = Lamps_GetNumberLamps(); |
| 414 | | for ( i = 0; i < (nrlamps+1); i++ ) |
| 408 | if (led_extend) |
| 415 | 409 | { |
| 416 | | output_set_lamp_value(i, Lamps_GetBrightness(i)); |
| 417 | | } |
| 418 | | } |
| 419 | | |
| 420 | | // video initialisation /////////////////////////////////////////////////// |
| 421 | | |
| 422 | | VIDEO_START( mpu4 ) |
| 423 | | { |
| 424 | | } |
| 425 | | |
| 426 | | // video update /////////////////////////////////////////////////////////// |
| 427 | | |
| 428 | | VIDEO_UPDATE( mpu4 ) |
| 429 | | { |
| 430 | | int i; |
| 431 | | mpu4_lamp_draw(); |
| 432 | | |
| 433 | | if (screen == 0) |
| 434 | | { |
| 435 | | ROC10937_draw_16seg(0); |
| 436 | | } |
| 437 | | |
| 438 | | for (i=0; i<8; i++) |
| 439 | | mpu4_draw_led(i, led_segs[i]); |
| 440 | | |
| 441 | | if (strcmp(machine->gamedrv->name,"connect4") == 0) |
| 442 | | { |
| 443 | | //Connect 4 uses 'programmable' displays, built from lights. |
| 410 | //Connect 4 uses 'programmable' displays, built from lights. |
| 444 | 411 | UINT8 pled_segs[2] = {0,0}; |
| 445 | 412 | |
| 446 | | int i; |
| 447 | 413 | static const int lamps1[8] = { 106, 107, 108, 109, 104, 105, 110, 133 }; |
| 448 | 414 | static const int lamps2[8] = { 114, 115, 116, 117, 112, 113, 118, 119 }; |
| 449 | 415 | |
| 450 | 416 | for (i=0; i<8; i++) |
| 451 | 417 | { |
| 452 | | if (Lamps_GetBrightness(lamps1[i])) pled_segs[0] |= (1 << i); |
| 453 | | if (Lamps_GetBrightness(lamps2[i])) pled_segs[1] |= (1 << i); |
| 418 | if (output_get_lamp_value(lamps1[i])) pled_segs[0] |= (1 << i); |
| 419 | if (output_get_lamp_value(lamps2[i])) pled_segs[1] |= (1 << i); |
| 454 | 420 | } |
| 455 | 421 | |
| 456 | 422 | mpu4_draw_led(8, pled_segs[0]); |
| 457 | 423 | mpu4_draw_led(9, pled_segs[1]); |
| 458 | 424 | } |
| 459 | | return 0; |
| 460 | 425 | } |
| 426 | |
| 427 | static void draw_lamps(void) |
| 428 | { |
| 429 | int i; |
| 430 | |
| 431 | for (i=0; i<8; i++) |
| 432 | { |
| 433 | output_set_lamp_value((8*input_strobe)+i, (Lamps[(8*input_strobe)+i])); |
| 434 | output_set_lamp_value((8*input_strobe)+i+64, (Lamps[(8*input_strobe)+i+64])); |
| 435 | } |
| 436 | } |
| 437 | |
| 461 | 438 | // palette initialisation ///////////////////////////////////////////////// |
| 462 | 439 | |
| 463 | 440 | PALETTE_INIT( mpu4 ) |
| r788 | r789 | |
| 629 | 606 | LOG_IC3(("%04x IC3 PIA Write CA2 (alpha data), %02X\n", activecpu_get_previouspc(),data&0xFF)); |
| 630 | 607 | |
| 631 | 608 | alpha_data_line = data; |
| 609 | ROC10937_draw_16seg(0); |
| 632 | 610 | } |
| 633 | 611 | |
| 634 | 612 | static WRITE8_HANDLER( pia_ic3_cb2_w ) |
| r788 | r789 | |
| 636 | 614 | LOG_IC3(("%04x IC3 PIA Write CB (alpha reset), %02X\n",activecpu_get_previouspc(),data&0xff)); |
| 637 | 615 | |
| 638 | 616 | if ( data ) ROC10937_reset(0); |
| 617 | ROC10937_draw_16seg(0); |
| 639 | 618 | } |
| 640 | 619 | |
| 641 | 620 | // IC3, lamp data lines + alpha numeric display |
| r788 | r789 | |
| 706 | 685 | mame_timer_adjust(ic24_timer, double_to_mame_time(duration), 0, time_zero); |
| 707 | 686 | ic24_active = 1; |
| 708 | 687 | } |
| 688 | draw_lamps(); |
| 709 | 689 | } |
| 710 | 690 | } |
| 711 | 691 | |
| r788 | r789 | |
| 718 | 698 | static WRITE8_HANDLER( pia_ic4_porta_w ) |
| 719 | 699 | { |
| 720 | 700 | led_segs[input_strobe] = data; |
| 701 | mpu4_draw_led(input_strobe, led_segs[input_strobe]); |
| 721 | 702 | } |
| 722 | 703 | |
| 723 | 704 | static READ8_HANDLER( pia_ic4_portb_r ) |
| r788 | r789 | |
| 781 | 762 | static READ8_HANDLER( pia_ic5_portb_r ) |
| 782 | 763 | { |
| 783 | 764 | LOG(("%04x IC5 PIA Read of Port B (coin input AUX2)\n",activecpu_get_previouspc())); |
| 784 | | coin_lockout_w(0, (readinputportbytag("AUX2") & 0x01) ); |
| 785 | | coin_lockout_w(1, (readinputportbytag("AUX2") & 0x02) ); |
| 786 | | coin_lockout_w(2, (readinputportbytag("AUX2") & 0x04) ); |
| 787 | | coin_lockout_w(3, (readinputportbytag("AUX2") & 0x08) ); |
| 765 | coin_lockout_w(0, (pia_get_output_b(2) & 0x01) ); |
| 766 | coin_lockout_w(1, (pia_get_output_b(2) & 0x02) ); |
| 767 | coin_lockout_w(2, (pia_get_output_b(2) & 0x04) ); |
| 768 | coin_lockout_w(3, (pia_get_output_b(2) & 0x08) ); |
| 788 | 769 | return readinputportbytag("AUX2"); |
| 789 | 770 | } |
| 790 | 771 | |
| r788 | r789 | |
| 794 | 775 | serial_data = data; |
| 795 | 776 | } |
| 796 | 777 | |
| 797 | | static const pia6821_interface pia_ic5_intf = |
| 798 | | { |
| 799 | | /*inputs : A/B,CA/B1,CA/B2 */ pia_ic5_porta_r, pia_ic5_portb_r, 0, 0, 0, 0, |
| 800 | | /*outputs: A/B,CA/B2 */ 0, 0, pia_ic5_ca2_w, 0, |
| 801 | | /*irqs : A/B */ cpu0_irq, cpu0_irq |
| 802 | | }; |
| 803 | | |
| 804 | 778 | /* --------------------------------------- |
| 805 | 779 | AY Chip sound function selection - |
| 806 | 780 | --------------------------------------- |
| r788 | r789 | |
| 826 | 800 | |
| 827 | 801 | static void update_ay(void) |
| 828 | 802 | { |
| 829 | | if (pia_get_output_cb2(2)) |
| 803 | if (!pia_get_output_cb2(2)) |
| 830 | 804 | { |
| 831 | 805 | switch (ay8913_address) |
| 832 | 806 | { |
| r788 | r789 | |
| 837 | 811 | } |
| 838 | 812 | case 0x01: |
| 839 | 813 | { /* CA2 = 1 CB2 = 0? : Read from selected PSG register and make the register data available to Port A */ |
| 840 | | pia_set_input_a(3, AY8910_read_port_0_r(0),0); |
| 841 | | LOG(("AY Chip Read \n")); |
| 814 | LOG(("AY8913 address = %d \n",pia_get_output_a(3)&0x0f)); |
| 842 | 815 | break; |
| 843 | 816 | } |
| 844 | 817 | case 0x02: |
| r788 | r789 | |
| 859 | 832 | } |
| 860 | 833 | } |
| 861 | 834 | } |
| 835 | |
| 862 | 836 | } |
| 863 | 837 | |
| 838 | static WRITE8_HANDLER( pia_ic5_cb2_w ) |
| 839 | { |
| 840 | update_ay(); |
| 841 | } |
| 842 | |
| 843 | static const pia6821_interface pia_ic5_intf = |
| 844 | { |
| 845 | /*inputs : A/B,CA/B1,CA/B2 */ pia_ic5_porta_r, pia_ic5_portb_r, 0, 0, 0, 0, |
| 846 | /*outputs: A/B,CA/B2 */ 0, 0, pia_ic5_ca2_w, pia_ic5_cb2_w, |
| 847 | /*irqs : A/B */ cpu0_irq, cpu0_irq |
| 848 | }; |
| 849 | |
| 864 | 850 | static WRITE8_HANDLER( pia_ic6_portb_w ) |
| 865 | 851 | { |
| 866 | 852 | LOG(("%04x IC6 PIA Port B Set to %2x (Reel A and B)\n", activecpu_get_previouspc(),data)); |
| r788 | r789 | |
| 1028 | 1014 | ROC10937_shift_data(0, alpha_data_line&0x01?0:1); |
| 1029 | 1015 | } |
| 1030 | 1016 | alpha_clock = data; |
| 1017 | ROC10937_draw_16seg(0); |
| 1031 | 1018 | } |
| 1032 | 1019 | |
| 1033 | 1020 | static const pia6821_interface pia_ic8_intf = |
| r788 | r789 | |
| 1916 | 1903 | PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_OTHER) PORT_NAME("7") |
| 1917 | 1904 | |
| 1918 | 1905 | PORT_START_TAG("AUX2") |
| 1919 | | PORT_DIPNAME( 0x01, 0x00, "10p Enable?" ) |
| 1920 | | PORT_DIPSETTING( 0x00, "Enabled") |
| 1921 | | PORT_DIPSETTING( 0x01, "Disabled") |
| 1922 | | PORT_DIPNAME( 0x02, 0x00, "20p Enable?" ) |
| 1923 | | PORT_DIPSETTING( 0x00, "Enabled") |
| 1924 | | PORT_DIPSETTING( 0x02, "Disabled") |
| 1925 | | PORT_DIPNAME( 0x04, 0x00, "50p Enable?" ) |
| 1926 | | PORT_DIPSETTING( 0x00, "Enabled") |
| 1927 | | PORT_DIPSETTING( 0x04, "Disabled") |
| 1928 | | PORT_DIPNAME( 0x08, 0x00, "100p Enable?" ) |
| 1929 | | PORT_DIPSETTING( 0x00, "Enabled") |
| 1930 | | PORT_DIPSETTING( 0x08, "Disabled") |
| 1906 | PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_SPECIAL) |
| 1907 | PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_SPECIAL) |
| 1908 | PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_SPECIAL) |
| 1909 | PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_SPECIAL) |
| 1931 | 1910 | PORT_BIT(0x10, IP_ACTIVE_HIGH, IPT_COIN1) PORT_NAME("10p")PORT_IMPULSE(5) |
| 1932 | 1911 | PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_COIN2) PORT_NAME("20p")PORT_IMPULSE(5) |
| 1933 | 1912 | PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_COIN3) PORT_NAME("50p")PORT_IMPULSE(5) |
| r788 | r789 | |
| 2039 | 2018 | PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_OTHER) PORT_NAME("7") |
| 2040 | 2019 | |
| 2041 | 2020 | PORT_START_TAG("AUX2") |
| 2042 | | PORT_DIPNAME( 0x01, 0x00, "10p Enable?" ) |
| 2043 | | PORT_DIPSETTING( 0x00, "Enabled") |
| 2044 | | PORT_DIPSETTING( 0x01, "Disabled") |
| 2045 | | PORT_DIPNAME( 0x02, 0x00, "20p Enable?" ) |
| 2046 | | PORT_DIPSETTING( 0x00, "Enabled") |
| 2047 | | PORT_DIPSETTING( 0x02, "Disabled") |
| 2048 | | PORT_DIPNAME( 0x04, 0x00, "50p Enable?" ) |
| 2049 | | PORT_DIPSETTING( 0x00, "Enabled") |
| 2050 | | PORT_DIPSETTING( 0x04, "Disabled") |
| 2051 | | PORT_DIPNAME( 0x08, 0x00, "100p Enable?" ) |
| 2052 | | PORT_DIPSETTING( 0x00, "Enabled") |
| 2053 | | PORT_DIPSETTING( 0x08, "Disabled") |
| 2054 | | |
| 2021 | PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_SPECIAL) |
| 2022 | PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_SPECIAL) |
| 2023 | PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_SPECIAL) |
| 2024 | PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_SPECIAL) |
| 2055 | 2025 | PORT_BIT(0x10, IP_ACTIVE_HIGH, IPT_COIN1) PORT_NAME("10p")PORT_IMPULSE(5) |
| 2056 | 2026 | PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_COIN2) PORT_NAME("20p")PORT_IMPULSE(5) |
| 2057 | 2027 | PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_COIN3) PORT_NAME("50p")PORT_IMPULSE(5) |
| r788 | r789 | |
| 2163 | 2133 | PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_OTHER) PORT_NAME("7") |
| 2164 | 2134 | |
| 2165 | 2135 | PORT_START_TAG("AUX2") |
| 2166 | | PORT_DIPNAME( 0x01, 0x00, "10p Enable?" ) |
| 2167 | | PORT_DIPSETTING( 0x00, "Enabled") |
| 2168 | | PORT_DIPSETTING( 0x01, "Disabled") |
| 2169 | | PORT_DIPNAME( 0x02, 0x00, "20p Enable?" ) |
| 2170 | | PORT_DIPSETTING( 0x00, "Enabled") |
| 2171 | | PORT_DIPSETTING( 0x02, "Disabled") |
| 2172 | | PORT_DIPNAME( 0x04, 0x00, "50p Enable?" ) |
| 2173 | | PORT_DIPSETTING( 0x00, "Enabled") |
| 2174 | | PORT_DIPSETTING( 0x04, "Disabled") |
| 2175 | | PORT_DIPNAME( 0x08, 0x00, "100p Enable?" ) |
| 2176 | | PORT_DIPSETTING( 0x00, "Enabled") |
| 2177 | | PORT_DIPSETTING( 0x08, "Disabled") |
| 2136 | PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_SPECIAL) |
| 2137 | PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_SPECIAL) |
| 2138 | PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_SPECIAL) |
| 2139 | PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_SPECIAL) |
| 2178 | 2140 | PORT_BIT(0x10, IP_ACTIVE_HIGH, IPT_COIN1) PORT_NAME("10p")PORT_IMPULSE(5) |
| 2179 | 2141 | PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_COIN2) PORT_NAME("20p")PORT_IMPULSE(5) |
| 2180 | 2142 | PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_COIN3) PORT_NAME("50p")PORT_IMPULSE(5) |
| r788 | r789 | |
| 2250 | 2212 | |
| 2251 | 2213 | PORT_START_TAG("DIL2") |
| 2252 | 2214 | PORT_DIPNAME( 0x01, 0x00, "Payout Limit" ) PORT_DIPLOCATION("DIL2:01") |
| 2253 | | PORT_DIPSETTING( 0x00, "200p (All Cash)") |
| 2254 | | PORT_DIPSETTING( 0x01, "400p (Token)") |
| 2215 | PORT_DIPSETTING( 0x00, "GBP 2.00 (All Cash)") |
| 2216 | PORT_DIPSETTING( 0x01, "GBP 4.00 (Token)") |
| 2255 | 2217 | PORT_DIPNAME( 0x02, 0x00, "10p Payout Priority" ) PORT_DIPLOCATION("DIL2:02") |
| 2256 | 2218 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 2257 | 2219 | PORT_DIPSETTING( 0x02, DEF_STR( On ) ) |
| r788 | r789 | |
| 2261 | 2223 | PORT_DIPNAME( 0x08, 0x00, "50p Payout Solenoid fitted?" ) PORT_DIPLOCATION("DIL2:04") |
| 2262 | 2224 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) |
| 2263 | 2225 | PORT_DIPSETTING( 0x08, DEF_STR( Yes ) ) |
| 2264 | | PORT_DIPNAME( 0x10, 0x00, "100p Payout Solenoid fitted?" ) PORT_DIPLOCATION("DIL2:05") |
| 2226 | PORT_DIPNAME( 0x10, 0x00, "GBP 1.00 Payout Solenoid fitted?" ) PORT_DIPLOCATION("DIL2:05") |
| 2265 | 2227 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) |
| 2266 | 2228 | PORT_DIPSETTING( 0x10, DEF_STR( Yes ) ) |
| 2267 | 2229 | PORT_DIPNAME( 0x20, 0x00, "Coin alarm active?" ) PORT_DIPLOCATION("DIL2:06") |
| r788 | r789 | |
| 2285 | 2247 | PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_OTHER) PORT_NAME("7") |
| 2286 | 2248 | |
| 2287 | 2249 | PORT_START_TAG("AUX2") |
| 2288 | | PORT_DIPNAME( 0x01, 0x00, "10p Enable?" ) |
| 2289 | | PORT_DIPSETTING( 0x00, "Enabled") |
| 2290 | | PORT_DIPSETTING( 0x01, "Disabled") |
| 2291 | | PORT_DIPNAME( 0x02, 0x00, "20p Enable?" ) |
| 2292 | | PORT_DIPSETTING( 0x00, "Enabled") |
| 2293 | | PORT_DIPSETTING( 0x02, "Disabled") |
| 2294 | | PORT_DIPNAME( 0x04, 0x00, "50p Enable?" ) |
| 2295 | | PORT_DIPSETTING( 0x00, "Enabled") |
| 2296 | | PORT_DIPSETTING( 0x04, "Disabled") |
| 2297 | | PORT_DIPNAME( 0x08, 0x00, "100p Enable?" ) |
| 2298 | | PORT_DIPSETTING( 0x00, "Enabled") |
| 2299 | | PORT_DIPSETTING( 0x08, "Disabled") |
| 2250 | PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_SPECIAL) |
| 2251 | PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_SPECIAL) |
| 2252 | PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_SPECIAL) |
| 2253 | PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_SPECIAL) |
| 2300 | 2254 | PORT_BIT(0x10, IP_ACTIVE_HIGH, IPT_COIN1) PORT_NAME("10p")PORT_IMPULSE(5) |
| 2301 | 2255 | PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_COIN2) PORT_NAME("20p")PORT_IMPULSE(5) |
| 2302 | 2256 | PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_COIN3) PORT_NAME("50p")PORT_IMPULSE(5) |
| r788 | r789 | |
| 2368 | 2322 | acia6850_config(0, &m6809_acia_if); |
| 2369 | 2323 | acia6850_config(1, &m68k_acia_if); |
| 2370 | 2324 | |
| 2371 | | // setup 128 lamps ////////////////////////////////////////////////////// |
| 2372 | | Lamps_init(128); |
| 2373 | | |
| 2374 | 2325 | // setup 8 mechanical meters //////////////////////////////////////////// |
| 2375 | 2326 | Mechmtr_init(8); |
| 2376 | 2327 | |
| r788 | r789 | |
| 2393 | 2344 | |
| 2394 | 2345 | serial_card_connected=0; |
| 2395 | 2346 | mod_number=2; |
| 2396 | | // setup 128 lamps ////////////////////////////////////////////////////// |
| 2397 | | Lamps_init(128); |
| 2398 | 2347 | |
| 2399 | 2348 | // setup 8 mechanical meters //////////////////////////////////////////// |
| 2400 | 2349 | Mechmtr_init(8); |
| r788 | r789 | |
| 2407 | 2356 | |
| 2408 | 2357 | // setup the standard oki MSC1937 display /////////////////////////////// |
| 2409 | 2358 | ROC10937_init(0, MSC1937,0); |
| 2410 | | filter_rc_set_RC(0,FLT_RC_LOWPASS, 820,500,0,CAP_U(0.01)); |
| 2411 | 2359 | } |
| 2412 | 2360 | |
| 2413 | 2361 | /* |
| r788 | r789 | |
| 2458 | 2406 | int call=data; |
| 2459 | 2407 | for ( x = 0; x < 64; x++ ) |
| 2460 | 2408 | { |
| 2461 | | LOG_CHR(("Characteriser %02X:",chr_data[x])); |
| 2409 | LOG_CHR(("Characteriser %02X:",MPU4_chr_data[x])); |
| 2462 | 2410 | } |
| 2463 | 2411 | |
| 2464 | 2412 | if (offset == 0) |
| r788 | r789 | |
| 2469 | 2417 | { |
| 2470 | 2418 | prot_col = x; |
| 2471 | 2419 | LOG_CHR(("Characteriser find column %02X\n",prot_col)); |
| 2472 | | LOG_CHR(("Characteriser find data %02X\n",chr_data[prot_col])); |
| 2420 | LOG_CHR(("Characteriser find data %02X\n",MPU4_chr_data[prot_col])); |
| 2473 | 2421 | break; |
| 2474 | 2422 | } |
| 2475 | 2423 | } |
| r788 | r789 | |
| 2503 | 2451 | LOG_CHR(("Characteriser read offset %02X \n",offset)); |
| 2504 | 2452 | if (offset == 0) |
| 2505 | 2453 | { |
| 2506 | | LOG_CHR(("Characteriser read data %02X \n",chr_data[prot_col])); |
| 2454 | LOG_CHR(("Characteriser read data %02X \n",MPU4_chr_data[prot_col])); |
| 2507 | 2455 | return MPU4_chr_data[prot_col]; |
| 2508 | 2456 | } |
| 2509 | 2457 | if (offset == 3) |
| 2510 | 2458 | { |
| 2511 | | LOG_CHR(("Characteriser read data %02X \n",chr_data[lamp_col+64])); |
| 2459 | LOG_CHR(("Characteriser read data %02X \n",MPU4_chr_data[lamp_col+64])); |
| 2512 | 2460 | return MPU4_chr_data[lamp_col+64]; |
| 2513 | 2461 | } |
| 2514 | 2462 | return 0; |
| r788 | r789 | |
| 2535 | 2483 | static READ16_HANDLER( characteriser16_r ) |
| 2536 | 2484 | { |
| 2537 | 2485 | LOG_CHR(("Characteriser read offset %02X \n",offset)); |
| 2538 | | LOG_CHR(("Characteriser read data %02X \n",chr16_data[prot_col])); |
| 2486 | LOG_CHR(("Characteriser read data %02X \n",MPU4_chr_data[prot_col])); |
| 2539 | 2487 | return MPU4_chr_data[prot_col]; |
| 2540 | 2488 | } |
| 2541 | 2489 | |
| r788 | r789 | |
| 2552 | 2500 | signal_50hz = 1; |
| 2553 | 2501 | |
| 2554 | 2502 | pia_set_input_ca1(1,1); // signal is connected to IC4 CA1 |
| 2503 | |
| 2555 | 2504 | mame_timer_adjust(freq_timer, MAME_TIME_IN_HZ(100), 0, time_zero); |
| 2556 | 2505 | } |
| 2557 | 2506 | |
| 2558 | | static ADDRESS_MAP_START( mpu4_vid_map, ADDRESS_SPACE_PROGRAM, 16 ) |
| 2507 | static ADDRESS_MAP_START( mpu4_68k_map, ADDRESS_SPACE_PROGRAM, 16 ) |
| 2559 | 2508 | AM_RANGE(0x000000, 0x7fffff) AM_ROM |
| 2560 | 2509 | |
| 2561 | 2510 | // AM_RANGE(0x600000, 0x63ffff) AM_RAM? In expanded games (mating) |
| r788 | r789 | |
| 2587 | 2536 | ADDRESS_MAP_END |
| 2588 | 2537 | |
| 2589 | 2538 | /* TODO: Fix up MPU4 map*/ |
| 2590 | | static ADDRESS_MAP_START( mpu4_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 2539 | static ADDRESS_MAP_START( mpu4_6809_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 2591 | 2540 | AM_RANGE(0x0000, 0x07ff) AM_RAM AM_BASE(&generic_nvram) AM_SIZE(&generic_nvram_size) |
| 2592 | 2541 | |
| 2593 | 2542 | AM_RANGE(0x0800, 0x0800) AM_READWRITE(acia6850_0_stat_r, acia6850_0_ctrl_w) |
| r788 | r789 | |
| 2629 | 2578 | static ADDRESS_MAP_START( mod2_memmap, ADDRESS_SPACE_PROGRAM, 8 ) |
| 2630 | 2579 | AM_RANGE(0x0000, 0x07ff) AM_RAM AM_BASE(&generic_nvram) AM_SIZE(&generic_nvram_size) |
| 2631 | 2580 | |
| 2632 | | // AM_RANGE(0x0800, 0x0810) AM_WRITE(characteriser_w) |
| 2633 | | // AM_RANGE(0x0800, 0x0810) AM_READ( characteriser_r) |
| 2581 | AM_RANGE(0x0800, 0x0810) AM_WRITE(characteriser_w) |
| 2582 | AM_RANGE(0x0800, 0x0810) AM_READ( characteriser_r) |
| 2634 | 2583 | |
| 2635 | 2584 | AM_RANGE(0x0850, 0x0850) AM_WRITE(bankswitch_w) // write bank (rom page select) |
| 2636 | 2585 | |
| r788 | r789 | |
| 2781 | 2730 | } |
| 2782 | 2731 | } |
| 2783 | 2732 | |
| 2784 | | |
| 2785 | 2733 | static ADDRESS_MAP_START( dealem_memmap, ADDRESS_SPACE_PROGRAM, 8 ) |
| 2786 | 2734 | |
| 2787 | 2735 | AM_RANGE(0x0000, 0x07ff) AM_RAM AM_BASE(&generic_nvram) AM_SIZE(&generic_nvram_size) |
| r788 | r789 | |
| 2825 | 2773 | static MACHINE_DRIVER_START( mpu4_vid ) |
| 2826 | 2774 | |
| 2827 | 2775 | MDRV_CPU_ADD_TAG("main", M6809, MPU4_MASTER_CLOCK/4 ) |
| 2828 | | MDRV_CPU_PROGRAM_MAP(mpu4_map,0) |
| 2776 | MDRV_CPU_PROGRAM_MAP(mpu4_6809_map,0) |
| 2829 | 2777 | MDRV_CPU_PERIODIC_INT(gen_50hz, 50 ) |
| 2830 | 2778 | |
| 2831 | 2779 | MDRV_CPU_ADD_TAG("video", M68000, VIDEO_MASTER_CLOCK ) |
| 2832 | | MDRV_CPU_PROGRAM_MAP(mpu4_vid_map,0) |
| 2780 | MDRV_CPU_PROGRAM_MAP(mpu4_68k_map,0) |
| 2833 | 2781 | MDRV_CPU_VBLANK_INT(mpu4_vid_irq,1) |
| 2834 | 2782 | |
| 2835 | 2783 | MDRV_NVRAM_HANDLER(generic_0fill) // confirm |
| r788 | r789 | |
| 2850 | 2798 | |
| 2851 | 2799 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 2852 | 2800 | MDRV_SOUND_ADD_TAG("AY8913",AY8913, MPU4_MASTER_CLOCK/4) |
| 2853 | | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "filter1", 1.0) |
| 2854 | | MDRV_SOUND_ADD_TAG("filter1", FILTER_RC, 0) |
| 2855 | 2801 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) |
| 2856 | 2802 | |
| 2857 | 2803 | MDRV_SPEAKER_STANDARD_STEREO("left", "right")// Present on all video cards |
| r788 | r789 | |
| 2874 | 2820 | |
| 2875 | 2821 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 2876 | 2822 | MDRV_SOUND_ADD_TAG("AY8913",AY8913, MPU4_MASTER_CLOCK/4) |
| 2877 | | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "filter1", 1.0) |
| 2878 | | MDRV_SOUND_ADD_TAG("filter1", FILTER_RC, 0) |
| 2879 | 2823 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) |
| 2880 | 2824 | |
| 2881 | 2825 | MDRV_NVRAM_HANDLER(generic_0fill) // load/save nv RAM |
| r788 | r789 | |
| 2883 | 2827 | /* video hardware */ |
| 2884 | 2828 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) |
| 2885 | 2829 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2830 | |
| 2886 | 2831 | MDRV_SCREEN_SIZE(288, 34) |
| 2887 | 2832 | MDRV_SCREEN_VISIBLE_AREA(0, 288-1, 0, 34-1) |
| 2888 | 2833 | MDRV_SCREEN_REFRESH_RATE(50) |
| 2889 | | MDRV_VIDEO_START(mpu4) |
| 2890 | | MDRV_VIDEO_UPDATE(mpu4) |
| 2834 | |
| 2891 | 2835 | MDRV_PALETTE_LENGTH(16) |
| 2892 | 2836 | MDRV_COLORTABLE_LENGTH(16) |
| 2893 | 2837 | MDRV_PALETTE_INIT(mpu4) |
| 2894 | | |
| 2895 | 2838 | MACHINE_DRIVER_END |
| 2896 | 2839 | |
| 2897 | 2840 | // machine driver for zenitone dealem board ///////////////////////////////// |
| r788 | r789 | |
| 2900 | 2843 | |
| 2901 | 2844 | MDRV_MACHINE_START(mpu4mod2) // main mpu4 board initialisation |
| 2902 | 2845 | MDRV_MACHINE_RESET(mpu4_vid) |
| 2903 | | MDRV_CPU_ADD_TAG("main", M6809, MPU4_MASTER_CLOCK/4)// 6809 CPU |
| 2904 | | MDRV_CPU_PROGRAM_MAP(dealem_memmap,0) // setup read and write memorymap |
| 2846 | MDRV_CPU_ADD_TAG("main", M6809, MPU4_MASTER_CLOCK/4) // 6809 CPU |
| 2847 | MDRV_CPU_PROGRAM_MAP(dealem_memmap,0) // setup read and write memorymap |
| 2905 | 2848 | |
| 2906 | 2849 | MDRV_CPU_PERIODIC_INT(gen_50hz, 50) // generate 50 hz signal |
| 2907 | 2850 | |
| r788 | r789 | |
| 2911 | 2854 | |
| 2912 | 2855 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 2913 | 2856 | MDRV_SOUND_ADD_TAG("AY8913",AY8913, MPU4_MASTER_CLOCK/4) |
| 2914 | | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "filter1", 1.0) |
| 2915 | | MDRV_SOUND_ADD_TAG("filter1", FILTER_RC, 0) |
| 2916 | 2857 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) |
| 2917 | 2858 | |
| 2918 | 2859 | MDRV_NVRAM_HANDLER(generic_0fill) // load/save nv RAM |
| r788 | r789 | |
| 2933 | 2874 | MACHINE_DRIVER_END |
| 2934 | 2875 | |
| 2935 | 2876 | const UINT8 MPU4_chr_lut[72]= { 0x00,0x1A,0x04,0x10,0x18,0x0F,0x13,0x1B, |
| 2936 | | 0x03,0x07,0x17,0x1D,0x36,0x35,0x2B,0x28, |
| 2937 | | 0x39,0x21,0x22,0x25,0x2C,0x29,0x31,0x34, |
| 2938 | | 0x0A,0x1F,0x06,0x0E,0x1C,0x12,0x1E,0x0D, |
| 2939 | | 0x14,0x0A,0x19,0x15,0x06,0x0F,0x08,0x1B, |
| 2940 | | 0x1E,0x04,0x01,0x0C,0x18,0x1A,0x11,0x0B, |
| 2941 | | 0x03,0x17,0x10,0x1D,0x0E,0x07,0x12,0x09, |
| 2942 | | 0x0D,0x1F,0x16,0x05,0x13,0x1C,0x02,0x00, |
| 2943 | | 0x00,0x01,0x04,0x09,0x10,0x19,0x24,0x31}; |
| 2877 | 0x03,0x07,0x17,0x1D,0x36,0x35,0x2B,0x28, |
| 2878 | 0x39,0x21,0x22,0x25,0x2C,0x29,0x31,0x34, |
| 2879 | 0x0A,0x1F,0x06,0x0E,0x1C,0x12,0x1E,0x0D, |
| 2880 | 0x14,0x0A,0x19,0x15,0x06,0x0F,0x08,0x1B, |
| 2881 | 0x1E,0x04,0x01,0x0C,0x18,0x1A,0x11,0x0B, |
| 2882 | 0x03,0x17,0x10,0x1D,0x0E,0x07,0x12,0x09, |
| 2883 | 0x0D,0x1F,0x16,0x05,0x13,0x1C,0x02,0x00, |
| 2884 | 0x00,0x01,0x04,0x09,0x10,0x19,0x24,0x31}; |
| 2944 | 2885 | |
| 2945 | 2886 | DRIVER_INIT (crmaze) |
| 2946 | 2887 | { |
| r788 | r789 | |
| 2980 | 2921 | } |
| 2981 | 2922 | } |
| 2982 | 2923 | |
| 2924 | DRIVER_INIT (connect4) |
| 2925 | { |
| 2926 | led_extend=1; |
| 2927 | } |
| 2928 | |
| 2983 | 2929 | /* |
| 2984 | 2930 | Barcrest released two different games called "The Crystal Maze". |
| 2985 | 2931 | One is a non-video AWP, and uses only the MPU4 card, and the other SWP is the one we're interested in running |
| r788 | r789 | |
| 3157 | 3103 | ROM_LOAD( "zenndlem.u10", 0x000, 0x104, CRC(e3103c05) SHA1(91b7be75c5fb37025039ab54b484e46a033969b5) ) |
| 3158 | 3104 | ROM_END |
| 3159 | 3105 | |
| 3160 | | GAMEL(1989?,connect4,0, mpu4mod2, connect4, 0, 0, "Dolbeck Systems", "Connect 4", GAME_IMPERFECT_GRAPHICS|GAME_NO_SOUND,layout_connect4 ) |
| 3161 | | GAME( 199?, bctvidbs,0, mpu4mod2, mpu4, 0, ROT0, "Barcrest", "MPU4 Video Firmware", GAME_IS_BIOS_ROOT ) |
| 3106 | GAMEL(1989?,connect4,0, mpu4mod2, connect4, connect4, 0, "Dolbeck Systems", "Connect 4", GAME_IMPERFECT_GRAPHICS,layout_connect4 ) |
| 3107 | GAME( 199?, bctvidbs,0, mpu4mod2, mpu4, 0, ROT0, "Barcrest", "MPU4 Video Firmware", GAME_IS_BIOS_ROOT ) |
| 3162 | 3108 | |
| 3163 | 3109 | //Deal 'Em was a conversion kit designed to make early MPU4 machines into video games by replacing the top glass |
| 3164 | 3110 | //and reel assembly with this kit and a supplied monitor. |
| 3165 | 3111 | //The real Deal 'Em ran on Summit Coin hardware, and was made by someone else. |
| 3166 | 3112 | //A further different release was made in 2000, running on the Barcrest MPU4 Video, rather than this one. |
| 3167 | | GAME( 1987, dealem,0, dealem, dealem, 0, ROT0, "Zenitone", "Deal 'Em (MPU4 Conversion Kit)", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS|GAME_WRONG_COLORS ) |
| 3113 | GAME( 1987, dealem, 0, dealem, dealem, 0, ROT0, "Zenitone", "Deal 'Em (MPU4 Conversion Kit)", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS|GAME_WRONG_COLORS ) |
| 3168 | 3114 | |
| 3169 | 3115 | GAME( 1994?,crmaze, bctvidbs,mpu4_vid, crmaze, crmaze,ROT0, "Barcrest", "The Crystal Maze: Team Challenge (SWP)", GAME_NOT_WORKING|GAME_NO_SOUND ) |
| 3170 | 3116 | GAME( 1992?,crmazea, crmaze, mpu4_vid, crmaze, crmaze,ROT0, "Barcrest", "The Crystal Maze (AMLD version SWP)", GAME_NOT_WORKING|GAME_NO_SOUND ) |
src/mame/drivers/vamphalf.c
| r788 | r789 | |
| 803 | 803 | ROM1/2 - ST M27C4001 4MBit DIP32 EPROM |
| 804 | 804 | */ |
| 805 | 805 | |
| 806 | ROM_START( suplup ) /* version 4.0 / 990518 - also has 'Puzzle Bang Bang' title but it can't be selected */ |
| 807 | ROM_REGION16_BE( 0x100000, REGION_USER1, ROMREGION_ERASE00 ) /* Hyperstone CPU Code */ |
| 808 | ROM_LOAD( "suplup-rom1.bin", 0x00000, 0x80000, CRC(61fb2dbe) SHA1(21cb8f571b2479de6779b877b656d1ffe5b3516f) ) |
| 809 | ROM_LOAD( "suplup-rom2.bin", 0x80000, 0x80000, CRC(0c176c57) SHA1(f103a1afc528c01cbc18639273ab797fb9afacb1) ) |
| 806 | 810 | |
| 811 | ROM_REGION( 0x800000, REGION_GFX1, ROMREGION_DISPOSE ) /* 16x16x8 Sprites */ |
| 812 | ROM_LOAD32_WORD( "suplup-roml00.bin", 0x000000, 0x200000, CRC(7848e183) SHA1(1db8f0ea8f73f42824423d382b37b4d75fa3e54c) ) |
| 813 | ROM_LOAD32_WORD( "suplup-romu00.bin", 0x000002, 0x200000, CRC(13e3ab7f) SHA1(d5b6b15ca5aef2e2788d2b81e0418062f42bf2f2) ) |
| 814 | ROM_LOAD32_WORD( "suplup-roml01.bin", 0x400000, 0x200000, CRC(15769f55) SHA1(2c13e8da2682ccc7878218aaebe3c3c67d163fd2) ) |
| 815 | ROM_LOAD32_WORD( "suplup-romu01.bin", 0x400002, 0x200000, CRC(6687bc6f) SHA1(cf842dfb2bcdfda0acc0859985bdba91d4a80434) ) |
| 816 | |
| 817 | ROM_REGION( 0x40000, REGION_SOUND1, 0 ) /* Oki Samples */ |
| 818 | ROM_LOAD( "vrom1.bin", 0x00000, 0x40000, CRC(34a56987) SHA1(4d8983648a7f0acf43ff4c9c8aa6c8640ee2bbfe) ) |
| 819 | ROM_END |
| 820 | |
| 807 | 821 | ROM_START( luplup ) /* version 3.0 / 990128 */ |
| 808 | 822 | ROM_REGION16_BE( 0x100000, REGION_USER1, ROMREGION_ERASE00 ) /* Hyperstone CPU Code */ |
| 809 | 823 | ROM_LOAD( "luplup-rom1.v30", 0x00000, 0x80000, CRC(9ea67f87) SHA1(73d16c056a8d64743181069a01559a43fee529a3) ) |
| r788 | r789 | |
| 839 | 853 | ROM_END |
| 840 | 854 | |
| 841 | 855 | |
| 842 | | ROM_START( puzlbang ) /* version 2.8 / 990106 */ |
| 856 | ROM_START( puzlbang ) /* version 2.8 / 990106 - Korea only, cannot select title or language */ |
| 843 | 857 | ROM_REGION16_BE( 0x100000, REGION_USER1, ROMREGION_ERASE00 ) /* Hyperstone CPU Code */ |
| 844 | 858 | ROM_LOAD( "pbb-rom1.v28", 0x00000, 0x80000, CRC(fd21c5ff) SHA1(bc6314bbb2495c140788025153c893d5fd00bdc1) ) |
| 845 | 859 | ROM_LOAD( "pbb-rom2.v28", 0x80000, 0x80000, CRC(490ecaeb) SHA1(2b0f25e3d681ddf95b3c65754900c046b5b50b09) ) |
| r788 | r789 | |
| 855 | 869 | ROM_END |
| 856 | 870 | |
| 857 | 871 | |
| 858 | | ROM_START( suplup ) |
| 859 | | ROM_REGION16_BE( 0x100000, REGION_USER1, ROMREGION_ERASE00 ) /* Hyperstone CPU Code */ |
| 860 | | ROM_LOAD( "suplup-rom1.bin", 0x00000, 0x80000, CRC(61fb2dbe) SHA1(21cb8f571b2479de6779b877b656d1ffe5b3516f) ) |
| 861 | | ROM_LOAD( "suplup-rom2.bin", 0x80000, 0x80000, CRC(0c176c57) SHA1(f103a1afc528c01cbc18639273ab797fb9afacb1) ) |
| 862 | | |
| 863 | | ROM_REGION( 0x800000, REGION_GFX1, ROMREGION_DISPOSE ) /* 16x16x8 Sprites */ |
| 864 | | ROM_LOAD32_WORD( "suplup-roml00.bin", 0x000000, 0x200000, CRC(7848e183) SHA1(1db8f0ea8f73f42824423d382b37b4d75fa3e54c) ) |
| 865 | | ROM_LOAD32_WORD( "suplup-romu00.bin", 0x000002, 0x200000, CRC(13e3ab7f) SHA1(d5b6b15ca5aef2e2788d2b81e0418062f42bf2f2) ) |
| 866 | | ROM_LOAD32_WORD( "suplup-roml01.bin", 0x400000, 0x200000, CRC(15769f55) SHA1(2c13e8da2682ccc7878218aaebe3c3c67d163fd2) ) |
| 867 | | ROM_LOAD32_WORD( "suplup-romu01.bin", 0x400002, 0x200000, CRC(6687bc6f) SHA1(cf842dfb2bcdfda0acc0859985bdba91d4a80434) ) |
| 868 | | |
| 869 | | ROM_REGION( 0x40000, REGION_SOUND1, 0 ) /* Oki Samples */ |
| 870 | | ROM_LOAD( "vrom1.bin", 0x00000, 0x40000, CRC(34a56987) SHA1(4d8983648a7f0acf43ff4c9c8aa6c8640ee2bbfe) ) |
| 871 | | ROM_END |
| 872 | | |
| 873 | 872 | /* |
| 874 | 873 | |
| 875 | 874 | Wyvern Wings (c) 2001 SemiCom, Game Vision License |
| 876 | 875 | |
| 877 | | |
| 878 | 876 | CPU: Hyperstone E1-32T |
| 879 | 877 | Video: 2 QuickLogic QL12x16B-XPL84 FPGA |
| 880 | 878 | Sound: AdMOS QDSP1000 with QDSP QS1001A sample rom |
| r788 | r789 | |
| 918 | 916 | +------------------------------------+----+------------------------+ |
| 919 | 917 | |
| 920 | 918 | S1 is the setup button |
| 921 | | S2 is a reset button |
| 919 | S2 is the reset button |
| 922 | 920 | |
| 923 | 921 | ROMH & ROML are all MX 29F1610MC-16 flash roms |
| 924 | 922 | u15A is a MX 29F1610MC-16 flash rom |
| r788 | r789 | |
| 994 | 992 | DRAM are KM416C1204AJ-6 |
| 995 | 993 | MEM are MCM6206BAEJ15 |
| 996 | 994 | |
| 995 | SW1 is the reset button |
| 996 | SW2 is the setup button |
| 997 | |
| 997 | 998 | */ |
| 998 | 999 | |
| 999 | 1000 | ROM_START( finalgdr ) |
| r788 | r789 | |
| 1002 | 1003 | ROM_LOAD( "rom1", 0x080000, 0x080000, CRC(45815931) SHA1(80ba7a366994e40a1f520ea18fad82e6b068b279) ) |
| 1003 | 1004 | |
| 1004 | 1005 | ROM_REGION( 0x800000, REGION_GFX1, ROMREGION_DISPOSE ) /* gfx data */ |
| 1005 | | ROM_LOAD32_WORD( "roml00", 0x000000, 0x200000, NO_DUMP ) |
| 1006 | | ROM_LOAD32_WORD( "romh00", 0x000002, 0x200000, NO_DUMP ) |
| 1006 | ROM_LOAD32_WORD( "roml00", 0x000000, 0x200000, CRC(8334459d) SHA1(70ad560dada8aa8ce192e5307bd805744b82fcfe) ) |
| 1007 | ROM_LOAD32_WORD( "romh00", 0x000002, 0x200000, CRC(f28578a5) SHA1(a5c7b17aff101f1f4f52657d0567a6c9d12a178d) ) |
| 1007 | 1008 | /* roml01 empty */ |
| 1008 | 1009 | /* romh01 empty */ |
| 1009 | 1010 | |
| r788 | r789 | |
| 1217 | 1218 | } |
| 1218 | 1219 | |
| 1219 | 1220 | GAME( 1999, coolmini, 0, coolmini, common, coolmini, ROT0, "SemiCom", "Cool Minigame Collection", 0 ) |
| 1220 | | GAME( 1999, suplup, 0, suplup, common, suplup, ROT0, "Omega System", "Super Lup Lup Puzzle / Zhuan Zhuan Puzzle (version 4.0 / 990518)" , 0) // also has 'Puzzle Bang Bang' title but it can't be selected |
| 1221 | GAME( 1999, suplup, 0, suplup, common, suplup, ROT0, "Omega System", "Super Lup Lup Puzzle / Zhuan Zhuan Puzzle (version 4.0 / 990518)" , 0) |
| 1221 | 1222 | GAME( 1999, luplup, suplup, suplup, common, luplup, ROT0, "Omega System", "Lup Lup Puzzle / Zhuan Zhuan Puzzle (version 3.0 / 990128)", 0 ) |
| 1222 | 1223 | GAME( 1999, luplup29, suplup, suplup, common, luplup29, ROT0, "Omega System", "Lup Lup Puzzle / Zhuan Zhuan Puzzle (version 2.9 / 990108)", 0 ) |
| 1223 | | GAME( 1999, puzlbang, suplup, suplup, common, puzlbang, ROT0, "Omega System", "Puzzle Bang Bang (version 2.8 / 990106)", 0 ) // Korean only |
| 1224 | GAME( 1999, puzlbang, suplup, suplup, common, puzlbang, ROT0, "Omega System", "Puzzle Bang Bang (version 2.8 / 990106)", 0 ) |
| 1224 | 1225 | GAME( 1999, vamphalf, 0, vamphalf, common, vamphalf, ROT0, "Danbi & F2 System", "Vamp 1/2 (Korea version)", 0 ) |
| 1225 | 1226 | GAME( 2000, misncrft, 0, misncrft, common, misncrft, ROT90, "Sun", "Mission Craft (version 2.4)", GAME_NO_SOUND ) |
| 1226 | 1227 | GAME( 2001, finalgdr, 0, finalgdr, common, finalgdr, ROT0, "SemiCom", "Final Godori", GAME_IMPERFECT_SOUND | GAME_NOT_WORKING ) |
src/mame/drivers/m72.c
| r788 | r789 | |
| 2568 | 2568 | |
| 2569 | 2569 | ROM_REGION( 0x80000, REGION_GFX1, ROMREGION_DISPOSE ) /* Roms located on the M72-ROM-C rom board */ |
| 2570 | 2570 | ROM_LOAD( "rt_r-00.1h", 0x00000, 0x10000, CRC(dad53bc0) SHA1(1e3bc498861946278a0b1fe24259f5d224e265d7) ) /* sprites */ |
| 2571 | | ROM_LOAD( "rt_r-01.1j", 0x10000, 0x10000, CRC(b28d1a60) SHA1(26d0b5a381f5b462a223cb474067c7b5e67706df) ) |
| 2571 | ROM_LOAD( "rt_r-01.1j", 0x10000, 0x08000, CRC(5e441e7f) SHA1(6741eb7f2d9d985b5a89eefc73ea44c3e38de6f7) ) |
| 2572 | ROM_RELOAD( 0x18000, 0x08000 ) |
| 2572 | 2573 | ROM_LOAD( "rt_r-10.1k", 0x20000, 0x10000, CRC(d6a66298) SHA1(d2873d05aa3b257e7699c188880ac3daad672fa5) ) |
| 2573 | | ROM_LOAD( "rt_r-11.1l", 0x30000, 0x10000, CRC(bb182f1a) SHA1(93b24bb0d6abd5c42c84a041c79b1dcea568e443) ) |
| 2574 | ROM_LOAD( "rt_r-11.1l", 0x30000, 0x08000, CRC(791df4f8) SHA1(5239a97222212ac9c019177771cb2b5096b7bc17) ) |
| 2575 | ROM_RELOAD( 0x38000, 0x08000 ) |
| 2574 | 2576 | ROM_LOAD( "rt_r-20.3h", 0x40000, 0x10000, CRC(fc247c8a) SHA1(01cf0a60f47fa5e2ed430a3f075e69e6cb762a48) ) |
| 2575 | | ROM_LOAD( "rt_r-21.3j", 0x50000, 0x10000, CRC(5b41f5f3) SHA1(8f47a77fb6513b8f611671d34721e33d284dc035) ) |
| 2577 | ROM_LOAD( "rt_r-21.3j", 0x50000, 0x08000, CRC(ed793841) SHA1(7e55a9a11fcd989db39bce6be48821b747c7d97f) ) |
| 2578 | ROM_RELOAD( 0x58000, 0x08000 ) |
| 2576 | 2579 | ROM_LOAD( "rt_r-30.3k", 0x60000, 0x10000, CRC(eb02a1cb) SHA1(60a394ab53afdcbbf9e88083b8dbe8c897170d77) ) |
| 2577 | | ROM_LOAD( "rt_r-31.3l", 0x70000, 0x10000, CRC(2bec510a) SHA1(3455e72095832135ac006944a1209e720ec5c8bf) ) |
| 2580 | ROM_LOAD( "rt_r-31.3l", 0x70000, 0x08000, CRC(8558355d) SHA1(b5467d1f22f6e5f90c5d8a8ac2d55974f287d589) ) |
| 2581 | ROM_RELOAD( 0x78000, 0x08000 ) |
| 2578 | 2582 | |
| 2579 | 2583 | ROM_REGION( 0x20000, REGION_GFX2, ROMREGION_DISPOSE ) /* Roms located on the M72-B-D rom board */ |
| 2580 | 2584 | ROM_LOAD( "rt_b-a0.3c", 0x00000, 0x08000, CRC(4e212fb0) SHA1(687061ecade2ebd0bd1343c9c4a831791853f79c) ) /* tiles #1 */ |
| r788 | r789 | |
| 2600 | 2604 | |
| 2601 | 2605 | ROM_REGION( 0x80000, REGION_GFX1, ROMREGION_DISPOSE ) /* Roms located on the M72-ROM-C rom board */ |
| 2602 | 2606 | ROM_LOAD( "rt_r-00.1h", 0x00000, 0x10000, CRC(dad53bc0) SHA1(1e3bc498861946278a0b1fe24259f5d224e265d7) ) /* sprites */ |
| 2603 | | ROM_LOAD( "rt_r-01.1j", 0x10000, 0x10000, CRC(b28d1a60) SHA1(26d0b5a381f5b462a223cb474067c7b5e67706df) ) |
| 2607 | ROM_LOAD( "rt_r-01.1j", 0x10000, 0x08000, CRC(5e441e7f) SHA1(6741eb7f2d9d985b5a89eefc73ea44c3e38de6f7) ) |
| 2608 | ROM_RELOAD( 0x18000, 0x08000 ) |
| 2604 | 2609 | ROM_LOAD( "rt_r-10.1k", 0x20000, 0x10000, CRC(d6a66298) SHA1(d2873d05aa3b257e7699c188880ac3daad672fa5) ) |
| 2605 | | ROM_LOAD( "rt_r-11.1l", 0x30000, 0x10000, CRC(bb182f1a) SHA1(93b24bb0d6abd5c42c84a041c79b1dcea568e443) ) |
| 2610 | ROM_LOAD( "rt_r-11.1l", 0x30000, 0x08000, CRC(791df4f8) SHA1(5239a97222212ac9c019177771cb2b5096b7bc17) ) |
| 2611 | ROM_RELOAD( 0x38000, 0x08000 ) |
| 2606 | 2612 | ROM_LOAD( "rt_r-20.3h", 0x40000, 0x10000, CRC(fc247c8a) SHA1(01cf0a60f47fa5e2ed430a3f075e69e6cb762a48) ) |
| 2607 | | ROM_LOAD( "rt_r-21.3j", 0x50000, 0x10000, CRC(5b41f5f3) SHA1(8f47a77fb6513b8f611671d34721e33d284dc035) ) |
| 2613 | ROM_LOAD( "rt_r-21.3j", 0x50000, 0x08000, CRC(ed793841) SHA1(7e55a9a11fcd989db39bce6be48821b747c7d97f) ) |
| 2614 | ROM_RELOAD( 0x58000, 0x08000 ) |
| 2608 | 2615 | ROM_LOAD( "rt_r-30.3k", 0x60000, 0x10000, CRC(eb02a1cb) SHA1(60a394ab53afdcbbf9e88083b8dbe8c897170d77) ) |
| 2609 | | ROM_LOAD( "rt_r-31.3l", 0x70000, 0x10000, CRC(2bec510a) SHA1(3455e72095832135ac006944a1209e720ec5c8bf) ) |
| 2616 | ROM_LOAD( "rt_r-31.3l", 0x70000, 0x08000, CRC(8558355d) SHA1(b5467d1f22f6e5f90c5d8a8ac2d55974f287d589) ) |
| 2617 | ROM_RELOAD( 0x78000, 0x08000 ) |
| 2610 | 2618 | |
| 2611 | 2619 | ROM_REGION( 0x20000, REGION_GFX2, ROMREGION_DISPOSE ) /* Roms located on the M72-B-D rom board */ |
| 2612 | 2620 | ROM_LOAD( "rt_b-a0.3c", 0x00000, 0x08000, CRC(4e212fb0) SHA1(687061ecade2ebd0bd1343c9c4a831791853f79c) ) /* tiles #1 */ |
| r788 | r789 | |
| 2632 | 2640 | |
| 2633 | 2641 | ROM_REGION( 0x80000, REGION_GFX1, ROMREGION_DISPOSE ) /* Roms located on the M72-ROM-C rom board */ |
| 2634 | 2642 | ROM_LOAD( "rt_r-00.1h", 0x00000, 0x10000, CRC(dad53bc0) SHA1(1e3bc498861946278a0b1fe24259f5d224e265d7) ) /* sprites */ |
| 2635 | | ROM_LOAD( "rt_r-01.1j", 0x10000, 0x10000, CRC(b28d1a60) SHA1(26d0b5a381f5b462a223cb474067c7b5e67706df) ) |
| 2643 | ROM_LOAD( "rt_r-01.1j", 0x10000, 0x08000, CRC(5e441e7f) SHA1(6741eb7f2d9d985b5a89eefc73ea44c3e38de6f7) ) |
| 2644 | ROM_RELOAD( 0x18000, 0x08000 ) |
| 2636 | 2645 | ROM_LOAD( "rt_r-10.1k", 0x20000, 0x10000, CRC(d6a66298) SHA1(d2873d05aa3b257e7699c188880ac3daad672fa5) ) |
| 2637 | | ROM_LOAD( "rt_r-11.1l", 0x30000, 0x10000, CRC(bb182f1a) SHA1(93b24bb0d6abd5c42c84a041c79b1dcea568e443) ) |
| 2646 | ROM_LOAD( "rt_r-11.1l", 0x30000, 0x08000, CRC(791df4f8) SHA1(5239a97222212ac9c019177771cb2b5096b7bc17) ) |
| 2647 | ROM_RELOAD( 0x38000, 0x08000 ) |
| 2638 | 2648 | ROM_LOAD( "rt_r-20.3h", 0x40000, 0x10000, CRC(fc247c8a) SHA1(01cf0a60f47fa5e2ed430a3f075e69e6cb762a48) ) |
| 2639 | | ROM_LOAD( "rt_r-21.3j", 0x50000, 0x10000, CRC(5b41f5f3) SHA1(8f47a77fb6513b8f611671d34721e33d284dc035) ) |
| 2649 | ROM_LOAD( "rt_r-21.3j", 0x50000, 0x08000, CRC(ed793841) SHA1(7e55a9a11fcd989db39bce6be48821b747c7d97f) ) |
| 2650 | ROM_RELOAD( 0x58000, 0x08000 ) |
| 2640 | 2651 | ROM_LOAD( "rt_r-30.3k", 0x60000, 0x10000, CRC(eb02a1cb) SHA1(60a394ab53afdcbbf9e88083b8dbe8c897170d77) ) |
| 2641 | | ROM_LOAD( "rt_r-31.3l", 0x70000, 0x10000, CRC(2bec510a) SHA1(3455e72095832135ac006944a1209e720ec5c8bf) ) |
| 2652 | ROM_LOAD( "rt_r-31.3l", 0x70000, 0x08000, CRC(8558355d) SHA1(b5467d1f22f6e5f90c5d8a8ac2d55974f287d589) ) |
| 2653 | ROM_RELOAD( 0x78000, 0x08000 ) |
| 2642 | 2654 | |
| 2643 | 2655 | ROM_REGION( 0x20000, REGION_GFX2, ROMREGION_DISPOSE ) /* Roms located on the M72-B-D rom board */ |
| 2644 | 2656 | ROM_LOAD( "rt_b-a0.3c", 0x00000, 0x08000, CRC(4e212fb0) SHA1(687061ecade2ebd0bd1343c9c4a831791853f79c) ) /* tiles #1 */ |
| r788 | r789 | |
| 2665 | 2677 | ROM_REGION( 0x80000, REGION_GFX1, ROMREGION_DISPOSE ) /* Roms located on the M72-ROM-C rom board */ |
| 2666 | 2678 | ROM_LOAD( "rt_r-00.1h", 0x00000, 0x10000, CRC(dad53bc0) SHA1(1e3bc498861946278a0b1fe24259f5d224e265d7) ) /* sprites */ |
| 2667 | 2679 | ROM_LOAD( "rt_r-01.1j", 0x10000, 0x08000, CRC(5e441e7f) SHA1(6741eb7f2d9d985b5a89eefc73ea44c3e38de6f7) ) |
| 2668 | | ROM_RELOAD( 0x08000, 0x08000 ) |
| 2680 | ROM_RELOAD( 0x18000, 0x08000 ) |
| 2669 | 2681 | ROM_LOAD( "rt_r-10.1k", 0x20000, 0x10000, CRC(d6a66298) SHA1(d2873d05aa3b257e7699c188880ac3daad672fa5) ) |
| 2670 | 2682 | ROM_LOAD( "rt_r-11.1l", 0x30000, 0x08000, CRC(791df4f8) SHA1(5239a97222212ac9c019177771cb2b5096b7bc17) ) |
| 2671 | | ROM_RELOAD( 0x08000, 0x08000 ) |
| 2683 | ROM_RELOAD( 0x38000, 0x08000 ) |
| 2672 | 2684 | ROM_LOAD( "rt_r-20.3h", 0x40000, 0x10000, CRC(fc247c8a) SHA1(01cf0a60f47fa5e2ed430a3f075e69e6cb762a48) ) |
| 2673 | 2685 | ROM_LOAD( "rt_r-21.3j", 0x50000, 0x08000, CRC(ed793841) SHA1(7e55a9a11fcd989db39bce6be48821b747c7d97f) ) |
| 2674 | | ROM_RELOAD( 0x08000, 0x08000 ) |
| 2686 | ROM_RELOAD( 0x58000, 0x08000 ) |
| 2675 | 2687 | ROM_LOAD( "rt_r-30.3k", 0x60000, 0x10000, CRC(eb02a1cb) SHA1(60a394ab53afdcbbf9e88083b8dbe8c897170d77) ) |
| 2676 | 2688 | ROM_LOAD( "rt_r-31.3l", 0x70000, 0x08000, CRC(8558355d) SHA1(b5467d1f22f6e5f90c5d8a8ac2d55974f287d589) ) |
| 2677 | | ROM_RELOAD( 0x08000, 0x08000 ) |
| 2689 | ROM_RELOAD( 0x78000, 0x08000 ) |
| 2678 | 2690 | |
| 2679 | 2691 | ROM_REGION( 0x20000, REGION_GFX2, ROMREGION_DISPOSE ) /* Roms located on the M72-B-D rom board */ |
| 2680 | 2692 | ROM_LOAD( "rt_b-a0.3c", 0x00000, 0x08000, CRC(4e212fb0) SHA1(687061ecade2ebd0bd1343c9c4a831791853f79c) ) /* tiles #1 */ |
| r788 | r789 | |
| 2690 | 2702 | |
| 2691 | 2703 | ROM_REGION( 0x0200, REGION_PROMS, 0 ) /* Located on M72-A-C CPU/Sound board */ |
| 2692 | 2704 | ROM_LOAD( "m72_a-8l-.ic66", 0x0000, 0x0100, CRC(b460c438) SHA1(00e20cf754b6fd5138ee4d2f6ec28dff9e292fe6) ) /* TBP24S10 */ |
| 2693 | | ROM_LOAD( "m72_a-9l-.ic75", 0x0000, 0x0100, CRC(a4f2c4bc) SHA1(f13b0a4b52dcc6704063b676f09d83dcba170133) ) /* TBP24S10 */ |
| 2705 | ROM_LOAD( "m72_a-9l-.ic75", 0x0100, 0x0100, CRC(a4f2c4bc) SHA1(f13b0a4b52dcc6704063b676f09d83dcba170133) ) /* TBP24S10 */ |
| 2694 | 2706 | |
| 2695 | | ROM_REGION( 0x0003, REGION_PLDS, 0 ) |
| 2696 | | /* Located on M72-ROM-C rom board */ |
| 2697 | | ROM_LOAD( "m72_r-3a-.bin", 0x0000, 0x0001, NO_DUMP ) /* PAL16L8 at 3A */ |
| 2698 | | /* Located on M72-A-C CPU/Sound board */ |
| 2707 | ROM_REGION( 0x0003, REGION_PLDS, 0 ) |
| 2708 | /* Located on M72-ROM-C rom board */ |
| 2709 | ROM_LOAD( "m72_r-3a-.bin", 0x0000, 0x0001, NO_DUMP ) /* PAL16L8 at 3A */ |
| 2710 | /* Located on M72-A-C CPU/Sound board */ |
| 2699 | 2711 | ROM_LOAD( "m72_a-3d-.bin", 0x0000, 0x0001, NO_DUMP ) /* PAL16L8 at IC11 */ |
| 2700 | 2712 | ROM_LOAD( "m72_a-4d-.bin", 0x0000, 0x0001, NO_DUMP ) /* PAL16L8 at IC19 */ |
| 2701 | 2713 | ROM_END |
src/mame/drivers/tecmo16.c
| r788 | r789 | |
| 169 | 169 | |
| 170 | 170 | INPUT_PORTS_START( fstarfrc ) |
| 171 | 171 | PORT_START /* DIP SW 1 */ |
| 172 | | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coin_A ) ) |
| 172 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW1:1,2") |
| 173 | 173 | PORT_DIPSETTING( 0x03, DEF_STR( 1C_1C ) ) |
| 174 | 174 | PORT_DIPSETTING( 0x02, DEF_STR( 1C_2C ) ) |
| 175 | 175 | PORT_DIPSETTING( 0x01, DEF_STR( 1C_3C ) ) |
| 176 | 176 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_4C ) ) |
| 177 | | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Coin_B ) ) |
| 177 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SW1:3,4") |
| 178 | 178 | PORT_DIPSETTING( 0x00, DEF_STR( 4C_1C ) ) |
| 179 | 179 | PORT_DIPSETTING( 0x04, DEF_STR( 3C_1C ) ) |
| 180 | 180 | PORT_DIPSETTING( 0x08, DEF_STR( 2C_1C ) ) |
| 181 | 181 | PORT_DIPSETTING( 0x0c, DEF_STR( 1C_1C ) ) |
| 182 | | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Flip_Screen ) ) |
| 182 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW1:5") |
| 183 | 183 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) |
| 184 | 184 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 185 | | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Demo_Sounds ) ) |
| 185 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW1:6") |
| 186 | 186 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 187 | 187 | PORT_DIPSETTING( 0x20, DEF_STR( On ) ) |
| 188 | | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Allow_Continue ) ) |
| 188 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION("SW1:7") |
| 189 | 189 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) |
| 190 | 190 | PORT_DIPSETTING( 0x40, DEF_STR( Yes ) ) |
| 191 | | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Free_Play ) ) //flagged as "unused" in the manual |
| 191 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Free_Play ) ) PORT_DIPLOCATION("SW1:8") // flagged as "unused" in the manual |
| 192 | 192 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 193 | 193 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 194 | 194 | |
| 195 | 195 | PORT_START /* DIP SW 2 */ |
| 196 | | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Lives ) ) |
| 196 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW2:1,2") |
| 197 | 197 | PORT_DIPSETTING( 0x00, "2" ) |
| 198 | 198 | PORT_DIPSETTING( 0x03, "3" ) |
| 199 | 199 | PORT_DIPSETTING( 0x02, "4" ) |
| 200 | 200 | PORT_DIPSETTING( 0x01, "5" ) |
| 201 | | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Difficulty ) ) //enemy shot speed |
| 202 | | PORT_DIPSETTING( 0x04, DEF_STR( Easy ) ) |
| 201 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:3,4") // enemy shot speed |
| 202 | PORT_DIPSETTING( 0x08, DEF_STR( Easy ) ) |
| 203 | 203 | PORT_DIPSETTING( 0x0c, DEF_STR( Medium ) ) |
| 204 | | PORT_DIPSETTING( 0x08, DEF_STR( Hard ) ) |
| 204 | PORT_DIPSETTING( 0x04, DEF_STR( Hard ) ) |
| 205 | 205 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) |
| 206 | | PORT_DIPNAME( 0x30, 0x30, "Level Up Speed" ) //rate of power-up |
| 206 | PORT_DIPNAME( 0x30, 0x30, "Level Up Speed" ) PORT_DIPLOCATION("SW2:5,6") // rate of power-up |
| 207 | 207 | PORT_DIPSETTING( 0x30, "Fast" ) |
| 208 | 208 | PORT_DIPSETTING( 0x20, "Fastest" ) |
| 209 | 209 | PORT_DIPSETTING( 0x10, "Slow" ) |
| 210 | 210 | PORT_DIPSETTING( 0x00, "Slowest" ) |
| 211 | | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Bonus_Life )) |
| 211 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Bonus_Life )) PORT_DIPLOCATION("SW2:7,8") |
| 212 | 212 | PORT_DIPSETTING( 0xc0, "200000,1000000" ) |
| 213 | 213 | PORT_DIPSETTING( 0x80, "220000,1200000" ) |
| 214 | 214 | PORT_DIPSETTING( 0x40, "240000,1400000" ) |
| 215 | | PORT_DIPSETTING( 0x00, "every 500000,once at highest score" ) //beating the hi-score gives you an extra life |
| 215 | PORT_DIPSETTING( 0x00, "every 500000,once at highest score" ) // beating the hi-score gives you an extra life |
| 216 | 216 | |
| 217 | 217 | PORT_START |
| 218 | 218 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) |
| r788 | r789 | |
| 235 | 235 | |
| 236 | 236 | INPUT_PORTS_START( ginkun ) |
| 237 | 237 | PORT_START /* DIP SW 1 */ |
| 238 | | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coin_A ) ) |
| 238 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW1:8,7") |
| 239 | 239 | PORT_DIPSETTING( 0x03, DEF_STR( 1C_1C ) ) |
| 240 | 240 | PORT_DIPSETTING( 0x02, DEF_STR( 1C_2C ) ) |
| 241 | 241 | PORT_DIPSETTING( 0x01, DEF_STR( 1C_3C ) ) |
| 242 | 242 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_4C ) ) |
| 243 | | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Coin_B ) ) |
| 243 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SW1:6,5") |
| 244 | 244 | PORT_DIPSETTING( 0x00, DEF_STR( 4C_1C ) ) |
| 245 | 245 | PORT_DIPSETTING( 0x04, DEF_STR( 3C_1C ) ) |
| 246 | 246 | PORT_DIPSETTING( 0x08, DEF_STR( 2C_1C ) ) |
| 247 | 247 | PORT_DIPSETTING( 0x0c, DEF_STR( 1C_1C ) ) |
| 248 | | PORT_DIPNAME( 0x10, 0x10, "Continue Plus 1up" ) |
| 248 | PORT_DIPNAME( 0x10, 0x10, "Continue Plus 1up" ) PORT_DIPLOCATION("SW1:4") |
| 249 | 249 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) |
| 250 | 250 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 251 | | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unused ) ) |
| 251 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unused ) ) PORT_DIPLOCATION("SW1:3") |
| 252 | 252 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) |
| 253 | 253 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 254 | | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unused ) ) |
| 254 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unused ) ) PORT_DIPLOCATION("SW1:2") |
| 255 | 255 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) |
| 256 | 256 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 257 | | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unused ) ) |
| 257 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unused ) ) PORT_DIPLOCATION("SW1:1") |
| 258 | 258 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 259 | 259 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 260 | 260 | |
| 261 | 261 | PORT_START /* DIP SW 2 */ |
| 262 | | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Lives ) ) |
| 262 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW2:8,7") |
| 263 | 263 | PORT_DIPSETTING( 0x00, "2" ) |
| 264 | 264 | PORT_DIPSETTING( 0x03, "3" ) |
| 265 | 265 | PORT_DIPSETTING( 0x02, "4" ) |
| 266 | 266 | PORT_DIPSETTING( 0x01, "5" ) |
| 267 | | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Difficulty ) ) |
| 267 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:6,5") |
| 268 | 268 | PORT_DIPSETTING( 0x08, DEF_STR( Easy ) ) |
| 269 | 269 | PORT_DIPSETTING( 0x0c, DEF_STR( Normal ) ) |
| 270 | 270 | PORT_DIPSETTING( 0x04, DEF_STR( Hard ) ) |
| 271 | 271 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) |
| 272 | | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Flip_Screen ) ) |
| 272 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW2:4") |
| 273 | 273 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) |
| 274 | 274 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 275 | | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Demo_Sounds ) ) |
| 275 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:3") |
| 276 | 276 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) /* Doesn't work? */ |
| 277 | 277 | PORT_DIPSETTING( 0x20, DEF_STR( On ) ) |
| 278 | | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unused ) ) |
| 278 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unused ) ) PORT_DIPLOCATION("SW2:2") |
| 279 | 279 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) |
| 280 | 280 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 281 | | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unused ) ) |
| 281 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unused ) ) PORT_DIPLOCATION("SW2:1") |
| 282 | 282 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 283 | 283 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 284 | 284 | |
| r788 | r789 | |
| 306 | 306 | |
| 307 | 307 | INPUT_PORTS_START( riot ) |
| 308 | 308 | PORT_START /* DIP SW 1 */ |
| 309 | | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Coin_A ) ) |
| 309 | PORT_DIPNAME( 0x07, 0x07, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW1:1,2,3") |
| 310 | 310 | PORT_DIPSETTING( 0x00, DEF_STR( 5C_1C ) ) |
| 311 | 311 | PORT_DIPSETTING( 0x01, DEF_STR( 4C_1C ) ) |
| 312 | 312 | PORT_DIPSETTING( 0x02, DEF_STR( 3C_1C ) ) |
| r788 | r789 | |
| 315 | 315 | PORT_DIPSETTING( 0x06, DEF_STR( 1C_2C ) ) |
| 316 | 316 | PORT_DIPSETTING( 0x05, DEF_STR( 1C_3C ) ) |
| 317 | 317 | PORT_DIPSETTING( 0x03, DEF_STR( 1C_4C ) ) |
| 318 | | PORT_DIPNAME( 0x38, 0x38, DEF_STR( Coin_B ) ) |
| 318 | PORT_DIPNAME( 0x38, 0x38, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SW1:4,5,6") |
| 319 | 319 | PORT_DIPSETTING( 0x00, DEF_STR( 5C_1C ) ) |
| 320 | 320 | PORT_DIPSETTING( 0x08, DEF_STR( 4C_1C ) ) |
| 321 | 321 | PORT_DIPSETTING( 0x10, DEF_STR( 3C_1C ) ) |
| r788 | r789 | |
| 324 | 324 | PORT_DIPSETTING( 0x30, DEF_STR( 1C_2C ) ) |
| 325 | 325 | PORT_DIPSETTING( 0x28, DEF_STR( 1C_3C ) ) |
| 326 | 326 | PORT_DIPSETTING( 0x18, DEF_STR( 1C_4C ) ) |
| 327 | | PORT_DIPNAME( 0x40, 0x40, "Starting Coins" ) |
| 327 | PORT_DIPNAME( 0x40, 0x40, "Starting Coins" ) PORT_DIPLOCATION("SW1:7") |
| 328 | 328 | PORT_DIPSETTING( 0x40, "1" ) |
| 329 | 329 | PORT_DIPSETTING( 0x00, "2" ) |
| 330 | | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) ) |
| 330 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW1:8") |
| 331 | 331 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 332 | 332 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 333 | 333 | |
| 334 | 334 | PORT_START /* DIP SW 2 */ |
| 335 | | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) ) |
| 335 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW2:1,2") |
| 336 | 336 | PORT_DIPSETTING( 0x03, "1" ) |
| 337 | 337 | PORT_DIPSETTING( 0x02, "2" ) |
| 338 | 338 | PORT_DIPSETTING( 0x01, "3" ) |
| 339 | 339 | PORT_DIPSETTING( 0x00, "4" ) |
| 340 | | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) ) |
| 340 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW2:3") |
| 341 | 341 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) |
| 342 | 342 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 343 | | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) ) |
| 343 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW2:4") |
| 344 | 344 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) |
| 345 | 345 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 346 | | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Flip_Screen ) ) |
| 346 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW2:5") |
| 347 | 347 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) |
| 348 | 348 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 349 | | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Demo_Sounds ) ) |
| 349 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:6") |
| 350 | 350 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 351 | 351 | PORT_DIPSETTING( 0x20, DEF_STR( On ) ) |
| 352 | | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) ) |
| 352 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW2:7") |
| 353 | 353 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) |
| 354 | 354 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 355 | | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) ) |
| 355 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW2:8") |
| 356 | 356 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 357 | 357 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 358 | 358 | |
src/mame/drivers/cojag.c
| r788 | r789 | |
| 92 | 92 | jspkr left/right/subwoofer output |
| 93 | 93 | hdpower 4 pin PC power connector for HD |
| 94 | 94 | |
| 95 | |
| 96 | Maximum Force |
| 97 | Atari, 1997 |
| 98 | |
| 99 | PCB Layout |
| 100 | ---------- |
| 101 | |
| 102 | MAXIMUM FORCE A055451 ATARI GAMES (C) 1996 |
| 103 | |-----------------------------------------------------------------------------------| |
| 104 | |HM514260CJ7 HM514260CJ7 HM514260CJ7 HM514260CJ7 AT28C16 | |
| 105 | | | |
| 106 | |HM514260CJ7 HM514260CJ7 HM514260CJ7 HM514260CJ7 PROGLL.17Y PROGLH.21Y | |
| 107 | | | |
| 108 | |HM514260CJ7 HM514260CJ7 HM514260CJ7 HM514260CJ7 PROGHL.21V PROGHH.21V | |
| 109 | | | |
| 110 | | | |
| 111 | | |------| |------| | |
| 112 | | |JAGUAR| |JAGUAR| | |
| 113 | |GAL GAL |GPU | |DSP | |----------| | |
| 114 | | |------| |------| | | | |
| 115 | | |IDT | | |
| 116 | |GAL GAL 40MHz |79R3041-20| | |
| 117 | | GAL | | | |
| 118 | | 14.31818MHz |----------| IDE | |
| 119 | |AK4310VM CONN | |
| 120 | | |-----------| | |
| 121 | |LM78L05 52MHz |ALTERA MAX | | |
| 122 | | |EPM7128ELC84 | |
| 123 | | TEA6320 | | | |
| 124 | |78L09 LM613 | | VIA | |
| 125 | | MONO/STEREO |-----------| VT83C461 | |
| 126 | |TDA1554 SELFTEST | |
| 127 | | DS1232 ACTEL_A1010B | |
| 128 | | HDD_PWR | |
| 129 | | JSPKR |--| JAMMA |--| JSYNC JVUPDN XTRACOIN1 JGUN1 JGUN2| |
| 130 | |-------| |----------------------------| |----------------------------------------| |
| 131 | Notes: |
| 132 | JGUN1 / JGUN2 - Connector for Guns |
| 133 | VIA VT83C461 - IDE Controller |
| 134 | JSPKR - Speaker Output Connector (for use with Stereo jumper) |
| 135 | |
| 95 | 136 | **************************************************************************** |
| 96 | 137 | |
| 97 | 138 | Memory map (TBA) |
| r788 | r789 | |
| 1039 | 1080 | * |
| 1040 | 1081 | *************************************/ |
| 1041 | 1082 | |
| 1083 | /**************************************** |
| 1084 | |
| 1085 | ROM & Hard Disk based games |
| 1086 | |
| 1087 | ****************************************/ |
| 1088 | |
| 1042 | 1089 | ROM_START( area51t ) /* 68020 based, Area51 Time Warner License Date: Nov 15, 1995 */ |
| 1043 | 1090 | ROM_REGION32_BE( 0x200000, REGION_USER1, 0 ) /* 2MB for 68020 code */ |
| 1044 | 1091 | ROM_LOAD32_BYTE( "3h.bin", 0x00000, 0x80000, CRC(e70a97c4) SHA1(39dabf6bf3dc6f717a587f362d040bfb332be9e1) ) |
| r788 | r789 | |
| 1096 | 1143 | ROM_END |
| 1097 | 1144 | |
| 1098 | 1145 | |
| 1146 | ROM_START( maxf_ng ) /* R3000 based, stickers say 'NO GORE' */ |
| 1147 | ROM_REGION32_BE( 0x200000, REGION_USER1, 0 ) /* 2MB for IDT 79R3041 code */ |
| 1148 | ROM_LOAD32_BYTE( "mf_ng_hh.21v", 0x00000, 0x80000, CRC(08791c02) SHA1(9befbff3201c7d345109b26c296fd8548dbfc95b) ) |
| 1149 | ROM_LOAD32_BYTE( "mf_ng_hl.17v", 0x00001, 0x80000, CRC(52cf482c) SHA1(ff98b3f04987acef82a97a2ad35a9085fa84e6d5) ) |
| 1150 | ROM_LOAD32_BYTE( "mf_ng_lh.21y", 0x00002, 0x80000, CRC(ab4ee992) SHA1(69f0fe111d3f5f31151d2922579e5073e484b1e1) ) |
| 1151 | ROM_LOAD32_BYTE( "mf_ng_ll.17y", 0x00003, 0x80000, CRC(674aab43) SHA1(f79d790538756d1100b7e4ffed192a62a031a2cb) ) |
| 1152 | |
| 1153 | ROM_REGION( 0x800, REGION_USER2, 0 ) /* 28C16 style eeprom, currently loaded but not used */ |
| 1154 | ROM_LOAD( "28c16.17z", 0x000, 0x800, CRC(1cdd9088) SHA1(4f01f02ff95f31ced87a3cdd7f171afd92551266) ) |
| 1155 | |
| 1156 | DISK_REGION( REGION_DISKS ) |
| 1157 | DISK_IMAGE( "maxforce", 0, MD5(b0a214c7b3f8ba9d592396332fc974c9) SHA1(59d77280afdb2d1f801ee81786aa7d3166ec2695) ) |
| 1158 | ROM_END |
| 1159 | |
| 1160 | |
| 1161 | ROM_START( area51mx ) /* 68020 based, Labeled as "68020 MAX/A51 KIT 2.0" Date: Apr 22, 1998 */ |
| 1162 | ROM_REGION32_BE( 0x200000, REGION_USER1, 0 ) /* 2MB for 68020 code */ |
| 1163 | ROM_LOAD32_BYTE( "area51mx.3h", 0x00000, 0x80000, CRC(47cbf30b) SHA1(23377bcc65c0fc330d5bc7e76e233bae043ac364) ) |
| 1164 | ROM_LOAD32_BYTE( "area51mx.3p", 0x00001, 0x80000, CRC(a3c93684) SHA1(f6b3357bb69900a176fd6bc6b819b2f57b7d0f59) ) |
| 1165 | ROM_LOAD32_BYTE( "area51mx.3m", 0x00002, 0x80000, CRC(d800ac17) SHA1(3d515c8608d8101ee9227116175b3c3f1fe22e0c) ) |
| 1166 | ROM_LOAD32_BYTE( "area51mx.3k", 0x00003, 0x80000, CRC(0e78f308) SHA1(adc4c8e441eb8fe525d0a6220eb3a2a8791a7289) ) |
| 1167 | |
| 1168 | DISK_REGION( REGION_DISKS ) |
| 1169 | DISK_IMAGE( "area51mx", 0, MD5(fce1a0954759fa22e50747959716823d) SHA1(7e629045eb5baa8cd522273befffbf8520828938) ) |
| 1170 | ROM_END |
| 1171 | |
| 1172 | |
| 1173 | ROM_START( a51mxr3k ) /* R3000 based, Labeled as "R3K Max/A51 Kit Ver 1.0" */ |
| 1174 | ROM_REGION32_BE( 0x200000, REGION_USER1, 0 ) /* 2MB for IDT 79R3041 code */ |
| 1175 | ROM_LOAD32_BYTE( "a51mxr3k.hh", 0x00000, 0x80000, CRC(a984dab2) SHA1(debb3bc11ff49e87a52e89a69533a1bab7db700e) ) |
| 1176 | ROM_LOAD32_BYTE( "a51mxr3k.hl", 0x00001, 0x80000, CRC(0af49d74) SHA1(c19f26056a823fd32293e9a7b3ea868640eabf49) ) |
| 1177 | ROM_LOAD32_BYTE( "a51mxr3k.lh", 0x00002, 0x80000, CRC(d7d94dac) SHA1(2060a74715f36a0d7f5dd0855eda48ad1f20f095) ) |
| 1178 | ROM_LOAD32_BYTE( "a51mxr3k.ll", 0x00003, 0x80000, CRC(ece9e5ae) SHA1(7e44402726f5afa6d1670b27aa43ad13d21c4ad9) ) |
| 1179 | |
| 1180 | DISK_REGION( REGION_DISKS ) |
| 1181 | DISK_IMAGE( "area51mx", 0, MD5(fce1a0954759fa22e50747959716823d) SHA1(7e629045eb5baa8cd522273befffbf8520828938) ) |
| 1182 | ROM_END |
| 1183 | |
| 1184 | |
| 1185 | ROM_START( vcircle ) |
| 1186 | ROM_REGION32_BE( 0x200000, REGION_USER1, 0 ) /* 2MB for R3000 code */ |
| 1187 | ROM_LOAD32_BYTE( "hh", 0x00000, 0x80000, CRC(7276f5f5) SHA1(716287e370a4f300b1743103f8031afc82de38ca) ) |
| 1188 | ROM_LOAD32_BYTE( "hl", 0x00001, 0x80000, CRC(146060a1) SHA1(f291989f1f0ef228757f1990fb14da5ff8f3cf8d) ) |
| 1189 | ROM_LOAD32_BYTE( "lh", 0x00002, 0x80000, CRC(be4b2ef6) SHA1(4332b3036e9cb12685e914d085d9a63aa856f0be) ) |
| 1190 | ROM_LOAD32_BYTE( "ll", 0x00003, 0x80000, CRC(ba8753eb) SHA1(0322e0e37d814a38d08ba191b1a97fb1a55fe461) ) |
| 1191 | |
| 1192 | DISK_REGION( REGION_DISKS ) |
| 1193 | DISK_IMAGE( "vcircle", 0, MD5(fc316bd92363573d60083514223c6816) SHA1(f1d3e3d081d10ec42d07cd695d52b44812264983) ) |
| 1194 | ROM_END |
| 1195 | |
| 1196 | /**************************************** |
| 1197 | |
| 1198 | ROM based games |
| 1199 | |
| 1200 | ****************************************/ |
| 1201 | |
| 1202 | |
| 1099 | 1203 | ROM_START( fishfren ) |
| 1100 | 1204 | ROM_REGION32_BE( 0x200000, REGION_USER1, 0 ) /* 2MB for R3000 code */ |
| 1101 | 1205 | ROM_LOAD32_BYTE( "hh", 0x00000, 0x80000, CRC(2ef79767) SHA1(abcea584f2cbd71b05f9d7e61f40ca9da6799215) ) |
| r788 | r789 | |
| 1104 | 1208 | ROM_LOAD32_BYTE( "ll", 0x00003, 0x80000, CRC(d70d0f2c) SHA1(2689cbe56ae3d491348b241528b0fe345fa8484c) ) |
| 1105 | 1209 | |
| 1106 | 1210 | ROM_REGION32_BE( 0x1000000, REGION_USER2, 0 ) /* 16MB for 64-bit ROM data */ |
| 1107 | | ROMX_LOAD( "l63-56", 0x000000, 0x100000, CRC(42764ea5) SHA1(805245f01006bd974fbac56f688cfcf137ddc914), ROM_SKIP(7) ) |
| 1211 | ROMX_LOAD( "l63-56", 0x000000, 0x100000, CRC(42764ea5) SHA1(805245f01006bd974fbac56f688cfcf137ddc914), ROM_SKIP(7) ) |
| 1108 | 1212 | ROMX_LOAD( "l55-48", 0x000001, 0x100000, CRC(0c7592bb) SHA1(d5bd6b872abad58947842205f9eac46fd065e88f), ROM_SKIP(7) ) |
| 1109 | 1213 | ROMX_LOAD( "l47-40", 0x000002, 0x100000, CRC(6d7dcdb1) SHA1(914dae3b9df5c861f794b683571c5fb0c2c3c3fd), ROM_SKIP(7) ) |
| 1110 | 1214 | ROMX_LOAD( "l39-32", 0x000003, 0x100000, CRC(ef3b8d98) SHA1(858c3342e9693bfe887b91dde1116a1656a1a105), ROM_SKIP(7) ) |
| r788 | r789 | |
| 1123 | 1227 | ROM_COPY( REGION_USER2, 0x800000, 0xc00000, 0x400000 ) |
| 1124 | 1228 | ROM_END |
| 1125 | 1229 | |
| 1126 | | |
| 1127 | 1230 | ROM_START( freezeat ) |
| 1128 | 1231 | ROM_REGION32_BE( 0x200000, REGION_USER1, 0 ) /* 2MB for R3000 code */ |
| 1129 | 1232 | ROM_LOAD32_BYTE( "prog_eng.hh", 0x000000, 0x040000, CRC(f7cffafd) SHA1(62369de4cf0a5abab86f6bcf9621028b9e171ec3) ) |
| r788 | r789 | |
| 1307 | 1410 | ROM_END |
| 1308 | 1411 | |
| 1309 | 1412 | |
| 1310 | | ROM_START( area51mx ) /* 68020 based, Labeled as "68020 MAX/A51 KIT 2.0" Date: Apr 22, 1998 */ |
| 1311 | | ROM_REGION32_BE( 0x200000, REGION_USER1, 0 ) /* 2MB for 68020 code */ |
| 1312 | | ROM_LOAD32_BYTE( "area51mx.3h", 0x00000, 0x80000, CRC(47cbf30b) SHA1(23377bcc65c0fc330d5bc7e76e233bae043ac364) ) |
| 1313 | | ROM_LOAD32_BYTE( "area51mx.3p", 0x00001, 0x80000, CRC(a3c93684) SHA1(f6b3357bb69900a176fd6bc6b819b2f57b7d0f59) ) |
| 1314 | | ROM_LOAD32_BYTE( "area51mx.3m", 0x00002, 0x80000, CRC(d800ac17) SHA1(3d515c8608d8101ee9227116175b3c3f1fe22e0c) ) |
| 1315 | | ROM_LOAD32_BYTE( "area51mx.3k", 0x00003, 0x80000, CRC(0e78f308) SHA1(adc4c8e441eb8fe525d0a6220eb3a2a8791a7289) ) |
| 1316 | | |
| 1317 | | DISK_REGION( REGION_DISKS ) |
| 1318 | | DISK_IMAGE( "area51mx", 0, MD5(fce1a0954759fa22e50747959716823d) SHA1(7e629045eb5baa8cd522273befffbf8520828938) ) |
| 1319 | | ROM_END |
| 1320 | | |
| 1321 | | |
| 1322 | | ROM_START( a51mxr3k ) /* R3000 based, Labeled as "R3K Max/A51 Kit Ver 1.0" */ |
| 1323 | | ROM_REGION32_BE( 0x200000, REGION_USER1, 0 ) /* 2MB for IDT 79R3041 code */ |
| 1324 | | ROM_LOAD32_BYTE( "a51mxr3k.hh", 0x00000, 0x80000, CRC(a984dab2) SHA1(debb3bc11ff49e87a52e89a69533a1bab7db700e) ) |
| 1325 | | ROM_LOAD32_BYTE( "a51mxr3k.hl", 0x00001, 0x80000, CRC(0af49d74) SHA1(c19f26056a823fd32293e9a7b3ea868640eabf49) ) |
| 1326 | | ROM_LOAD32_BYTE( "a51mxr3k.lh", 0x00002, 0x80000, CRC(d7d94dac) SHA1(2060a74715f36a0d7f5dd0855eda48ad1f20f095) ) |
| 1327 | | ROM_LOAD32_BYTE( "a51mxr3k.ll", 0x00003, 0x80000, CRC(ece9e5ae) SHA1(7e44402726f5afa6d1670b27aa43ad13d21c4ad9) ) |
| 1328 | | |
| 1329 | | DISK_REGION( REGION_DISKS ) |
| 1330 | | DISK_IMAGE( "area51mx", 0, MD5(fce1a0954759fa22e50747959716823d) SHA1(7e629045eb5baa8cd522273befffbf8520828938) ) |
| 1331 | | ROM_END |
| 1332 | | |
| 1333 | | |
| 1334 | | ROM_START( vcircle ) |
| 1335 | | ROM_REGION32_BE( 0x200000, REGION_USER1, 0 ) /* 2MB for R3000 code */ |
| 1336 | | ROM_LOAD32_BYTE( "hh", 0x00000, 0x80000, CRC(7276f5f5) SHA1(716287e370a4f300b1743103f8031afc82de38ca) ) |
| 1337 | | ROM_LOAD32_BYTE( "hl", 0x00001, 0x80000, CRC(146060a1) SHA1(f291989f1f0ef228757f1990fb14da5ff8f3cf8d) ) |
| 1338 | | ROM_LOAD32_BYTE( "lh", 0x00002, 0x80000, CRC(be4b2ef6) SHA1(4332b3036e9cb12685e914d085d9a63aa856f0be) ) |
| 1339 | | ROM_LOAD32_BYTE( "ll", 0x00003, 0x80000, CRC(ba8753eb) SHA1(0322e0e37d814a38d08ba191b1a97fb1a55fe461) ) |
| 1340 | | |
| 1341 | | DISK_REGION( REGION_DISKS ) |
| 1342 | | DISK_IMAGE( "vcircle", 0, MD5(fc316bd92363573d60083514223c6816) SHA1(f1d3e3d081d10ec42d07cd695d52b44812264983) ) |
| 1343 | | ROM_END |
| 1344 | | |
| 1345 | | |
| 1346 | | |
| 1347 | 1413 | /************************************* |
| 1348 | 1414 | * |
| 1349 | 1415 | * Driver initialization |
| r788 | r789 | |
| 1503 | 1569 | GAME( 1996, freezea6, freezeat, cojagr3k, freezeat, freezea6, ROT0, "Atari Games", "Freeze (Atari) (prototype, 96/09/07, Jamma-96)", 0 ) |
| 1504 | 1570 | GAME( 1996, maxforce, 0, r3knarrow, area51, maxforce, ROT0, "Atari Games", "Maximum Force v1.05", 0 ) |
| 1505 | 1571 | GAME( 1996, maxf_102, maxforce, r3knarrow, area51, maxforce, ROT0, "Atari Games", "Maximum Force v1.02", 0 ) |
| 1572 | GAME( 1996, maxf_ng, maxforce, r3knarrow, area51, maxforce, ROT0, "Atari Games", "Maximum Force (No Gore version)", 0 ) |
| 1506 | 1573 | GAME( 1998, area51mx, 0, cojag68k, area51, area51mx, ROT0, "Atari Games", "Area 51 / Maximum Force Duo v2.0", 0 ) |
| 1507 | 1574 | GAME( 1998, a51mxr3k, area51mx, r3knarrow, area51, a51mxr3k, ROT0, "Atari Games", "Area 51 / Maximum Force Duo (R3000)", 0 ) |
| 1508 | 1575 | GAME( 1996, vcircle, 0, cojagr3k, vcircle, vcircle, ROT0, "Atari Games", "Vicious Circle (prototype)", 0 ) |
src/mame/drivers/m107.c
| r788 | r789 | |
| 589 | 589 | |
| 590 | 590 | ROM_START( firebarr ) |
| 591 | 591 | ROM_REGION( 0x100000, REGION_CPU1, 0 ) |
| 592 | | ROM_LOAD16_BYTE( "f4-h0", 0x000001, 0x40000, CRC(2aa5676e) SHA1(7f51c462c58b63fa4f34ec9dd2ee69c932ebf718) ) |
| 593 | | ROM_LOAD16_BYTE( "f4-l0", 0x000000, 0x40000, CRC(42f75d59) SHA1(eba3a02874d608ecb8c93160c8f0b4c8bb8061d2) ) |
| 594 | | ROM_LOAD16_BYTE( "f4-h1", 0x080001, 0x20000, CRC(bb7f6968) SHA1(366747672aac939454d9915cda5277b0438f063b) ) |
| 595 | | ROM_LOAD16_BYTE( "f4-l1", 0x080000, 0x20000, CRC(9d57edd6) SHA1(16122829b61aa3aee88aeb6634831e8cf95eaee0) ) |
| 592 | ROM_LOAD16_BYTE( "f4-a-h0-c.9d", 0x000001, 0x40000, CRC(2aa5676e) SHA1(7f51c462c58b63fa4f34ec9dd2ee69c932ebf718) ) |
| 593 | ROM_LOAD16_BYTE( "f4-a-l0-c.9f", 0x000000, 0x40000, CRC(42f75d59) SHA1(eba3a02874d608ecb8c93160c8f0b4c8bb8061d2) ) |
| 594 | ROM_LOAD16_BYTE( "f4-a-h1-c.9e", 0x080001, 0x20000, CRC(bb7f6968) SHA1(366747672aac939454d9915cda5277b0438f063b) ) |
| 595 | ROM_LOAD16_BYTE( "f4-a-l1-c.9h", 0x080000, 0x20000, CRC(9d57edd6) SHA1(16122829b61aa3aee88aeb6634831e8cf95eaee0) ) |
| 596 | 596 | |
| 597 | 597 | ROM_REGION( 0x100000, REGION_CPU2, 0 ) |
| 598 | | ROM_LOAD16_BYTE( "f4-sh0", 0x000001, 0x10000, CRC(30a8e232) SHA1(d4695aed35a1aa796b2872e58a6014e8b28bc154) ) |
| 599 | | ROM_LOAD16_BYTE( "f4-sl0", 0x000000, 0x10000, CRC(204b5f1f) SHA1(f0386500773cd7cca93f0e8e740db29182320c70) ) |
| 598 | ROM_LOAD16_BYTE( "f4-b-sh0-b", 0x000001, 0x10000, CRC(30a8e232) SHA1(d4695aed35a1aa796b2872e58a6014e8b28bc154) ) |
| 599 | ROM_LOAD16_BYTE( "f4-b-sl0-b", 0x000000, 0x10000, CRC(204b5f1f) SHA1(f0386500773cd7cca93f0e8e740db29182320c70) ) |
| 600 | 600 | |
| 601 | 601 | ROM_REGION( 0x200000, REGION_GFX1, ROMREGION_DISPOSE ) /* chars */ |
| 602 | 602 | ROM_LOAD16_BYTE( "f4-c00", 0x000000, 0x80000, CRC(50cab384) SHA1(66e88a1dfa943e0d49c2e186ac2f6cbf5cfe0864) ) |
| r788 | r789 | |
| 615 | 615 | ROM_LOAD16_BYTE( "f4-031", 0x300001, 0x80000, CRC(83ac56c5) SHA1(47e1063c71d5570fecf8591c2cb7c74fd45199f5) ) |
| 616 | 616 | |
| 617 | 617 | ROM_REGION( 0x40000, REGION_USER1, 0 ) /* sprite tables */ |
| 618 | | ROM_LOAD16_BYTE( "f4-drh", 0x000001, 0x20000, CRC(12001372) SHA1(a5346d8a741cd1a93aa289562bb56d2fc40c1bbb) ) |
| 619 | | ROM_LOAD16_BYTE( "f4-drl", 0x000000, 0x20000, CRC(08cb7533) SHA1(9e0d8f8498bddfa1c6135abbab4465e9eeb033fe) ) |
| 618 | ROM_LOAD16_BYTE( "f4-b-drh", 0x000001, 0x20000, CRC(12001372) SHA1(a5346d8a741cd1a93aa289562bb56d2fc40c1bbb) ) |
| 619 | ROM_LOAD16_BYTE( "f4-b-drl", 0x000000, 0x20000, CRC(08cb7533) SHA1(9e0d8f8498bddfa1c6135abbab4465e9eeb033fe) ) |
| 620 | 620 | |
| 621 | 621 | ROM_REGION( 0x80000, REGION_SOUND1, 0 ) /* ADPCM samples */ |
| 622 | | ROM_LOAD( "f4-da0", 0x000000, 0x80000, CRC(7a493e2e) SHA1(f6a8bacbe25760c86bdd8e8bb6d052ff15718eef) ) |
| 622 | ROM_LOAD( "f4-b-da0", 0x000000, 0x80000, CRC(7a493e2e) SHA1(f6a8bacbe25760c86bdd8e8bb6d052ff15718eef) ) |
| 623 | 623 | ROM_END |
| 624 | 624 | |
| 625 | 625 | ROM_START( dsoccr94 ) |
| 626 | 626 | ROM_REGION( 0x180000, REGION_CPU1, 0 ) /* v30 main cpu */ |
| 627 | | ROM_LOAD16_BYTE( "ds_h0-c.rom", 0x000001, 0x040000, CRC(d01d3fd7) SHA1(925dff999252bf3b920bc0f427744e1464620fe8) ) |
| 628 | | ROM_LOAD16_BYTE( "ds_l0-c.rom", 0x000000, 0x040000, CRC(8af0afe2) SHA1(423c77d392a79cdaed66ad8c13039450d34d3f6d) ) |
| 629 | | ROM_LOAD16_BYTE( "ds_h1-c.rom", 0x100001, 0x040000, CRC(6109041b) SHA1(063898a88f8a6a9f1510aa55e53a39f037b02903) ) |
| 630 | | ROM_LOAD16_BYTE( "ds_l1-c.rom", 0x100000, 0x040000, CRC(97a01f6b) SHA1(e188e28f880f5f3f4d7b49eca639d643989b1468) ) |
| 627 | ROM_LOAD16_BYTE( "ds_h0-c.rom", 0x000001, 0x040000, CRC(d01d3fd7) SHA1(925dff999252bf3b920bc0f427744e1464620fe8) ) |
| 628 | ROM_LOAD16_BYTE( "ds_l0-c.rom", 0x000000, 0x040000, CRC(8af0afe2) SHA1(423c77d392a79cdaed66ad8c13039450d34d3f6d) ) |
| 629 | ROM_LOAD16_BYTE( "ds_h1-c.rom", 0x100001, 0x040000, CRC(6109041b) SHA1(063898a88f8a6a9f1510aa55e53a39f037b02903) ) |
| 630 | ROM_LOAD16_BYTE( "ds_l1-c.rom", 0x100000, 0x040000, CRC(97a01f6b) SHA1(e188e28f880f5f3f4d7b49eca639d643989b1468) ) |
| 631 | 631 | |
| 632 | 632 | ROM_REGION( 0x100000, REGION_CPU2, 0 ) |
| 633 | | ROM_LOAD16_BYTE( "ds_sh0.rom", 0x000001, 0x010000, CRC(23fe6ffc) SHA1(896377961cafc19e44d9d889f9fbfdbaedd556da) ) |
| 634 | | ROM_LOAD16_BYTE( "ds_sl0.rom", 0x000000, 0x010000, CRC(768132e5) SHA1(1bb64516eb58d3b246f08e1c07f091e78085689f) ) |
| 633 | ROM_LOAD16_BYTE( "ds_sh0.rom", 0x000001, 0x010000, CRC(23fe6ffc) SHA1(896377961cafc19e44d9d889f9fbfdbaedd556da) ) |
| 634 | ROM_LOAD16_BYTE( "ds_sl0.rom", 0x000000, 0x010000, CRC(768132e5) SHA1(1bb64516eb58d3b246f08e1c07f091e78085689f) ) |
| 635 | 635 | |
| 636 | 636 | ROM_REGION( 0x400000, REGION_GFX1, ROMREGION_DISPOSE ) /* chars */ |
| 637 | | ROM_LOAD16_BYTE( "ds_c00.rom", 0x000000, 0x100000, CRC(2d31d418) SHA1(6cd0e362bc2e3f2b20d96ee97a04bff46ee3016a) ) |
| 638 | | ROM_LOAD16_BYTE( "ds_c10.rom", 0x000001, 0x100000, CRC(57f7bcd3) SHA1(a38e7cdfdea72d882fba414cae391ba09443e73c) ) |
| 639 | | ROM_LOAD16_BYTE( "ds_c01.rom", 0x200000, 0x100000, CRC(9d31a464) SHA1(1e38ac296f64d77fabfc0d5f7921a9b7a8424875) ) |
| 640 | | ROM_LOAD16_BYTE( "ds_c11.rom", 0x200001, 0x100000, CRC(a372e79f) SHA1(6b0889cfc2970028832566e25257927ddc461ea6) ) |
| 637 | ROM_LOAD16_BYTE( "ds_c00.rom", 0x000000, 0x100000, CRC(2d31d418) SHA1(6cd0e362bc2e3f2b20d96ee97a04bff46ee3016a) ) |
| 638 | ROM_LOAD16_BYTE( "ds_c10.rom", 0x000001, 0x100000, CRC(57f7bcd3) SHA1(a38e7cdfdea72d882fba414cae391ba09443e73c) ) |
| 639 | ROM_LOAD16_BYTE( "ds_c01.rom", 0x200000, 0x100000, CRC(9d31a464) SHA1(1e38ac296f64d77fabfc0d5f7921a9b7a8424875) ) |
| 640 | ROM_LOAD16_BYTE( "ds_c11.rom", 0x200001, 0x100000, CRC(a372e79f) SHA1(6b0889cfc2970028832566e25257927ddc461ea6) ) |
| 641 | 641 | |
| 642 | 642 | ROM_REGION( 0x400000, REGION_GFX2, ROMREGION_DISPOSE ) /* sprites */ |
| 643 | | ROM_LOAD( "ds_000.rom", 0x000000, 0x100000, CRC(366b3e29) SHA1(cb016dcbdc6e8ea56c28c00135263666b07df991) ) |
| 644 | | ROM_LOAD( "ds_010.rom", 0x100000, 0x100000, CRC(28a4cc40) SHA1(7f4e1ef995eaadf1945ee22ab3270cb8a21c601d) ) |
| 645 | | ROM_LOAD( "ds_020.rom", 0x200000, 0x100000, CRC(5a310f7f) SHA1(21969e4247c8328d27118d00604096deaf6700af) ) |
| 646 | | ROM_LOAD( "ds_030.rom", 0x300000, 0x100000, CRC(328b1f45) SHA1(4cbbd4d9be4fc151d426175bdbd35d8481bf2966) ) |
| 643 | ROM_LOAD( "ds_000.rom", 0x000000, 0x100000, CRC(366b3e29) SHA1(cb016dcbdc6e8ea56c28c00135263666b07df991) ) |
| 644 | ROM_LOAD( "ds_010.rom", 0x100000, 0x100000, CRC(28a4cc40) SHA1(7f4e1ef995eaadf1945ee22ab3270cb8a21c601d) ) |
| 645 | ROM_LOAD( "ds_020.rom", 0x200000, 0x100000, CRC(5a310f7f) SHA1(21969e4247c8328d27118d00604096deaf6700af) ) |
| 646 | ROM_LOAD( "ds_030.rom", 0x300000, 0x100000, CRC(328b1f45) SHA1(4cbbd4d9be4fc151d426175bdbd35d8481bf2966) ) |
| 647 | 647 | |
| 648 | 648 | ROM_REGION( 0x100000, REGION_SOUND1, 0 ) /* ADPCM samples */ |
| 649 | | ROM_LOAD( "ds_da0.rom" , 0x000000, 0x100000, CRC(67fc52fd) SHA1(5771e948115af8fe4a6d3f448c03a2a9b42b6f20) ) |
| 649 | ROM_LOAD( "ds_da0.rom", 0x000000, 0x100000, CRC(67fc52fd) SHA1(5771e948115af8fe4a6d3f448c03a2a9b42b6f20) ) |
| 650 | 650 | ROM_END |
| 651 | 651 | |
| 652 | 652 | ROM_START( wpksoc ) |
| 653 | 653 | ROM_REGION( 0x180000, REGION_CPU1, 0 ) /* v30 main cpu */ |
| 654 | | ROM_LOAD16_BYTE( "pkeurd.h0", 0x000001, 0x040000, CRC(b4917788) SHA1(673294c518eaf28354fa6a3058f9325c6d9ddde6) ) |
| 655 | | ROM_LOAD16_BYTE( "pkeurd.l0", 0x000000, 0x040000, CRC(03816bae) SHA1(832e2ec722b41d41626fec583fc11e9ff62cdaa0) ) |
| 654 | ROM_LOAD16_BYTE( "pkeurd.h0", 0x000001, 0x040000, CRC(b4917788) SHA1(673294c518eaf28354fa6a3058f9325c6d9ddde6) ) |
| 655 | ROM_LOAD16_BYTE( "pkeurd.l0", 0x000000, 0x040000, CRC(03816bae) SHA1(832e2ec722b41d41626fec583fc11e9ff62cdaa0) ) |
| 656 | 656 | |
| 657 | 657 | ROM_REGION( 0x100000, REGION_CPU2, 0 ) |
| 658 | | ROM_LOAD16_BYTE( "pkos.sh0", 0x000001, 0x010000, CRC(1145998c) SHA1(cdb2a428e0f35302b81696dab02d3dd2c433f6e5) ) |
| 659 | | ROM_LOAD16_BYTE( "pkos.sl0", 0x000000, 0x010000, CRC(542ee1c7) SHA1(b934adeecbba17cf96b06a2b1dc1ceaebdf9ad10) ) |
| 658 | ROM_LOAD16_BYTE( "pkos.sh0", 0x000001, 0x010000, CRC(1145998c) SHA1(cdb2a428e0f35302b81696dab02d3dd2c433f6e5) ) |
| 659 | ROM_LOAD16_BYTE( "pkos.sl0", 0x000000, 0x010000, CRC(542ee1c7) SHA1(b934adeecbba17cf96b06a2b1dc1ceaebdf9ad10) ) |
| 660 | 660 | |
| 661 | 661 | ROM_REGION( 0x200000, REGION_GFX1, ROMREGION_DISPOSE ) /* chars */ |
| 662 | 662 | ROM_LOAD16_BYTE( "pkos.c00", 0x000000, 0x80000, CRC(42ae3d73) SHA1(e4777066155c9882695ebff0412bd879b8d6f716) ) |
| r788 | r789 | |
| 665 | 665 | ROM_LOAD16_BYTE( "pkos.c11", 0x100001, 0x80000, CRC(19de7d63) SHA1(6d0633e412b47accaecc887a5c39f542eda49e81) ) |
| 666 | 666 | |
| 667 | 667 | ROM_REGION( 0x400000, REGION_GFX2, ROMREGION_DISPOSE ) /* sprites */ |
| 668 | | ROM_LOAD16_BYTE( "pk.o00", 0x000000, 0x80000, CRC(165ce027) SHA1(3510b323c683ade4dd7307b539072bb342b6796d) ) |
| 669 | | ROM_LOAD16_BYTE( "pk.o01", 0x000001, 0x80000, CRC(e2745147) SHA1(99026525449c2ca84e054a7d633c400e0e836461) ) |
| 670 | | ROM_LOAD16_BYTE( "pk.o10", 0x100000, 0x80000, CRC(6c171b73) SHA1(a99c9f012f21373daea08d28554cc36170f4e1fa) ) |
| 671 | | ROM_LOAD16_BYTE( "pk.o11", 0x100001, 0x80000, CRC(471c0bf4) SHA1(1cace5ffd5db91850662de929cb9086dc154d662) ) |
| 672 | | ROM_LOAD16_BYTE( "pk.o20", 0x200000, 0x80000, CRC(c886dad1) SHA1(9b58a2f108547c3f55399932a7e56031c5658737) ) |
| 673 | | ROM_LOAD16_BYTE( "pk.o21", 0x200001, 0x80000, CRC(91e877ff) SHA1(3df095632728ab16ab229d592ab12d3df44b2629) ) |
| 674 | | ROM_LOAD16_BYTE( "pk.o30", 0x300000, 0x80000, CRC(3390621c) SHA1(4138c690666f78b1c5cf83d815ed6b37239a94b4) ) |
| 675 | | ROM_LOAD16_BYTE( "pk.o31", 0x300001, 0x80000, CRC(4d322804) SHA1(b5e2b40e3ce83b6f97b2b57edaa79df6968d0997) ) |
| 668 | ROM_LOAD16_BYTE( "pk.000", 0x000000, 0x80000, CRC(165ce027) SHA1(3510b323c683ade4dd7307b539072bb342b6796d) ) |
| 669 | ROM_LOAD16_BYTE( "pk.001", 0x000001, 0x80000, CRC(e2745147) SHA1(99026525449c2ca84e054a7d633c400e0e836461) ) |
| 670 | ROM_LOAD16_BYTE( "pk.010", 0x100000, 0x80000, CRC(6c171b73) SHA1(a99c9f012f21373daea08d28554cc36170f4e1fa) ) |
| 671 | ROM_LOAD16_BYTE( "pk.011", 0x100001, 0x80000, CRC(471c0bf4) SHA1(1cace5ffd5db91850662de929cb9086dc154d662) ) |
| 672 | ROM_LOAD16_BYTE( "pk.020", 0x200000, 0x80000, CRC(c886dad1) SHA1(9b58a2f108547c3f55399932a7e56031c5658737) ) |
| 673 | ROM_LOAD16_BYTE( "pk.021", 0x200001, 0x80000, CRC(91e877ff) SHA1(3df095632728ab16ab229d592ab12d3df44b2629) ) |
| 674 | ROM_LOAD16_BYTE( "pk.030", 0x300000, 0x80000, CRC(3390621c) SHA1(4138c690666f78b1c5cf83d815ed6b37239a94b4) ) |
| 675 | ROM_LOAD16_BYTE( "pk.031", 0x300001, 0x80000, CRC(4d322804) SHA1(b5e2b40e3ce83b6f97b2b57edaa79df6968d0997) ) |
| 676 | 676 | |
| 677 | 677 | ROM_REGION( 0x100000, REGION_SOUND1, 0 ) /* ADPCM samples */ |
| 678 | | ROM_LOAD( "pk.da0", 0x000000, 0x80000, CRC(26a34cf4) SHA1(a8a7cd91cdc6d644ee02ca16e7fdc8debf8f3a5f) ) |
| 678 | ROM_LOAD( "pk.da0", 0x000000, 0x80000, CRC(26a34cf4) SHA1(a8a7cd91cdc6d644ee02ca16e7fdc8debf8f3a5f) ) |
| 679 | 679 | ROM_END |
| 680 | 680 | |
| 681 | 681 | /***************************************************************************/ |
| r788 | r789 | |
| 739 | 739 | |
| 740 | 740 | GAME( 1993, firebarr, 0, firebarr, firebarr, firebarr, ROT270, "Irem", "Fire Barrel (Japan)", GAME_NO_SOUND | GAME_IMPERFECT_GRAPHICS ) |
| 741 | 741 | GAME( 1994, dsoccr94, 0, dsoccr94, dsoccr94, dsoccr94, ROT0, "Irem (Data East Corporation license)", "Dream Soccer '94", 0 ) |
| 742 | | GAME( 1995, wpksoc, 0, firebarr, wpksoc, wpksoc, ROT0, "Jaleco", "World PK Soccer", GAME_NOT_WORKING | GAME_IMPERFECT_GRAPHICS ) |
| 742 | GAME( 1995, wpksoc, 0, firebarr, wpksoc, wpksoc, ROT0, "Jaleco", "World PK Soccer", GAME_NOT_WORKING | GAME_IMPERFECT_GRAPHICS ) |
whatsnew.txt
| r788 | r789 | |
| 1 | | 0.117 |
| 1 | 0.118 |
| 2 | 2 | ----- |
| 3 | 3 | |
| 4 | 4 | |
| 5 | | MAMETesters Bugs Fixed |
| 6 | | ---------------------- |
| 7 | | gauntleg0116u4red [Zsolt Vasvari, Aaron Giles] |
| 8 | | vlm5030_0116u4gre [Zsolt Vasvari] |
| 9 | | tetrisp2_0116u4red [Zsolt Vasvari] |
| 10 | | primrage0116u3yel [Aaron Giles] |
| 11 | | debuggerandmt_0116u2red [Aaron Giles] |
| 12 | | memleak0116u4ora [Aaron Giles] |
| 13 | | term2_0116u1yel [Aaron Giles] |
| 14 | | |
| 15 | | |
| 16 | | |
| 17 | 5 | Source Changes |
| 18 | 6 | -------------- |
| 19 | | Added save state support to bzone.c games. [R. Belmont] |
| 7 | Changed INI parsing so that mame.ini is parsed twice, picking up |
| 8 | changes to the inipath. [Aaron Giles] |
| 20 | 9 | |
| 21 | | Fixed missing sound in Leprechaun. [Zsolt Vasvari] |
| 10 | Fixed bug in options handling introduced with recent changes. |
| 11 | [Nathan Woods] |
| 22 | 12 | |
| 23 | | Fixed some bugs involving empty or null ROM regions. [Nathan Woods] |
| 13 | Fixed macros in stvcd.c to work with C89 compilers. [Mike Haaland] |
| 24 | 14 | |
| 25 | | Fixed potential crash in speglsht driver. [Atari Ace] |
| 15 | Fixed some more 64-bit warnings and unused functions. |
| 16 | [Oliver Stoneberg] |
| 26 | 17 | |
| 27 | | Changed the 6532riot code to split r6532_init into r6532_init and |
| 28 | | r6532_reset. [Wilbert Pol] |
| 18 | Fixed DIP switch "Difficulty" in fstarfrc. Also added DIP locations |
| 19 | to the tecmo16 driver. [BisonSAS] |
| 29 | 20 | |
| 30 | | Fixed CPS3 code to be big-endian friendly. [R. Belmont] |
| 21 | Simplified the nemesis video driver code. [Atari Ace] |
| 31 | 22 | |
| 32 | | Added alpha blending effects to the CPS driver and improved sprite |
| 33 | | positioning. [David Haywood] |
| 23 | Modularized the TMS5220 code. [Lord Nightmare] |
| 34 | 24 | |
| 35 | | Moved "Pandora" sprite chip implementation to its own file. Updated |
| 36 | | Snow Bros, Air Buster, DJ Boy and Heavy Unit to use ths new generic |
| 37 | | implementation. [David Haywood] |
| 25 | Fixed issues with recent R-Type ROMset. [Brian Troha] |
| 38 | 26 | |
| 39 | | Fixed regression in segasyse driver. [Zsolt Vasvari] |
| 27 | Fixed a number of issues in the HD6309 core. [Darren Atkinson] |
| 40 | 28 | |
| 41 | | Reverted patch to the 6526CIA as it was causing issues with Amiga/ |
| 42 | | Arcadia emulation. [Pete Rittwage] |
| 29 | Sync with AGEMAME: [James Wallace] |
| 30 | * removed the 'lamps.c' module from the source tree |
| 31 | * cleaned up names in the BFM BD1 driver |
| 32 | * moved VFD drawing functions out of the video update |
| 33 | * overhauled the sound system in the MPU4 driver |
| 43 | 34 | |
| 44 | | Deduced a few more opcodes for gussun. The game now boots and you |
| 45 | | can coin up. [robiza] |
| 35 | Changed windows builds so that all tools use the utf8_main entry |
| 36 | point consistently. [Aaron Giles] |
| 46 | 37 | |
| 47 | | Fixed regression in vmetal and tatsumi drivers. [Zsolt Vasvari] |
| 48 | 38 | |
| 49 | | Fixed Taito version of chinhero. [Zsolt Vasvari] |
| 50 | 39 | |
| 51 | | Simplified code in tms9928 video system. [Zsolt Vasvari] |
| 52 | | |
| 53 | | Fixed ROL opcode in the 68000 emulator. [Zsolt Vasvari] |
| 54 | | |
| 55 | | Cleaned up tiny MAME target. [neoforma] |
| 56 | | |
| 57 | | Fixed regression in Exidy sounds. [Zsolt Vasvari] |
| 58 | | |
| 59 | | Improved accuracy of mame_timer_scale_up. [Aaron Giles] |
| 60 | | |
| 61 | | Rotated the mame_rand() results by 16 bits to reduce periodicity of |
| 62 | | the resuls. [Aaron Giles] |
| 63 | | |
| 64 | | Fixed winalloc.c to be thread-safe. [Aaron Giles] |
| 65 | | |
| 66 | | |
| 67 | | |
| 68 | 40 | New games added or promoted from NOT_WORKING status |
| 69 | 41 | --------------------------------------------------- |
| 70 | | Taisen Hot Gimmick 4 Ever (Japan) [Guru, David Haywood] |
| 42 | Dancing Stage Euro Mix 2 [smf] |
| 71 | 43 | |
| 72 | 44 | |
| 73 | 45 | |
| 74 | 46 | New clones added |
| 75 | 47 | ---------------- |
| 76 | | Photo Finish [Tomasz Slanina] |
| 77 | | Golden Poker (no double up) [Roberto Fresca] |
| 48 | Maximum Force (No Gore version) [Brian Troha] |
| 78 | 49 | |
| 79 | 50 | |
| 80 | 51 | |
| 81 | | New games marked as GAME_NOT_WORKING |
| 82 | | ------------------------------------ |
| 83 | | 39 in 1 MAME bootleg [R. Belmont, Guru] |
| 84 | | Super Pool (Italy) [Roberto Fresca] |
| 85 | | Guitar Freaks 6th Mix (G*B06 VER. JAA) [smf] |
| 86 | | Guitar Freaks 11th Mix (G*D39 VER. JAA) [smf] |
| 87 | | |
| 88 | | |
| 89 | | |
| 90 | | 0.116u4 |
| 52 | 0.117u3 |
| 91 | 53 | ------- |
| 92 | 54 | |
| 93 | 55 | |
| 94 | 56 | MAMETesters Bugs Fixed |
| 95 | 57 | ---------------------- |
| 96 | | kinst0116u3gra [Zsolt Vasvari] |
| 58 | headon0117u2ora [Aaron Giles] |
| 59 | numpadremap0117u2gra [Aaron Giles] |
| 60 | joystick0117u2gra [Aaron Giles] |
| 61 | NewUI0117u2ora [Aaron Giles] |
| 62 | mtrap0117u2ora [Aaron Giles] |
| 63 | verifyroms0117u2ora [Aaron Giles] |
| 97 | 64 | |
| 98 | 65 | |
| 99 | 66 | |
| 100 | 67 | Source Changes |
| 101 | 68 | -------------- |
| 102 | | Changed system1 driver back to using SN7489A. [Lord Nightmare] |
| 69 | Added some more setup code for the Naomi driver. [R. Belmont] |
| 103 | 70 | |
| 104 | | Fixed the road graphics, fixed the rest of the missing gfx, added |
| 105 | | collision detection, and added save states to the changela driver. |
| 106 | | Also fixed the colors. [Adam Bousley] |
| 71 | Improved DIP switches in powerins driver. [BisonSAS] |
| 107 | 72 | |
| 108 | | Changed all drivers to use the mame_timer_* calls. Deprecated the |
| 109 | | old double-based timer calls. [Zsolt Vasvari] |
| 73 | Added some basic cdrom switching to the system 573 driver. Hooked it |
| 74 | up for best of cool dancers to work and the Club versions. Added |
| 75 | DIP locations. Moved fake switches to the configuration menu. [smf] |
| 110 | 76 | |
| 111 | | Changes the last few instances of rand() to mame_rand() and added a |
| 112 | | #define to prevent it from being used again. [Zsolt Vasvari] |
| 77 | Added preliminary video hw emulation and sound support to the |
| 78 | 2 Minute Drill driver. [Tomasz Slanina] |
| 113 | 79 | |
| 114 | | Made many of the static info_list*() functions in clifront.c public. |
| 115 | | [Dave Dribin] |
| 80 | Added an optional vsync callback to the TIA emulation to allow a |
| 81 | driver to dynamically change the screen configuration. [Wilbert Pol] |
| 116 | 82 | |
| 117 | | Fixed regression crashes in maxaflex.c, megadriv.c, monzagp.c, |
| 118 | | tetriunk.c, and gticlub.c. [Atari Ace] |
| 83 | Cleaned up redundant function names. [Atari Ace] |
| 119 | 84 | |
| 120 | | Some more TIA graphics and sound improvements: [Wilbert Pol] |
| 121 | | - INPT4 and INPT5 are now read when needed instead of by a timed |
| 122 | | function. This removes the need for the tia_init_pal function. |
| 123 | | - Improved handling of the HMOVE functionality |
| 124 | | - Added code to reduce the flickering caused by some Atari 2600 games |
| 125 | | - Improved the sound poly generation. |
| 126 | | - Improved the handling of POLY5_DIV3 sound mode. |
| 85 | Changed CreateWindowEx() call to be win_create_window_ex_utf8(), |
| 86 | removing the need for a string conversion. [Nathan Woods] |
| 127 | 87 | |
| 128 | | Updated djboy driver: [Phil Stroffolino] |
| 129 | | - support for djboyj; same MCU, but ROM banking bits need to be XOR'd |
| 130 | | - fixed state handling for game over/win transitions |
| 131 | | - fixes for dipswitches |
| 132 | | - added coinage support |
| 88 | Fixed running the konamigx BIOS on its own do what it should: |
| 89 | display a scrolling marquee telling the operator to attach |
| 90 | a ROM board. [Alex Jackson] |
| 133 | 91 | |
| 134 | | Fixed a few places where driver code was not properly hooked up. |
| 135 | | Most cases were benign, but in a couple of instances, save state |
| 136 | | support was disconnected, and in one case it fixes a potential crash. |
| 137 | | [Atari Ace] |
| 92 | Added new debugger commands for hardreset and softreset. |
| 93 | [Nathan Woods] |
| 138 | 94 | |
| 139 | | Fixed regression in Space Raider. [Zsolt Vasvari] |
| 95 | Added built-in support for 14-segment and 16-segment LEDs with |
| 96 | comma/period additions. Split vacfdisp into component specific |
| 97 | drivers. The system now supports the Rockwell 10937 (aka MSC1937) |
| 98 | and 10957, as well as the BD1. All relevant drivers have been |
| 99 | updated with the new code, and new layouts have been prepared. |
| 100 | [James Wallace] |
| 140 | 101 | |
| 141 | | Improved frameskip behavior in the Gaelco 3d driver. [couriersud] |
| 102 | Fixed a few more 64-bit build errors. [Aaron Giles] |
| 142 | 103 | |
| 143 | | Fixed palette regression in warpwarp/geebee. [Atari Ace] |
| 104 | Separated build tools from general tools. Build tools are now located |
| 105 | in the build/ subdirectory. [Aaron Giles] |
| 144 | 106 | |
| 145 | | Added support to chdman to cope with toc files created with cue2toc. |
| 146 | | [smf] |
| 107 | Added new general library module astring.c, which supports allocated |
| 108 | strings of arbitrary length and a number of basic functions on them. |
| 109 | [Aaron Giles] |
| 147 | 110 | |
| 148 | | CPS3 updates: [David Haywood, ElSemi] |
| 149 | | - Corrected Clock speed, used idle skipping instead of reducing the |
| 150 | | clock speed. |
| 151 | | - Optimized some GFX functions. It now only decodes RAM based tiles |
| 152 | | when it needs to draw them, not every single time the data changes |
| 153 | | - Added support for CD flashing |
| 154 | | - Added support for alternate BIOS sets |
| 155 | | - Changed code to use a custom render function |
| 111 | Replaced assemble_x_strings() functions with the astring equivalents. |
| 112 | Updated code in several places to use astrings where appropriate. |
| 113 | [Aaron Giles] |
| 156 | 114 | |
| 157 | | Found a number of additional encrypted opcodes for gussun. [robiza] |
| 115 | Added new tool src2html which is used to convert the MAME source tree |
| 116 | to HTML format with linked include files and color coded keywords |
| 117 | and comments. [Aaron Giles] |
| 158 | 118 | |
| 159 | | Simplified the internal handling of BIOS sets. Instead of there being |
| 160 | | an extra structure, the BIOS information is now embedded in the ROM |
| 161 | | definition for each BIOS. [Atari Ace] |
| 119 | Converted the memory pool code to a more generic resource pool. |
| 120 | Changed internal MAME tracking of timers and save state registrations |
| 121 | over to using the new system. [Aaron Giles] |
| 162 | 122 | |
| 163 | | Fixed 2nd player inputs in Millipede. [Mike Haaland] |
| 123 | Removed underscores from some keycode token names. Thus, |
| 124 | KEYCODE_0_PAD now becomes KEYCODE_0PAD. This is to prevent confusion |
| 125 | when parsing multiple keyboard items. Due to this change, also removed |
| 126 | imperfect backward compatibility with older configs; some mappings |
| 127 | will still work, but some won't. Note that this change will also |
| 128 | break some existing ctrlr files; new ones will be provided. |
| 129 | [Aaron Giles] |
| 164 | 130 | |
| 165 | | Fixed crash in evilngt due to missing CD image. [R. Belmont] |
| 131 | Did some cleanup of the tilemap interfaces. Changed tilemap type |
| 132 | constants to be an enum prefixed by TILEMAP_TYPE_* instead of simply |
| 133 | TILEMAP_*. Removed unused members from the tile_info structure. |
| 134 | [Aaron Giles] |
| 166 | 135 | |
| 167 | | Fixed crash in cfarm/cclown due to out-of-bounds parameter. |
| 168 | | [R. Belmont] |
| 169 | 136 | |
| 170 | | Added stricter checking in cdrom.c to prevent crashes in games when |
| 171 | | no CD-ROM is present. [R. Belmont] |
| 172 | 137 | |
| 173 | | Fixed regressions in dkongjr and pestplce due to incorrect memory map |
| 174 | | and rendering too many sprites. [couriersud] |
| 175 | | |
| 176 | | Fixed SUBTARGET=tiny builds. [neoforma] |
| 177 | | |
| 178 | | Hooked up P1 joystick inputs for P2 in Upright mode in a number of |
| 179 | | black & white 8080 games. Removed cocktail settings for games where |
| 180 | | it is not appropriate. Enabled dual player game in spclaser. |
| 181 | | [Mike Haaland] |
| 182 | | |
| 183 | | x64 compilation fixes: [Oliver Stoneberg] |
| 184 | | - some VS2005 x64 warning fixes |
| 185 | | - enables the x64 porting warnings in VS2005 |
| 186 | | - adds win_create_window_ex_utf8() to get rid of some |
| 187 | | tstring_from_utf8() usage |
| 188 | | - removed win_extract_icon_utf8() |
| 189 | | |
| 190 | | Improved color decoding in Irem M62 games. [Zsolt Vasvari] |
| 191 | | |
| 192 | | Synchronized MAME and AGEMAME versions of the MPU4 code. Improved |
| 193 | | Connect4 layout. Simplified much of the code. |
| 194 | | [James Wallace, Atari Ace] |
| 195 | | |
| 196 | | Improved the 6532riot timer implementation. Implemented irq callback |
| 197 | | support. [Wilbert Pol] |
| 198 | | |
| 199 | | Updates to the minx CPU core: [Wilbert Pol] |
| 200 | | - Fixed TEST (94,95,96, and 97) instructions. |
| 201 | | - Fixed 2 MOV instructions (BE and BF). |
| 202 | | - Fixed one AND instruction (DC). |
| 203 | | |
| 204 | | Simplified interrupt handling in the z80gb core. [Wilbert Pol] |
| 205 | | |
| 206 | | Hooked up lamps in Afterburner 2 driver. [Zsolt Vasvari] |
| 207 | | |
| 208 | | Fixed missing sound in PGM games. [Zsolt Vasvari] |
| 209 | | |
| 210 | | Fixed Millipede sprites in cocktail mode. [Mike Haaland] |
| 211 | | |
| 212 | | Fixed behavior of the RC filter in ddrible and ironhors. [couriersud] |
| 213 | | |
| 214 | | Added wrap around x for sprites in the m92 driver. |
| 215 | | [Pierpaolo Prazzoli] |
| 216 | | |
| 217 | | |
| 218 | | |
| 219 | | New games added or promoted from NOT_WORKING status |
| 220 | | --------------------------------------------------- |
| 221 | | Change Lanes [Adam Bousley] |
| 222 | | DJ Boy [Phil Stroffolino] |
| 223 | | |
| 224 | | |
| 225 | | |
| 226 | 138 | New clones added |
| 227 | 139 | ---------------- |
| 228 | | B.Rap Boys (World) [Brian Troha] |
| 140 | Cross Blades! (Japan) [Stefan Lindberg] |
| 141 | Shadow Force (Japan Version 2) [Stefan Lindberg] |
| 142 | Dig Dug (Sidam bootleg) [David Haywood] |
| 143 | Dance Dance Revolution Best of Cool Dancers [smf] |
| 229 | 144 | |
| 230 | 145 | |
| 231 | 146 | |
| 232 | 147 | New games marked as GAME_NOT_WORKING |
| 233 | 148 | ------------------------------------ |
| 234 | | Final Godori [Pierpaolo Prazzoli] |
| 149 | Astron Belt [Andrew Gardner] |
| 150 | Cobra Command (Sega LaserDisc Hardware) [Andrew Gardner] |
| 151 | Galaxy Ranger [Andrew Gardner] |
| 152 | Star Blazer [Andrew Gardner] |
| 235 | 153 | |
| 236 | 154 | |
| 237 | 155 | |
| 238 | | 0.116u3 |
| 156 | 0.117u2 |
| 239 | 157 | ------- |
| 240 | 158 | |
| 241 | 159 | |
| 242 | 160 | MAMETesters Bugs Fixed |
| 243 | 161 | ---------------------- |
| 162 | joystickremap0117u1gra [Aaron Giles] |
| 163 | mallocerror0117u1gra [Aaron Giles] |
| 164 | mouse0117u1gra [Aaron Giles] |
| 165 | newinterface0117u1gra [Aaron Giles] |
| 166 | tapper0102gre2 [Ernesto Corvi] |
| 167 | timber0100u3gre [Ernesto Corvi] |
| 168 | tapper0102gre1 [Aaron Giles] |
| 169 | timber099gre [Aaron Giles] |
| 170 | mcr0103u3yel [Aaron Giles] |
| 171 | dotrone0101u5yel [Aaron Giles] |
| 244 | 172 | |
| 245 | 173 | |
| 174 | |
| 246 | 175 | Source Changes |
| 247 | 176 | -------------- |
| 248 | | Simplified CPS3 decryption function. [Nicola Salmoria] |
| 177 | Imola GP updates: [Phil Stroffolino] |
| 178 | - renamed from "monzagp" |
| 179 | - the leds are fully mapped |
| 180 | - fixes for blitter modes, that affect the "tunnel" area |
| 181 | - dipswitch/port fixes; game now starts in attract mode, rather |
| 182 | than immediately starting |
| 183 | - placeholder (handpicked) colors |
| 249 | 184 | |
| 250 | | Fixed potential double free in PNG code. [Nathan Woods] |
| 185 | Updated DIP switches for topland & ainferno according to their |
| 186 | manuals. [Fabio Priuli] |
| 251 | 187 | |
| 252 | | Fixed warnings generated by newer gcc compilers. [R. Belmont] |
| 188 | More SH-4 core improvements: [Samuele Zannoli] |
| 189 | - fixes some problems in the disassembly and instruction execution |
| 190 | from the previous patch |
| 191 | - adds interrupt management |
| 192 | - implements register bank switching |
| 193 | - adds RTC timer counters |
| 194 | - adds memory refresh timer |
| 195 | - adds three timers of the TMU |
| 196 | - adds a configuration structure that specifies the processor mode |
| 197 | pin settings |
| 198 | - internal processor clock frequencies calculated from mode pins and |
| 199 | cpu clock |
| 200 | - systems using the sh4 processor secify its configuration structure |
| 253 | 201 | |
| 254 | | General driver cleanups: [Zsolt Vasvari] |
| 255 | | - changed some more global ‘Machine’ to local ‘machine’ |
| 256 | | - standardized on the function name ‘draw_sprites’ |
| 257 | | - removed some antiquated boilerplate comments |
| 202 | Fixed some DIP switches in littlerb. [Sonikos] |
| 258 | 203 | |
| 259 | | Updated FM emulator to use mame_time instead of double. Removed old |
| 260 | | neogeo hack from FM code as it appears to no longer be necessary. |
| 261 | | [Zsolt Vasvari] |
| 204 | Made some minor code quality changes across the code: [Atari Ace] |
| 205 | - avoided exporting a few global variables |
| 206 | - fixed variable names that conflicted with typedef names |
| 207 | - removed some shadow variables that were bugs or unnecessary |
| 208 | - removed extraneous #defines |
| 262 | 209 | |
| 263 | | Updated all sound cores to use mame_time instead of double. |
| 264 | | [Zsolt Vasvari] |
| 210 | Fixed up sc61860 core, f3853 core, and pckeybd.c to work with new |
| 211 | timing code. [Nathan Woods] |
| 265 | 212 | |
| 266 | | Populated several more Irem CPU opcodes for gussun. [robiza] |
| 213 | More TIA improvements: [Wilbert Pol] |
| 214 | - fixed some minor missile graphics positioning issues |
| 215 | - moved some initialization code from tia_init to tia_reset |
| 267 | 216 | |
| 268 | | Fixed CPS3 code to work on big-endian systems. [R. Belmont] |
| 217 | Fixed a few errors related to headers in the source code. Added |
| 218 | missing self-includes, removed dead prototypes, and added location |
| 219 | comments in headers in mame/includes. In a few cases the audit |
| 220 | showed items that didn't need to be exported so they were made |
| 221 | static. [Atari Ace] |
| 269 | 222 | |
| 270 | | Fixed code_to_token() to prevent potential buffer overflows. |
| 271 | | [Atari Ace] |
| 223 | Cleaned up the inputs in gdrawpkr and changed the hold buttons to |
| 224 | "discard" since they are in fact discard buttons. [Roberto Fresca] |
| 272 | 225 | |
| 273 | | Fixed crashes in non-working drivers dynablsb and driveyes. |
| 274 | | [Atari Ace] |
| 226 | Added support for 14- and 16-segment LED displays to the MAME |
| 227 | artwork system. [Dirk Best] |
| 275 | 228 | |
| 276 | | Changed all CPU cores’ internal timers to the mame_timer* functions |
| 277 | | as well as the remaining couple of core files that still used |
| 278 | | timer_alloc(). After this, none of the emu/* files have any old style |
| 279 | | timing code left. [Zsolt Vasvari] |
| 229 | Fixed button 4 of player 2 inputs in bloodwar. [Barry Harris] |
| 280 | 230 | |
| 281 | | Various CPS3 updates as documented on Haze's blog. [David Haywood] |
| 231 | Connected S14001A speech to the wolfpack driver. [Lord Nightmare] |
| 282 | 232 | |
| 283 | | Fixed type in BLENDER2_32 function in the n64 video code. |
| 284 | | [Christophe Jaillet] |
| 233 | Fixed incorrect implementation of SSIO volume controls in the MCR |
| 234 | driver. This makes the engine sound in Spy Hunter audible again, |
| 235 | among other things. [Ernesto Corvi] |
| 285 | 236 | |
| 286 | | Created a new resistor network interface for computing palettes from |
| 287 | | color PROMs and component values on the PCB. Fixed several issues |
| 288 | | with the previous implementation. [couriersud] |
| 237 | Added support back for the "none" option for the various *_device |
| 238 | options. [Nathan Woods] |
| 289 | 239 | |
| 290 | | Donkey Kong driver update: [couriersud] |
| 291 | | - added sprite ram bank switching from schematics |
| 292 | | - combined memory maps |
| 293 | | - first attempts on decoding m58815 |
| 294 | | - radarsc1 driver for radarscope trs01 hardware |
| 295 | | - all drivers use VIDEO_RAW now |
| 296 | | - fixed cocktail issues |
| 297 | | - combined io and sound memory maps |
| 298 | | - implemented background handling (disable prom /CS line) in all |
| 299 | | dkong drivers |
| 240 | Fixed HD6309 dissaembly of the post-byte for ,W++ and ,--W. |
| 241 | [Captain Ahab] |
| 300 | 242 | |
| 301 | | Extended the flt_rc filter to support highpass filtering. Fixed the |
| 302 | | lowpass filter to actually do a lowpass filter. Hooked up the filter |
| 303 | | to King & Balloon and updated several other drivers to the new |
| 304 | | interface. [couriersud] |
| 243 | Updated the 6532 riot interface to be more like the 6522via and |
| 244 | 6821pia interfaces. [Wilbert Pol] |
| 305 | 245 | |
| 306 | | Added support in the main makefile for profiling. Set PROFILE=1 to |
| 307 | | turn this on. [Christophe Jaillet] |
| 246 | Improved -listxml output to reflect new BIOS flag. New attribute |
| 247 | isbios="yes" indicates that a given game is a BIOS. [Aaron Giles] |
| 308 | 248 | |
| 309 | | Updated djboy driver to almost fully playable state. |
| 310 | | [Phil Stroffolino] |
| 249 | Further tweaks to the game selection UI: [Aaron Giles] |
| 250 | - disabled the tab key |
| 251 | - added hook for general input configuration from the menu |
| 252 | - split set names from friendly names into left/right columns |
| 253 | - added a background to the descriptive names of clones |
| 254 | - if you start with the game selection menu, hitting Esc to exit |
| 255 | a game brings you back to the menu rather than quitting |
| 256 | immediately |
| 257 | - fixed logic so that INI files are reloaded for each game |
| 311 | 258 | |
| 312 | | Temporarily reverted input code back to 0.116 baseline pending deeper |
| 313 | | analysis and upcoming core changes to simplify the OSD layer for input |
| 314 | | management. [Aaron Giles] |
| 315 | | |
| 316 | | Changed a number of stderr fprintf's in the Windows OSD code to |
| 317 | | mame_printf_error and mame_printf_warning calls, as appropriate. |
| 259 | Moved INI file handling fully into the core. As a side-effect of this |
| 260 | change, <exename>.ini is no longer parsed. Changed -createconfig to |
| 261 | always output mame.ini instead of <exename>.ini as a result. |
| 318 | 262 | [Aaron Giles] |
| 263 | |
| 264 | Renamed run_game() to mame_execute(). The game driver is no longer |
| 265 | specified as a parameter; rather, this information is extracted from |
| 266 | the options via OPTION_GAMENAME. [Aaron Giles] |
| 319 | 267 | |
| 268 | Fixed raw input-based lightgun buttons. [Aaron Giles] |
| 320 | 269 | |
| 270 | Cleaned up options.c code. Added priority levels to options as they |
| 271 | are set. New options are only accepted if they have greater or equal |
| 272 | priority to a previous change. Added new function options_revert() to |
| 273 | revert options below a given priority to their defaults. Changed |
| 274 | options_get_string() so that it always returns a valid string |
| 275 | (never NULL). Invalid strings are returned as empty strings. |
| 276 | [Aaron Giles] |
| 321 | 277 | |
| 322 | | New games added or promoted from NOT_WORKING status |
| 323 | | --------------------------------------------------- |
| 324 | | DaiDaiKakumei (Japan) [Hau, Team Japump!] |
| 325 | | CPS3 games: [David Haywood, Andreas Naive, ElSemi] |
| 326 | | Street Fighter III: New Generation |
| 327 | | Street Fighter III 2nd Impact: Giant Attack |
| 328 | | Street Fighter III 3rd Strike: Fight for the Future |
| 329 | | JoJo's Venture |
| 330 | | JoJo's Bizarre Adventure: Heritage for the Future |
| 331 | | Warzard |
| 278 | Added new functions core_filename_extract_base() and |
| 279 | core_filename_ends_with() to corefile.h. [Aaron Giles] |
| 332 | 280 | |
| 281 | Changed menu rendering a bit. Added a background hilight to more |
| 282 | strongly emphasize the current item. Added rendered arrows to indicate |
| 283 | more items on the top/bottom and to indicate selection options in the |
| 284 | DIP switch menus. Changed hilighting to be a bit less garish. Fixed |
| 285 | repeat rates on keys to no longer be tied to the framerate. |
| 286 | [Aaron Giles] |
| 333 | 287 | |
| 288 | Added support for page up/page down generically in menus. Also made |
| 289 | pause toggle work while menus are visible. [Aaron Giles] |
| 334 | 290 | |
| 335 | | New clones added |
| 336 | | ---------------- |
| 337 | | The Tin Star (set 2) [David Haywood] |
| 338 | | Car 2 (bootleg of Head On 2) [David Haywood] |
| 339 | | Radar Scope (TRS01) [couriersud] |
| 340 | | Crouching Tiger Hidden Dragon 2003 Super Plus alternate [JohnBoy] |
| 341 | | Pop Flamer (bootleg on Naughty Boy PCB) [David Haywood] |
| 291 | Changed render_textures to allocate in a pool model, to avoid high |
| 292 | memory overhead when allocating large numbers of textures (for example |
| 293 | in the 14- and 16-segment LED displays). [Aaron Giles] |
| 342 | 294 | |
| 295 | Fixed a number of 64-bit compiler warnings. [Aaron Giles] |
| 343 | 296 | |
| 344 | 297 | |
| 345 | | New games marked as GAME_NOT_WORKING |
| 346 | | ------------------------------------ |
| 347 | | Missile Combat (Videotron bootleg) [David Haywood] |
| 348 | | Aladdin (bootleg of Japanese Megadrive version) [David Haywood] |
| 349 | 298 | |
| 299 | New games added or promoted from NOT_WORKING status |
| 300 | --------------------------------------------------- |
| 301 | King Pin [Andrew Gardner] |
| 302 | King Pin Multi-Game [Andrew Gardner] |
| 350 | 303 | |
| 351 | 304 | |
| 352 | | 0.116u2 |
| 305 | |
| 306 | 0.117u1 |
| 353 | 307 | ------- |
| 354 | 308 | |
| 355 | 309 | |
| 356 | 310 | MAMETesters Bugs Fixed |
| 357 | 311 | ---------------------- |
| 358 | | adk0116yel [Zsolt Vasvari] |
| 359 | | neodrvr0116u1red [Zsolt Vasvari] |
| 360 | | strhoop0116u1red [Zsolt Vasvari] |
| 361 | | wb3_0116u1gre [Aaron Giles] |
| 312 | brkthru091u1gra [Luigi30] |
| 313 | debbuger+psx_0117ora [Aaron Giles] |
| 314 | cbtime0117red [Zsolt Vasvari] |
| 315 | hotpinbl0117gra [Roberto Fresca] |
| 316 | batrider0114red [Alex Jackson] |
| 317 | battleg0113u4red [Alex Jackson] |
| 318 | battleg0116u1ora [Alex Jackson] |
| 319 | |
| 320 | |
| 362 | 321 | |
| 363 | | |
| 364 | | |
| 365 | 322 | Source Changes |
| 366 | 323 | -------------- |
| 367 | | Fixed regressions in Gridlee and Gomoku. [Zsolt Vasvari] |
| 324 | Fixed bug in screenless systems. [Nathan Woods] |
| 368 | 325 | |
| 369 | | Fixed some unicode build issues in the Windows code. |
| 370 | | [Oliver Stoneberg] |
| 326 | Fixed crash in chd code if reading beyond the end of the file. |
| 327 | [Roman Scherzer] |
| 371 | 328 | |
| 372 | | Updated a number of games to correctly use the SN76489 instead of the |
| 373 | | SN76496, which was a later design. [Justin Kerk, Lord Nightmare] |
| 329 | Moved Sand Scorpian and Gals Panic over to use the Pandora emulation. |
| 330 | Also fixed some problems in the pandora emulation which improves the |
| 331 | sprites in Djboy. [David Haywood] |
| 374 | 332 | |
| 375 | | Cleaned up the exports from a number of drivers, adding static |
| 376 | | qualifiers to functions and variables t hat don't need to be exported |
| 377 | | and have generic sounding names. [Atari Ace] |
| 333 | Added new function timer_call_after_resynch(), which effectively |
| 334 | sets a zero-duration timer for resynchronization. Replaced instances |
| 335 | of zero-duration timers in the code with this more descriptive call. |
| 336 | [Zsolt Vasvari] |
| 378 | 337 | |
| 379 | | Updated numerous drivers to remove the use of global Machine wherever |
| 380 | | possible. Also reviewed the clipping regions and made changes to |
| 381 | | ensure the passed-in cliprect was honored. [Zsolt Vasvari] |
| 338 | Defined new macro TIMER_CALLBACK, which should be used to wrap |
| 339 | timer callbacks. Added a running_machine * parameter to timer |
| 340 | callbacks. Updated all existing timer callbacks to use the new |
| 341 | macro. [Zsolt Vasvari] |
| 382 | 342 | |
| 383 | | Cleaned up the Dooyong driver: [Vas Crabb] |
| 384 | | * Consolidated and streamlined tilemap callbacks |
| 385 | | * Took better advantage of MAME's tilemap caching by building |
| 386 | | larger tilemaps so they don't need to be invalidated as often |
| 387 | | * Interpreted sprite Y position as signed 9-bit value in |
| 388 | | rshark/superx (fixes some glitches) |
| 389 | | * Added more explanatory comments to help others reading the code |
| 343 | Added more opcode decryption to gussun. [Robiza] |
| 390 | 344 | |
| 391 | | Changed a number of mame timer objects from void * to mame_timer *. |
| 392 | | [Atari Ace] |
| 345 | Added discrete sound to headon and clones in vicdual.c. [couriersud] |
| 393 | 346 | |
| 394 | | Fixed a couple more Irem CPU opcodes to improve Match It 2. |
| 395 | | [Robiza] |
| 347 | Added two inverter oscillators supporting enable and mixing in signals |
| 348 | to discrete.h / disc_wav.c. [couriersud] |
| 396 | 349 | |
| 397 | | Fixed collision detection bug in thunderX. [Shimapong] |
| 350 | Fixed a few bugs in the change lanes video emulation. [Adam Bousley] |
| 398 | 351 | |
| 399 | | Initial cut at working CPS3 driver. Basically works but has a lot |
| 400 | | more work to be done to finish it up. |
| 401 | | [David Haywood, Andreas Naive, Tomasz Slanina, ElSemi, Philip Bennett] |
| 352 | Updated the monzagp driver into a somewhat playable state. There are |
| 353 | still some graphics problems. LEDs still need to be hooked up for |
| 354 | score/time-remaining display. [Phil Stroffolino] |
| 402 | 355 | |
| 403 | | Fixed minor cycle timing issue in 6809 CPU core. [Ernesto Corvi] |
| 356 | Neo-Geo update: [Zsolt Vasvari] |
| 357 | - BIOS only driver 'neogeo' no longer crashes |
| 358 | - Cleaned up memory banking code to use memory_set_bank() instead |
| 359 | of memory_set_bank_ptr() |
| 360 | - Fixed LEDs |
| 404 | 361 | |
| 405 | | Neo-Geo updates: [Zsolt Vasvari] |
| 406 | | * Fixed several regressions from previous update |
| 407 | | * Added LED outputs |
| 408 | | * Improved smaller visible area configuration |
| 362 | Improvements to the toaplan2 driver: [Alex Jackson] |
| 363 | - Replaced byteswapped truxton2 M68K program ROM with correct one |
| 364 | - Fixed sound CPU communications in the Raizing games. This is |
| 365 | educated guesswork, but it's more complete and probably more |
| 366 | correct than what was there before, and doesn't rely on excessive |
| 367 | use of cpu_yield() |
| 368 | - Added more information about the Raizing sets to the comments in |
| 369 | the driver, and corrected some errors |
| 370 | - Reorganized the Battle Garegga sets in a more sensible fashion |
| 409 | 371 | |
| 410 | | Fixed some incorrect information in the Neo Geo ROMsets. [JohnBoy] |
| 411 | | |
| 412 | | Integrated platform-specific changes into the core makefile, mostly |
| 413 | | taken from the SDLMAME makefile. Changed the MAMEOS configuration |
| 414 | | variable to OSD, indicating which OSD layer is being compiled. Added |
| 415 | | a new configuration variable TARGETOS which specifies the target OS |
| 416 | | platform. [Aaron Giles] |
| 372 | Reworked input system to push more features into the core. Cleaned |
| 373 | up architecture to properly separate dependencies. Please note that |
| 374 | this change only addresses the lower layer of input handling. The |
| 375 | upper layer (i.e., input port handling at the driver layer) remains |
| 376 | the same. [Aaron Giles] |
| 417 | 377 | |
| 378 | Major changes include: |
| 418 | 379 | |
| 380 | * Removed the concept of os_code from the system. Now all codes |
| 381 | are defined via a set of macros in input.h. Each code is a 32-bit |
| 382 | value that encodes a device class, device index, item class, |
| 383 | item modifier, and item ID. |
| 384 | |
| 385 | * Removed OSD functions osd_get_code_list() and osd_get_code_value(). |
| 386 | Instead, the OSD layer during osd_init() must register one or more |
| 387 | devices and the input items attached to each device via two new |
| 388 | functions input_device_add() and input_device_item_add(). |
| 389 | |
| 390 | * Separated input sequence code into new module inputseq.c. |
| 391 | |
| 392 | * Moved support for the following options into the core: -mouse, |
| 393 | -joystick, -lightgun, -steadykey, -offscreen_reload, -joy_deadzone, |
| 394 | -joy_saturation, -paddle_device, -adstick_device, -pedal_device, |
| 395 | -dial_device, -trackball_device, -lightgun_device, |
| 396 | -positional_device, -mouse_device. The OSD layer should simply |
| 397 | register all devices at osd_init() time and allow the core to |
| 398 | enable/disable them according to the options. |
| 399 | |
| 400 | * Added two new options: -multikeyboard and -multimouse. By default, |
| 401 | both options are OFF. When OFF, the core will combine all keyboard |
| 402 | or mouse input into a single keyboard or mouse device. When ON, |
| 403 | these options instruct the core to keep inputs for each keyboard |
| 404 | and/or mouse independent. |
| 405 | |
| 406 | * Added new option: -joystick_map. This option allows for a 9x9 grid |
| 407 | to be specified which controls analog-to-digital mapping of |
| 408 | joystick inputs. |
| 409 | |
| 410 | * Changed the Windows implementation of input handling to fully |
| 411 | support the raw input interfaces for keyboard and mouse. |
| 412 | DirectInput is still used for all joystick inputs, as well as for |
| 413 | keyboard and mouse inputs on pre-Windows XP systems. This allows |
| 414 | for multiple keyboards and mice to be supported. Also changed |
| 415 | keyboard and mouse behavior to use non-exclusive mode in |
| 416 | DirectInput, and to keep the devices alive during pause for more |
| 417 | consistent input handling. |
| 419 | 418 | |
| 420 | | New clones added |
| 421 | | ---------------- |
| 422 | | Punch-Out!! (Italian bootleg) [David Haywood] |
| 419 | * Broke windows.txt into config.txt, which contains all common |
| 420 | core-supported options and commmands, and windows.txt, which now |
| 421 | only lists Windows-specific additions. |
| 423 | 422 | |
| 423 | Added support for frame update callbacks, similar to pause and exit |
| 424 | callbacks but called at the same time as osd_update(). [Aaron Giles] |
| 424 | 425 | |
| 426 | Changed osd_init() to no longer return a value. OSD initialization |
| 427 | should now rely on fatalerror() to report fatal initialization |
| 428 | problems. [Aaron Giles] |
| 425 | 429 | |
| 426 | | New games marked as GAME_NOT_WORKING |
| 427 | | ------------------------------------ |
| 428 | | Mini Boy 7 [Roberto Fresca] |
| 430 | Added new function mame_schedule_new_driver() which allows for a new |
| 431 | driver to be queued after a hard reset. [Aaron Giles] |
| 429 | 432 | |
| 433 | Added experimental new minimal game selection user interface. This |
| 434 | interface can be accessed if MAME is started with no parameters, or |
| 435 | via the main menu by choosing "Select a New Game". This interface |
| 436 | allows you to select a game driver by typing in the name of the game. |
| 437 | As you type, MAME's fuzzy name matching code will list the top 15 |
| 438 | selections that match. The interface will only display games that |
| 439 | it finds in your rompath. [Aaron Giles] |
| 430 | 440 | |
| 441 | Added "empty" driver which is used to host the game selection screen |
| 442 | when no valid game is selected. [Aaron Giles] |
| 431 | 443 | |
| 432 | | 0.116u1 |
| 433 | | ------- |
| 444 | Changed behavior in the Windows build so that double-clicking on |
| 445 | MAME brings up the new game selection interface. [Aaron Giles] |
| 434 | 446 | |
| 447 | Removed the NOT_A_DRIVER flag which was overloaded to mean two |
| 448 | different things. There are now two new flags: GAME_IS_BIOS_ROOT |
| 449 | indicates that a particular driver represents a BIOS rather than |
| 450 | a full game. And GAME_NO_STANDALONE indicates that the given driver |
| 451 | should not be listed or permitted to execute on its own. For MAME, |
| 452 | most BIOSes are executable on their own, so they have the |
| 453 | GAME_IS_BIOS_ROOT flag set but not the GAME_NO_STANDALONE flag. |
| 454 | [Aaron Giles] |
| 435 | 455 | |
| 436 | | MAMETesters Bugs Fixed |
| 437 | | ---------------------- |
| 438 | | shanghai0116red [Aaron Giles] |
| 439 | | bldwolf061gre [Robiza] |
| 440 | | superx0116gre [Robiza] |
| 441 | | matchit2_0116ora [Robiza] |
| 442 | | qix0116yel [Aaron Giles] |
| 456 | Added new routines mame_openpath(), mame_readpath(), and |
| 457 | mame_closepath() for iterating over all files in a path specification, |
| 458 | including support for multiple paths. [Aaron Giles] |
| 443 | 459 | |
| 460 | Changed audit interfaces to take a game_driver * instead of a game |
| 461 | index. [Aaron Giles] |
| 444 | 462 | |
| 463 | Changed driver_get_approx_matches() and driver_get_count() APIs to |
| 464 | work on arbitrary driver lists rather than being hard-coded to the |
| 465 | static driver list. Renamed the functions from driver_get_* to |
| 466 | driver_list_get_* [Aaron Giles] |
| 445 | 467 | |
| 446 | | Source Changes |
| 447 | | -------------- |
| 448 | | Fixed scanline address reporting in the qix driver. [Zsolt Vasvari] |
| 449 | 468 | |
| 450 | | Rewrote Neo-Geo driver again based on information from Charles |
| 451 | | MacDonald. This update fixes a number of issues with the previous |
| 452 | | attempt. [Zsolt Vasvari] |
| 453 | 469 | |
| 454 | | Added support for multiple keyboards: [Andrew Kurushin] |
| 455 | | - added multikeyboard input support through RAWINPUT mechanism |
| 456 | | (up to 8 simultaneous keyboard inputs |
| 457 | | - fixed RAWINPUT device registry enumeration bugs |
| 470 | New games added or promoted from NOT_WORKING status |
| 471 | --------------------------------------------------- |
| 472 | Sliver [Tomasz Slanina] |
| 458 | 473 | |
| 459 | | Fixed the reset mode in CDP1802. [Curt Coder] |
| 460 | 474 | |
| 461 | | Fixed a number of errors and simplified the code significantly in the |
| 462 | | ptm6840 code. [Atari Ace] |
| 463 | 475 | |
| 464 | | Fixed offset for sprite and layers in fcrash driver. [Robiza] |
| 476 | New clones added |
| 477 | ---------------- |
| 478 | Space Dragon (Moon Cresta bootleg) [David Haywood] |
| 479 | Battle Garegga - Type 2 (Europe / USA / Japan / Asia) [Alex Jackson] |
| 465 | 480 | |
| 466 | | SH4 CPU core improvements: [Samuele Zannoli] |
| 467 | | - corrected opcode decoding and decodes all opcodes of sh4 |
| 468 | | - corrected disassembly and added support for all instruction of |
| 469 | | sh4 not in sh2 |
| 470 | | - now disassembles all fpu instructions |
| 471 | | - changed cpu to little-endian (sh4 can be either big or little) |
| 472 | | - corrected which data is read and written from memory |
| 473 | | - added registers fpul and dbr |
| 474 | | - added (non-fpu) instructions of sh4 non present in sh2 |
| 475 | | - added four fpu instructions |
| 476 | | - modified memory-mapped internal register management so that all |
| 477 | | internal registers can be actually used |
| 478 | | - added file sh4regs.h with defines for all sh7750 internal registers |
| 479 | | - implemented internal registers for memory refresh |
| 480 | | - removed some internal registers of sh2 not present in sh4 |
| 481 | | - added preliminary support for internal cache used as ram |
| 482 | 481 | |
| 483 | | Updated CPS2 decryption bit order to match what is likely the original |
| 484 | | order. [Nicola Salmoria] |
| 485 | 482 | |
| 486 | | Fixed a few warnings that show up with -Wextra. |
| 487 | | [Atari Ace, Zsolt Vasvari] |
| 488 | | |
| 489 | | Fixed toaplan2.c so that OKI6295 sample ROM bankswitching via one |
| 490 | | of the spare data lines on the coin mechanism port is only hooked up |
| 491 | | in the one game that's actually wired this way (shippumd). [AWJ] |
| 492 | | |
| 493 | | Updated the scrambls protection implementation to use equations based |
| 494 | | on the implementation from fpgaarcade.com. [Mark McDougall] |
| 495 | | |
| 496 | | Improved GCD computations in the rendlay.c code. [Christophe Jaillet] |
| 497 | | |
| 498 | | Fixed numerous regressions in the 0.116 release. |
| 499 | | [Zsolt Vasvari, Aaron Giles] |
| 500 | | |
| 501 | | Switched driver code to exclusively using mame_rand() instead of |
| 502 | | rand(), to improve consistency of results. [Aaron Giles] |
| 503 | | |
| 504 | | Improved MCU timing and communication in the qix driver. Still a few |
| 505 | | issues remain. [Aaron Giles] |
| 506 | | |
| 507 | | |
| 508 | | |
| 509 | | New games added or promoted from NOT_WORKING status |
| 510 | | --------------------------------------------------- |
| 511 | | Match It II [Robiza] |
| 483 | New games marked as GAME_NOT_WORKING |
| 484 | ------------------------------------ |
| 485 | Gals Panic (US, EXPRO-02 PCB) [David Haywood] |
| 486 | Balloon & Balloon [Pierpaolo Prazzoli] |