Previous 15994 Revisions Next

r789 Monday 6th August, 2007 at 02:24:07 UTC by Nathan Woods
Updated to MAME 0.118
[ROOT]makefile.mes whatsnew.txt
[docs]messnew.txt
[src]version.c
[src/build]file2str.c
[src/emu]clifront.c mame.c memory.c uimenu.c
[src/emu/cpu/hd6309]6309ops.c hd6309.c
[src/emu/cpu/sh4]sh4.c
[src/emu/debug]debugcpu.c debugvw.c
[src/emu/sound]tms5220.c tms5220.h wave.c
[src/mame]mame.mak mamedriv.c
[src/mame/drivers]bfm_sc2.c cojag.c ksys573.c m107.c m72.c m92.c mediagx.c mpu4.c stv.c tecmo16.c vamphalf.c
[src/mame/layout]mpu4.lay
[src/mame/machine]bfm_bd1.c bfm_bd1.h irem_cpu.c n64.c pckeybrd.c stvcd.c
[src/mame/video]bfm_adr2.c namcos22.c nemesis.c
[src/mess/osd/windows]climain.c messlib.c
[src/osd/windows]drawd3d.c main.c vconv.c windows.mak
[src/tools]chdman.c romcmp.c

makefile.mes
r788r789
107107# uncomment next line to include the symbols
108108# SYMBOLS = 1
109109
110# uncomment next line to include profiling information
111# PROFILE = 1
112
110113# uncomment next line to generate a link map for exception handling in windows
111114# MAP = 1
112115
r788r789
344347   -Wwrite-strings \
345348   -Wno-unused-function \
346349
350# add profiling information for the compiler
351ifdef PROFILE
352CFLAGS += -pg
353endif
354
347355# this warning is not supported on the os2 compilers
348356ifneq ($(TARGETOS),os2)
349357CFLAGS += -Wdeclaration-after-statement
r788r789
411419LDFLAGS =
412420LDFLAGSEMULATOR =
413421
414# strip symbols and other metadata in non-symbols builds
422# strip symbols and other metadata in non-symbols and non profiling builds
415423ifndef SYMBOLS
424ifndef PROFILE
416425LDFLAGS += -s
417426endif
427endif
418428
419429# output a map file (emulator only)
420430ifdef MAP
src/build/file2str.c
r788r789
9292   fprintf(dst, "\n};\n");
9393
9494   /* close the files */
95   free(buffer);
9596   fclose(dst);
9697   return 0;
9798}
src/mame/machine/bfm_bd1.h
r788r789
33
44#define MAX_BD1  3     // max number of displays emulated
55
6void   bfm_bd1_init( int id );               // setup a display
6void   BFM_BD1_init( int id );               // setup a display
77
8void   bfm_bd1_reset( int id);               // reset the alpha
8void   BFM_BD1_reset( int id);               // reset the alpha
99
10void   bfm_bd1_shift_data(int id, int data);   // clock in a bit of data
10void   BFM_BD1_shift_data(int id, int data);   // clock in a bit of data
1111
12int      bfm_bd1_newdata(   int id, int data);   // clock in 8 bits of data
12int      BFM_BD1_newdata(   int id, int data);   // clock in 8 bits of data
1313
14UINT32   *bfm_bd1_get_segments(int id);         // get current segments displayed
15UINT32  *bfm_bd1_set_outputs(int id);         // convert segments to standard for display
16UINT32  *bfm_bd1_get_outputs(int id);         // get converted segments
14UINT32   *BFM_BD1_get_segments(int id);         // get current segments displayed
15UINT32  *BFM_BD1_set_outputs(int id);         // convert segments to standard for display
16UINT32  *BFM_BD1_get_outputs(int id);         // get converted segments
1717
18char   *bfm_bd1_get_string( int id);         // get current string   displayed (not as accurate)
18char   *BFM_BD1_get_string( int id);         // get current string   displayed (not as accurate)
1919
20void   bfm_bd1_draw(int id);
20void   BFM_BD1_draw(int id);
2121#endif
2222
src/mame/machine/irem_cpu.c
r788r789
55    It uses a simple opcode lookup encryption, the painful part is that it's
66    preprogrammed into the cpu and isn't a algorithmic based one.
77
8    Hasamu                          Nanao   08J27261A1 011 9102KK700
9    Gunforce                        Nanao   08J27261A  011 9106KK701
10    Ken-Go                          ?       ? (Same as Gunforce)
11    Bomberman                       Nanao   08J27261A1 012 9123KK200
12    Atomic Punk                     ?       08J27291A1 012 9128KK440
13    Blade Master                    ?       ? (Same as Bomberman)
14    Quiz F-1 1,2 Finish             Nanao   08J27291A4 014 9147KK700
15    Gunforce 2                      Nanao   08J27291A4 014 92457KK700
16    Lethal Thunder                  ?       ? (Same as Quiz F1 and Gunforce 2)
17    Bomberman World / New Atomic Punk             ?
18    Undercover Cops                         ? (Same as BMan World)
19    Gun Hohki                       Nanao   08J27291A6 016
20    Skins Game                      Nanao   08J27291A7 017
8    Hasamu                             Nanao   08J27261A1 011 9102KK700
9    Gunforce                           Nanao   08J27261A1 011 9106KK701
10    Ken-Go                             Nanao   08J27261A1 011 9102KK701
11    Bomberman                          Nanao   08J27261A1 012 9123KK200
12    Atomic Punk                        Nanao   08J27291A1 012 9128KK440
13    Blade Master / Cross Blades!       Nanao   08J27291A1 012 9123KK740
14    Quiz F-1 1,2 Finish                Nanao   08J27291A4 014 9147KK700
15    Gunforce 2                         Nanao   08J27291A4 014 9247KK700
16    Lethal Thunder                     Nanao   08J27291A4 014 9147KK700
17    Bomberman World / New Atomic Punk  Nanao   08J27291A5 015 9219KK700
18    Undercover Cops                    Nanao   08J27291A5 015 9219KK700
19    Gun Hohki                          Nanao   08J27291A6 016 9217NK700
20    Skins Game                         Nanao   08J27291A7 017
21    Hook                               Nanao   08J27291A8 018 9237NK700
2122
22    Hook                            Irem?   D80001 ?
23    R-Type Leo                      Irem    D800001A1
24    Fire Barrel                     ?       ? (same as R-Type Leo)
25    In The Hunt                     Irem    D8000011A1 020
26    Risky Challenge/Gussun Oyoyo            D8000019A1
27    Match It II/Shisensho II        Irem    D8000020A1 023 9320NK700
28    World PK Soccer                 Irem    D8000021A1
29    Ninja Baseball Batman           ?       ?  (same as World PK Soccer)
30    Perfect Soldiers                Irem    D8000022A1
31    Dream Soccer '94                Irem    D8000023A1 026
23    R-Type Leo                         Irem    D8000021A1 019 9242NK700
24    Fire Barrel                        Irem    D8000010A1 019 9243NK700
25    In The Hunt                        Irem    D8000011A1 020
26    Risky Challenge/Gussun Oyoyo       Irem    D8000019A1 022 9331NK700
27    Match It II/Shisensho II           Irem    D8000020A1 023 9320NK700
28    World PK Soccer                    Irem    D8000021A1
29    Ninja Baseball Batman              Irem    D8000021A1 024 9335NK700
30    Perfect Soldiers                   Irem    D8000022A1
31    Dream Soccer '94                   Irem    D8000023A1 026
3232
3333    Please let me know if you can fill in any of the blanks.
3434
src/mame/machine/stvcd.c
r788r789
3131
3232// super-verbose
3333#if 0
34#define CDROM_LOG printf
34#define CDROM_LOG(x) printf x;
3535#else
36#define CDROM_LOG(...)
36#define CDROM_LOG(x)
3737#endif
3838
3939static cdrom_file *cdrom = (cdrom_file *)NULL;
r788r789
265265
266266   if (cdrom)
267267   {
268      CDROM_LOG("Opened CD-ROM successfully, reading root directory\n");
268      CDROM_LOG(("Opened CD-ROM successfully, reading root directory\n"))
269269      read_new_dir(0xffffff);   // read root directory
270270   }
271271   else
r788r789
295295         blocks[i].size = sectlenin;
296296         *blknum = i;
297297
298         CDROM_LOG("CD: allocating block %d, size %x\n", i, sectlenin);
298         CDROM_LOG(("CD: allocating block %d, size %x\n", i, sectlenin))
299299
300300         return &blocks[i];
301301      }
r788r789
309309{
310310   INT32 i;
311311
312   CDROM_LOG("cd_free_block: %x\n", (UINT32)blktofree);
312   CDROM_LOG(("cd_free_block: %x\n", (UINT32)blktofree))
313313
314314   for (i = 0; i < 200; i++)
315315   {
316316      if (&blocks[i] == blktofree)
317317      {
318         CDROM_LOG("CD: freeing block %d\n", i);
318         CDROM_LOG(("CD: freeing block %d\n", i))
319319      }
320320   }
321321
r788r789
330330   if (*sectoffs == 0xffff)
331331   {
332332      // 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"))
334334   }
335335   else if (*sectnum == 0xffff)
336336   {
r788r789
379379
380380         hirqreg = rv;
381381
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()))
383383
384384         return rv;
385385         break;
386386
387387      case 0x000c:
388388      case 0x000e:
389         CDROM_LOG("RW HIRM: %04x\n", hirqmask);
389         CDROM_LOG(("RW HIRM: %04x\n", hirqmask))
390390         return hirqmask;
391391         break;
392392
393393      case 0x0018:
394394      case 0x001a:
395//          CDROM_LOG("RW CR1: %04x\n", cr1);
395//          CDROM_LOG(("RW CR1: %04x\n", cr1))
396396         return cr1;
397397         break;
398398
399399      case 0x001c:
400400      case 0x001e:
401//          CDROM_LOG("RW CR2: %04x\n", cr2);
401//          CDROM_LOG(("RW CR2: %04x\n", cr2))
402402         return cr2;
403403         break;
404404
405405      case 0x0020:
406406      case 0x0022:
407//          CDROM_LOG("RW CR3: %04x\n", cr3);
407//          CDROM_LOG(("RW CR3: %04x\n", cr3))
408408         return cr3;
409409         break;
410410
411411      case 0x0024:
412412      case 0x0026:
413//          CDROM_LOG("RW CR4: %04x\n", cr4);
413//          CDROM_LOG(("RW CR4: %04x\n", cr4))
414414         return cr4;
415415         break;
416416
r788r789
443443               break;
444444
445445            default:
446               CDROM_LOG("STVCD: Unhandled xfer type %d\n", (int)xfertype);
446               CDROM_LOG(("STVCD: Unhandled xfer type %d\n", (int)xfertype))
447447               rv = 0xffff;
448448               break;
449449         }
r788r789
452452         break;
453453
454454      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()))
456456         return 0xffff;
457457         break;
458458   }
r788r789
486486                  // did we run out of sector?
487487                  if (xferoffs >= transpart->blocks[xfersect]->size)
488488                  {
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))
490490
491491                     xferoffs = 0;
492492                     xfersect++;
r788r789
498498                  {
499499                     INT32 i;
500500
501                     CDROM_LOG("Killing sectors in done\n");
501                     CDROM_LOG(("Killing sectors in done\n"))
502502
503503                     // deallocate the blocks
504504                     for (i = xfersectpos; i < xfersectpos+xfersectnum; i++)
r788r789
521521               break;
522522
523523            default:
524               CDROM_LOG("CD: unhandled 32-bit transfer type\n");
524               CDROM_LOG(("CD: unhandled 32-bit transfer type\n"))
525525               break;
526526         }
527527
r788r789
529529         break;
530530
531531      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()))
533533         return 0xffff;
534534         break;
535535   }
r788r789
543543   {
544544   case 0x0008:
545545   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()))
547547      hirqreg &= data;
548548      return;
549549   case 0x000c:
550550   case 0x000e:
551            CDROM_LOG("WW HIRM: %04x => %04x\n", hirqmask, data);
551            CDROM_LOG(("WW HIRM: %04x => %04x\n", hirqmask, data))
552552      hirqmask = data;
553553      return;
554554   case 0x0018:
555555   case 0x001a:
556//              CDROM_LOG("WW CR1: %04x\n", data);
556//              CDROM_LOG(("WW CR1: %04x\n", data))
557557      cr1 = data;
558558      cd_stat &= ~CD_STAT_PERI;
559559      break;
560560   case 0x001c:
561561   case 0x001e:
562//              CDROM_LOG("WW CR2: %04x\n", data);
562//              CDROM_LOG(("WW CR2: %04x\n", data))
563563      cr2 = data;
564564      break;
565565   case 0x0020:
566566   case 0x0022:
567//              CDROM_LOG("WW CR3: %04x\n", data);
567//              CDROM_LOG(("WW CR3: %04x\n", data))
568568      cr3 = data;
569569         break;
570570   case 0x0024:
571571   case 0x0026:
572//              CDROM_LOG("WW CR4: %04x\n", data);
572//              CDROM_LOG(("WW CR4: %04x\n", data))
573573      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))
575575
576576      if (!cdrom)
577577      {
r788r789
586586      switch (cr1 & 0xff00)
587587      {
588588      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()))
590590
591591         // values taken from a US saturn with a disc in and the lid closed
592592         hirqreg |= CMOK;
r788r789
594594         cr2 = 0x4101;
595595         cr3 = 0x100 | (cd_curfad>>16);
596596         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))
598598         break;
599599
600600      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()))
602602         hirqreg |= CMOK;
603603         cr1 = cd_stat;
604604         cr2 = 0x0201;
r788r789
607607         break;
608608
609609      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()))
611611         cd_readTOC();
612612         cd_stat = CD_STAT_TRANS|CD_STAT_PAUSE;
613613         cr2 = 102*2;   // TOC length in words (102 entries @ 2 words/4bytes each)
r788r789
621621                     // bios is interested in returns in cr3 and cr4
622622                  // cr3 should be data track #
623623                  // 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()))
625625         cd_readTOC();
626626         switch (cr1 & 0xff)
627627         {
r788r789
652652            // CR1 & 4 = don't confirm mode 2 subheader
653653            // CR1 & 8 = retry reading mode 2 sectors
654654            // 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()))
656656         hirqreg |= (CMOK|DRDY|ESEL);
657657         cd_stat = CD_STAT_PAUSE;
658658         cd_curfad = 150;
r788r789
666666      case 0x0600:   // end data transfer
667667            // returns # of bytes transfered (24 bits) in
668668            // 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))
670670
671671         // clear the "transfer" flag
672672         cd_stat &= ~CD_STAT_TRANS;
r788r789
739739         xferdnum = 0;
740740         hirqreg |= CMOK;
741741
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))
743743         break;
744744
745745      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()))
747747         cd_stat = CD_STAT_PLAY; //|0x80;    // set "cd-rom" bit?
748748         cd_curfad = ((cr1&0xff)<<16) | cr2;
749749         fadstoplay = ((cr3&0xff)<<16) | cr4;
r788r789
763763            mame_printf_error("CD: Play Disk track mode, not yet implemented\n");
764764         }
765765
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))
767767
768768         cr2 = 0x4101;   // ctrl/adr in hi byte, track # in low byte
769769         cr3 = (0x100) | ((cd_curfad>>16)&0xff);   // index of subcode in hi byte, frame address
r788r789
781781         break;
782782
783783      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()))
785785         if (cr1 & 0x80)
786786         {
787787            temp = (cr1&0x7f)<<16;   // get FAD to seek to
r788r789
793793            }
794794            else
795795            {
796               CDROM_LOG("CD: not clear how to handle FAD seek\n");
796               CDROM_LOG(("CD: not clear how to handle FAD seek\n"))
797797               cd_curfad = temp;
798798            }
799799         }
r788r789
827827            // get operation
828828            parm = cr3>>8;
829829
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))
831831
832832            cddevicenum = parm;
833833
r788r789
853853         {
854854            UINT8 fnum = (cr3>>8)&0xff;
855855
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()))
857857
858858            filters[fnum].fad = ((cr1 & 0xff)<<16) | cr2;
859859            filters[fnum].range = ((cr3 & 0xff)<<16) | cr4;
r788r789
869869         {
870870            UINT8 fnum = (cr3>>8)&0xff;
871871
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))
873873
874874            filters[fnum].chan = cr1 & 0xff;
875875            filters[fnum].smmask = (cr2>>8)&0xff;
r788r789
900900               filters[fnum].mode = mode;
901901            }
902902
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))
904904            hirqreg |= (CMOK|ESEL|DRDY);
905905            cr2 = 0x4101;   // ctrl/adr in hi byte, track # in low byte
906906            cr3 = 0x0100|((cd_curfad>>16)&0xff);
r788r789
912912         {
913913            UINT8 fnum = (cr3>>8)&0xff;
914914
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))
916916
917917            // set true condition?
918918            if (cr1 & 1)
r788r789
932932         break;
933933
934934      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()))
936936         hirqreg |= (CMOK|ESEL|DRDY);
937937         cr2 = 0x4101;   // ctrl/adr in hi byte, track # in low byte
938938         cr3 = 0x0100|((cd_curfad>>16)&0xff);
r788r789
946946
947947         cr3 = 0x1800;
948948         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()))
950950         hirqreg |= (CMOK|ESEL|DRDY);   // DRDY is probably wrong
951951         break;
952952
r788r789
964964               cr4 = partitions[bufnum].numblks;
965965            }
966966
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))
968968
969969            cr2 = 0;
970970            cr3 = 0;
r788r789
978978            UINT32 sectoffs = cr2;
979979            UINT32 numsect = cr4;
980980
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()))
982982
983983            calcsize = 0;
984984            if (partitions[bufnum].size != -1)
r788r789
10031003         break;
10041004
10051005      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()))
10071007         hirqreg |= (CMOK|ESEL);
10081008         cr1 = cd_stat | ((calcsize>>16)&0xff);
10091009         cr2 = (calcsize & 0xffff);
r788r789
10121012         break;
10131013
10141014      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()))
10161016         hirqreg |= (CMOK|ESEL|EFLS|SCDQ|DRDY);
10171017
10181018         switch (cr1 & 0xff)
r788r789
10541054            UINT32 sectofs = cr2;
10551055            UINT32 bufnum = cr3>>8;
10561056
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))
10581058
10591059            if (bufnum >= MAX_FILTERS)
10601060            {
1061               CDROM_LOG("CD: invalid buffer number\n");
1061               CDROM_LOG(("CD: invalid buffer number\n"));
10621062               cd_stat = 0xff;   // ERROR
10631063               hirqreg |= (CMOK|EHST);
10641064               return;
r788r789
10661066
10671067            if (partitions[bufnum].numblks == 0)
10681068            {
1069               CDROM_LOG("CD: buffer is empty\n");
1069               CDROM_LOG(("CD: buffer is empty\n"))
10701070               cd_stat = 0xff;   // ERROR
10711071               hirqreg |= (CMOK|EHST);
10721072               return;
r788r789
10941094            UINT32 bufnum = cr3>>8;
10951095            INT32 i;
10961096
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))
10981098
10991099            if (bufnum >= MAX_FILTERS)
11001100            {
1101               CDROM_LOG("CD: invalid buffer number\n");
1101               CDROM_LOG(("CD: invalid buffer number\n"))
11021102               cd_stat = 0xff;   // ERROR
11031103               hirqreg |= (CMOK|EHST);
11041104               return;
r788r789
11061106
11071107            if (partitions[bufnum].numblks == 0)
11081108            {
1109               CDROM_LOG("CD: buffer is empty\n");
1109               CDROM_LOG(("CD: buffer is empty\n"))
11101110               cd_stat = 0xff;   // ERROR
11111111               hirqreg |= (CMOK|EHST);
11121112               return;
r788r789
11371137            UINT32 sectofs = cr2;
11381138            UINT32 bufnum = cr3>>8;
11391139
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))
11411141
11421142            if (bufnum >= MAX_FILTERS)
11431143            {
1144               CDROM_LOG("CD: invalid buffer number\n");
1144               CDROM_LOG(("CD: invalid buffer number\n"))
11451145               cd_stat = 0xff;   // ERROR
11461146               hirqreg |= (CMOK|EHST);
11471147               return;
r788r789
11491149
11501150            if (partitions[bufnum].numblks == 0)
11511151            {
1152               CDROM_LOG("CD: buffer is empty\n");
1152               CDROM_LOG(("CD: buffer is empty\n"))
11531153               cd_stat = 0xff;   // ERROR
11541154               hirqreg |= (CMOK|EHST);
11551155               return;
r788r789
11711171         break;
11721172
11731173      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()))
11751175         hirqreg |= (CMOK|ESEL|EFLS|SCDQ|DRDY);
11761176         break;
11771177
11781178      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()))
11801180         hirqreg |= (CMOK|EFLS);
11811181
11821182         temp = (cr3&0xff)<<16;
r788r789
11851185         break;
11861186
11871187      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()))
11891189         hirqreg |= (CMOK|DRDY);
11901190
11911191         temp = (cr3&0xff)<<16;
r788r789
11961196         break;
11971197
11981198      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()))
12001200         hirqreg |= (CMOK|DRDY);
12011201         cr2 = numfiles;   // # of files in directory
12021202         cr3 = 0x0100;   // report directory held
r788r789
12041204         break;
12051205
12061206      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()))
12081208         cd_stat |= CD_STAT_TRANS;
12091209         cd_stat &= 0xff00;      // clear top byte of return value
12101210         hirqreg |= (CMOK|DRDY);
r788r789
12541254            xfertype = XFERTYPE_FILEINFO_1;
12551255            xfercount = 0;
12561256         }
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))
12581258         break;
12591259
12601260      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()))
12621262         temp = (cr3&0xff)<<16;
12631263         temp |= cr4;
12641264
r788r789
12891289         break;
12901290
12911291      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()))
12931293         // bios expects "2bc" mask to work against this
12941294         hirqreg |= (CMOK|EFLS|EHST|ESEL|DCHG|PEND|BFUL|CSCT|DRDY);
12951295         cd_stat = CD_STAT_PERI|CD_STAT_PAUSE;   // force to pause
12961296         break;
12971297
12981298      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()))
13001300         cd_stat = CD_STAT_PAUSE;
13011301         cr1 = cd_stat;   // necessary to pass
13021302         cr2 = 0x4;
r788r789
13061306         break;
13071307
13081308      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()))
13101310         cd_stat = CD_STAT_PAUSE;
13111311         cr1 = cd_stat;   // necessary to pass
13121312         cr2 = 0x4;      // (must return this value to pass bios checks)
r788r789
13141314         break;
13151315
13161316      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()))
13181318         hirqreg |= (CMOK);
13191319         break;
13201320      }
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))
13221322      break;
13231323   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()))
13251325      break;
13261326   }
13271327}
r788r789
13721372         break;
13731373
13741374      default:
1375         CDROM_LOG("Unknown CD read @ %x\n", offset);
1375         CDROM_LOG(("Unknown CD read @ %x\n", offset))
13761376         break;
13771377   }
13781378
r788r789
14011401         break;
14021402
14031403      default:
1404         CDROM_LOG("Unknown CD write %x @ %x\n", data, offset);
1404         CDROM_LOG(("Unknown CD write %x @ %x\n", data, offset))
14051405         break;
14061406   }
14071407}
r788r789
16411641   int match = 1, keepgoing = 2;
16421642   partitionT *filterprt = (partitionT *)NULL;
16431643
1644   CDROM_LOG("cd_filterdata, trktype %d\n", trktype);
1644   CDROM_LOG(("cd_filterdata, trktype %d\n", trktype))
16451645
16461646   // loop on the filters
16471647   do
r788r789
18281828
18291829            if (!fadstoplay)
18301830            {
1831               CDROM_LOG("cd_playdata: playback ended\n");
1831               CDROM_LOG(("cd_playdata: playback ended\n"))
18321832               cd_stat = CD_STAT_PAUSE;
18331833
18341834               hirqreg |= PEND;
18351835
18361836               if (playtype == 1)
18371837               {
1838                  CDROM_LOG("cd_playdata: setting EFLS\n");
1838                  CDROM_LOG(("cd_playdata: setting EFLS\n"))
18391839                  hirqreg |= EFLS;
18401840               }
18411841            }
src/mame/machine/pckeybrd.c
r788r789
388388}
389389
390390
391
391#ifdef MESS
392392static int at_keyboard_queue_size(void)
393393{
394394   int queue_size;
r788r789
397397      queue_size += sizeof(keyboard.queue) / sizeof(keyboard.queue[0]);
398398   return queue_size;
399399}
400#endif
400401
401402
402
403403/* add a list of codes to the keyboard buffer */
404404static void at_keyboard_helper(const char *codes)
405405{
src/mame/machine/n64.c
r788r789
15211521
15221522READ32_HANDLER( n64_pif_ram_r )
15231523{
1524    mame_printf_debug( "pif_ram_r: %08X, %08X = %08X\n", offset << 2, mem_mask, ( ( pif_ram[offset*4+0] << 24 ) | ( pif_ram[offset*4+1] << 16 ) | ( pif_ram[offset*4+2] <<  8 ) | ( pif_ram[offset*4+3] <<  0 ) ) & ~mem_mask );
1524    /*mame_printf_debug( "pif_ram_r: %08X, %08X = %08X\n", offset << 2, mem_mask, ( ( pif_ram[offset*4+0] << 24 ) | ( pif_ram[offset*4+1] << 16 ) | ( pif_ram[offset*4+2] <<  8 ) | ( pif_ram[offset*4+3] <<  0 ) ) & ~mem_mask );*/
15251525    if( offset == ( 0x24 / 4 ) )
15261526    {
15271527        cic_status = 0x00000080;
r788r789
15351535
15361536WRITE32_HANDLER( n64_pif_ram_w )
15371537{
1538    mame_printf_debug("pif_ram_w: %08X, %08X, %08X\n", data, offset << 4, mem_mask);
1538    /*mame_printf_debug("pif_ram_w: %08X, %08X, %08X\n", data, offset << 4, mem_mask);*/
15391539    /*
15401540    if( (~mem_mask) & 0xff000000 )
15411541    {
src/mame/machine/bfm_bd1.c
r788r789
141141
142142///////////////////////////////////////////////////////////////////////////
143143
144void bfm_bd1_init(int id)
144void BFM_BD1_init(int id)
145145{
146   assert_always((id >= 0) && (id < MAX_BD1), "bfm_bd1_init called on an invalid display ID!");
146   assert_always((id >= 0) && (id < MAX_BD1), "BFM_BD1_init called on an invalid display ID!");
147147
148148   memset( &bd1[id], 0, sizeof(bd1[0]));
149149
150   bfm_bd1_reset(id);
150   BFM_BD1_reset(id);
151151}
152152
153153///////////////////////////////////////////////////////////////////////////
154154
155void bfm_bd1_reset(int id)
155void BFM_BD1_reset(int id)
156156{
157157   bd1[id].window_end  = 15;
158158   bd1[id].window_size = (bd1[id].window_end - bd1[id].window_start)+1;
r788r789
165165
166166///////////////////////////////////////////////////////////////////////////
167167
168UINT32 *bfm_bd1_get_segments(int id)
168UINT32 *BFM_BD1_get_segments(int id)
169169{
170170   return bd1[id].segments;
171171}
172172
173173///////////////////////////////////////////////////////////////////////////
174174
175UINT32 *bfm_bd1_get_outputs(int id)
175UINT32 *BFM_BD1_get_outputs(int id)
176176{
177177   return bd1[id].outputs;
178178}
179179
180180///////////////////////////////////////////////////////////////////////////
181181
182UINT32 *bfm_bd1_set_outputs(int id)
182UINT32 *BFM_BD1_set_outputs(int id)
183183{
184184   int cursor;
185185   for (cursor = 0; cursor < 16; cursor++)
186186   {
187      if ( bfm_bd1_get_segments(id)[cursor] & 0x0004 )   bd1[id].outputs[cursor] |=  0x0001;
187      if ( BFM_BD1_get_segments(id)[cursor] & 0x0004 )   bd1[id].outputs[cursor] |=  0x0001;
188188      else                                          bd1[id].outputs[cursor] &= ~0x0001;
189      if ( bfm_bd1_get_segments(id)[cursor] & 0x0002 )   bd1[id].outputs[cursor] |=  0x0002;
189      if ( BFM_BD1_get_segments(id)[cursor] & 0x0002 )   bd1[id].outputs[cursor] |=  0x0002;
190190      else                                          bd1[id].outputs[cursor] &= ~0x0002;
191      if ( bfm_bd1_get_segments(id)[cursor] & 0x0020 )   bd1[id].outputs[cursor] |=  0x0004;
191      if ( BFM_BD1_get_segments(id)[cursor] & 0x0020 )   bd1[id].outputs[cursor] |=  0x0004;
192192      else                                          bd1[id].outputs[cursor] &= ~0x0004;
193      if ( bfm_bd1_get_segments(id)[cursor] & 0x0200 )   bd1[id].outputs[cursor] |=  0x0008;
193      if ( BFM_BD1_get_segments(id)[cursor] & 0x0200 )   bd1[id].outputs[cursor] |=  0x0008;
194194      else                                          bd1[id].outputs[cursor] &= ~0x0008;
195      if ( bfm_bd1_get_segments(id)[cursor] & 0x2000 )   bd1[id].outputs[cursor] |=  0x0010;
195      if ( BFM_BD1_get_segments(id)[cursor] & 0x2000 )   bd1[id].outputs[cursor] |=  0x0010;
196196      else                                          bd1[id].outputs[cursor] &= ~0x0010;
197      if ( bfm_bd1_get_segments(id)[cursor] & 0x0001 )   bd1[id].outputs[cursor] |=  0x0020;
197      if ( BFM_BD1_get_segments(id)[cursor] & 0x0001 )   bd1[id].outputs[cursor] |=  0x0020;
198198      else                                          bd1[id].outputs[cursor] &= ~0x0020;
199      if ( bfm_bd1_get_segments(id)[cursor] & 0x8000 )   bd1[id].outputs[cursor] |=  0x0040;
199      if ( BFM_BD1_get_segments(id)[cursor] & 0x8000 )   bd1[id].outputs[cursor] |=  0x0040;
200200      else                                          bd1[id].outputs[cursor] &= ~0x0040;
201      if ( bfm_bd1_get_segments(id)[cursor] & 0x4000 )   bd1[id].outputs[cursor] |=  0x0080;
201      if ( BFM_BD1_get_segments(id)[cursor] & 0x4000 )   bd1[id].outputs[cursor] |=  0x0080;
202202      else                                          bd1[id].outputs[cursor] &= ~0x0080;
203      if ( bfm_bd1_get_segments(id)[cursor] & 0x0008 )   bd1[id].outputs[cursor] |=  0x0100;
203      if ( BFM_BD1_get_segments(id)[cursor] & 0x0008 )   bd1[id].outputs[cursor] |=  0x0100;
204204      else                                          bd1[id].outputs[cursor] &= ~0x0100;
205      if ( bfm_bd1_get_segments(id)[cursor] & 0x0400 )   bd1[id].outputs[cursor] |=  0x0200;
205      if ( BFM_BD1_get_segments(id)[cursor] & 0x0400 )   bd1[id].outputs[cursor] |=  0x0200;
206206      else                                          bd1[id].outputs[cursor] &= ~0x0200;
207      if ( bfm_bd1_get_segments(id)[cursor] & 0x0010 )   bd1[id].outputs[cursor] |=  0x0400;
207      if ( BFM_BD1_get_segments(id)[cursor] & 0x0010 )   bd1[id].outputs[cursor] |=  0x0400;
208208      else                                          bd1[id].outputs[cursor] &= ~0x0400;
209      if ( bfm_bd1_get_segments(id)[cursor] & 0x0040 )   bd1[id].outputs[cursor] |=  0x0800;
209      if ( BFM_BD1_get_segments(id)[cursor] & 0x0040 )   bd1[id].outputs[cursor] |=  0x0800;
210210      else                                          bd1[id].outputs[cursor] &= ~0x0800;
211      if ( bfm_bd1_get_segments(id)[cursor] & 0x0080 )   bd1[id].outputs[cursor] |=  0x1000;
211      if ( BFM_BD1_get_segments(id)[cursor] & 0x0080 )   bd1[id].outputs[cursor] |=  0x1000;
212212      else                                          bd1[id].outputs[cursor] &= ~0x1000;
213      if ( bfm_bd1_get_segments(id)[cursor] & 0x0800 )   bd1[id].outputs[cursor] |=  0x2000;
213      if ( BFM_BD1_get_segments(id)[cursor] & 0x0800 )   bd1[id].outputs[cursor] |=  0x2000;
214214      else                                          bd1[id].outputs[cursor] &= ~0x2000;
215      if ( bfm_bd1_get_segments(id)[cursor] & 0x1000 )   bd1[id].outputs[cursor] |=  0x4000;
215      if ( BFM_BD1_get_segments(id)[cursor] & 0x1000 )   bd1[id].outputs[cursor] |=  0x4000;
216216      else                                          bd1[id].outputs[cursor] &= ~0x4000;
217217      //Flashing ? Set an unused pin as a control
218      if ( bfm_bd1_get_segments(id)[cursor] & 0x100 )   bd1[id].outputs[cursor] |=  0x40000;
218      if ( BFM_BD1_get_segments(id)[cursor] & 0x100 )   bd1[id].outputs[cursor] |=  0x40000;
219219      else                                    bd1[id].outputs[cursor] &= ~0x40000;
220220   }
221221   return 0;
222222}
223223///////////////////////////////////////////////////////////////////////////
224224
225char  *bfm_bd1_get_string( int id)
225char  *BFM_BD1_get_string( int id)
226226{
227227   return (char *)bd1[id].string;
228228}
229229
230230///////////////////////////////////////////////////////////////////////////
231231
232void bfm_bd1_shift_data(int id, int data)
232void BFM_BD1_shift_data(int id, int data)
233233{
234234   bd1[id].data <<= 1;
235235
r788r789
237237
238238   if ( ++bd1[id].count >= 8 )
239239   {
240      if ( bfm_bd1_newdata(id, bd1[id].data) )
240      if ( BFM_BD1_newdata(id, bd1[id].data) )
241241      {
242242         bd1[id].changed |= 1;
243243      }
r788r789
250250
251251///////////////////////////////////////////////////////////////////////////
252252
253int bfm_bd1_newdata(int id, int data)
253int BFM_BD1_newdata(int id, int data)
254254{
255255   int change = 0;
256256   int cursor;
r788r789
546546   return change;
547547}
548548
549void bfm_bd1_draw(int id)
549void BFM_BD1_draw(int id)
550550{
551551   int cursor;
552   bfm_bd1_set_outputs(id);
552   BFM_BD1_set_outputs(id);
553553
554554   for (cursor = 0; cursor < 16; cursor++)
555555   {
556      output_set_indexed_value("vfd", (id*16)+cursor, bfm_bd1_get_outputs(id)[cursor]);
556      output_set_indexed_value("vfd", (id*16)+cursor, BFM_BD1_get_outputs(id)[cursor]);
557557
558      if (bfm_bd1_get_outputs(id)[cursor] & 0x40000)
558      if (BFM_BD1_get_outputs(id)[cursor] & 0x40000)
559559      {
560560         //activate flashing (unimplemented, just toggle on and off)
561561      }
src/mame/mamedriv.c
r788r789
28922892   DRIVER( gtrfrk6m )   /* 2001 - Guitar Freaks 6th Mix (G*B06 VER. JAA) */
28932893   DRIVER( ddrmax )   /* 2001 - DDR Max - Dance Dance Revolution 6th Mix (G*B19 VER. JAA) */
28942894   DRIVER( ddrmax2 )   /* 2002 - DDR Max 2 - Dance Dance Revolution 7th Mix (G*B20 VER. JAA) */
2895   DRIVER( dsem2 )      /* 2002 - Dancing Stage Euro Mix 2 (G*C23 VER. EAA) */
28952896   DRIVER( gtfrk11m )   /* 2004 - Guitar Freaks 11th Mix (G*D39 VER. JAA) */
28962897
28972898   /* Konami Viper games */
r788r789
52245225   DRIVER( a51mxr3k )   /*     ??           (c) 1998 */
52255226   DRIVER( maxforce )   /*     ??           (c) 1996 */
52265227   DRIVER( maxf_102 )   /*     ??           (c) 1996 */
5228   DRIVER( maxf_ng )   /*     ??           (c) 1996 */
52275229   DRIVER( vcircle )   /* (proto)          (c) 1996 */
52285230   DRIVER( a51site4 )   /*     ??           (c) 1998 */
52295231
src/mame/mame.mak
r788r789
305305   $(MAMEOBJ)/amiga.a \
306306   $(MAMEOBJ)/atari.a \
307307   $(MAMEOBJ)/atlus.a \
308   $(MAMEOBJ)/barcrest.a \
308309   $(MAMEOBJ)/bfm.a \
309310   $(MAMEOBJ)/capcom.a \
310311   $(MAMEOBJ)/cinemat.a \
r788r789
568569   $(DRIVERS)/ohmygod.o $(VIDEO)/ohmygod.o \
569570   $(DRIVERS)/powerins.o $(VIDEO)/powerins.o \
570571
572$(MAMEOBJ)/barcrest.a: \
573   $(MACHINE)/mmtr.o \
574   $(DRIVERS)/mpu4.o \
575   $(MACHINE)/roc10937.o \
576   $(MACHINE)/steppers.o \
577
571578$(MAMEOBJ)/bfm.a: \
572579   $(DRIVERS)/bfcobra.o \
573580   $(DRIVERS)/bfm_sc2.o $(VIDEO)/bfm_adr2.o \
574   $(DRIVERS)/mpu4.o \
575   $(MACHINE)/lamps.o \
576   $(MACHINE)/mmtr.o \
577   $(MACHINE)/steppers.o \
578581   $(MACHINE)/bfm_bd1.o \
579   $(MACHINE)/roc10937.o \
580582
581583$(MAMEOBJ)/capcom.a: \
582584   $(DRIVERS)/1942.o $(VIDEO)/1942.o \
src/mame/video/namcos22.c
r788r789
164164   return v;
165165} /* Clamp256 */
166166
167#ifdef MAME_DEBUG
167168static void Dump( FILE *f, unsigned addr1, unsigned addr2, const char *name );
169#endif
168170
169171static struct
170172{
r788r789
27082710   namcos22_polygonram[offset] = (hi<<16)|lo;
27092711} /* namcos22_dspram16_w */
27102712
2713#ifdef MAME_DEBUG
27112714static void
27122715Dump( FILE *f, unsigned addr1, unsigned addr2, const char *name )
27132716{
r788r789
27422745   }
27432746   fprintf( f, "\n" );
27442747}
2748#endif
27452749
27462750/**
27472751 * 4038 spot enable?
src/mame/video/bfm_adr2.c
r788r789
179179   adder2_c101              = 0;
180180   adder2_rx                = 0;
181181   adder_vbl_triggered      = 0;
182   adder2_acia_triggered    = 0;
182   adder2_acia_triggered    = 0;
183183   adder2_data_from_sc2     = 0;
184184   adder2_data_to_sc2       = 0;
185185
r788r789
216216
217217VIDEO_UPDATE( adder2 )
218218{
219   if (screen == 0)
220   {
221      adder2_update(bitmap);
222   }
223   return 0;
224}
225
226void adder2_update(mame_bitmap *bitmap)
227{
228219   if (adder2_screen_page_reg & SL_DISPLAY) tilemap_draw(bitmap, &visible1, tilemap1, 0, 0);
229220   else                                     tilemap_draw(bitmap, &visible1, tilemap0, 0, 0);
221
222   return 0;
230223}
231224
232225// adder2 palette initialisation //////////////////////////////////////////
r788r789
257250{
258251   // setup the standard bellfruit BD1 display /////////////////////////////
259252
260   bfm_bd1_init(0);
253   BFM_BD1_init(0);
261254}
262255
263256///////////////////////////////////////////////////////////////////////////
src/mame/video/nemesis.c
r788r789
2626static UINT8 *blank_characterdata; /* pseudo character */
2727
2828/* gfxram dirty flags */
29static UINT8 *char_dirty;   /* 2048 chars */
3029
3130/* we should be able to draw sprite gfx directly without caching to GfxElements */
32static UINT8 *sprite_dirty;   /* 512 sprites */
33static UINT8 *sprite3216_dirty;   /* 256 sprites */
34static UINT8 *sprite816_dirty;   /* 1024 sprites */
35static UINT8 *sprite1632_dirty;   /* 256 sprites */
36static UINT8 *sprite3232_dirty;   /* 128 sprites */
37static UINT8 *sprite168_dirty;   /* 1024 sprites */
38static UINT8 *sprite6464_dirty;   /* 32 sprites */
3931
32static UINT8 *sprite_dirty[8];
33
34static const struct
35{
36   UINT8 width;
37   UINT8 height;
38   UINT8 char_type;
39}
40sprite_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
4046static TILE_GET_INFO( get_bg_tile_info )
4147{
4248   int code,color,flags;
r788r789
189195
190196   if (oldword != data)
191197   {
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      }
200205   }
201206}
202207
r788r789
204209/* claim a palette dirty array */
205210VIDEO_START( nemesis )
206211{
212   int i;
207213   spriteram_words = spriteram_size / 2;
208214
209215   background = tilemap_create(
r788r789
217223   tilemap_set_scroll_rows( background, 256 );
218224   tilemap_set_scroll_rows( foreground, 256 );
219225
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   }
222234
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
244235   memset(nemesis_characterram,0,nemesis_characterram_size);
245236
246237
r788r789
281272   int priority;
282273   int size;
283274   int w,h;
275   int idx;
284276
285277   for (priority=256-1; priority>=0; priority--)
286278   {
r788r789
307299            flipx = spriteram16[adress+1] & 0x01;
308300            flipy = spriteram16[adress+4] & 0x20;
309301
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;
360307
361308            if( zoom )
362309            {
r788r789
390337   int bAnyDirty;
391338
392339   bAnyDirty = 0;
393   for (offs = 0x800 - 1;offs >= 0;offs --)
340   for (offs = spriteram_words - 1;offs >= 0;offs --)
394341   {
395      if (char_dirty[offs] )
342      if (sprite_dirty[4][offs])
396343      {
397344         decodechar(machine->gfx[0],offs,(UINT8 *)nemesis_characterram,
398345               machine->drv->gfxdecodeinfo[0].gfxlayout);
399346         bAnyDirty = 1;
400         char_dirty[offs] = 0;
347         sprite_dirty[4][offs] = 0;
401348      }
402349   }
403350   if( bAnyDirty )
r788r789
420367      if (zoom != 0xFF || code!=0)
421368      {
422369         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;
445372
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;
515382         }
516383      }
517384   }
src/mame/layout/mpu4.lay
r788r789
838838      <backdrop name="digit7" element="digit" state="0">
839839         <bounds x="356" y="200" width="8" height="10"/>
840840      </backdrop>
841   </view>
842      <bezel name="vfd0" element="vfd0" state="0">
841      <backdrop name="vfd0" element="vfd0" state="0">
843842         <bounds x="17" y="280" width="7" height="24"/>
844      </bezel>
845      <bezel name="vfd1" element="vfd0" state="0">
843      </backdrop>
844      <backdrop name="vfd1" element="vfd0" state="0">
846845         <bounds x="24" y="280" width="7" height="24"/>
847      </bezel>
848      <bezel name="vfd2" element="vfd0" state="0">
846      </backdrop>
847      <backdrop name="vfd2" element="vfd0" state="0">
849848         <bounds x="31" y="280" width="7" height="24"/>
850      </bezel>
851      <bezel name="vfd3" element="vfd0" state="0">
849      </backdrop>
850      <backdrop name="vfd3" element="vfd0" state="0">
852851         <bounds x="38" y="280" width="7" height="24"/>
853      </bezel>
854      <bezel name="vfd4" element="vfd0" state="0">
852      </backdrop>
853      <backdrop name="vfd4" element="vfd0" state="0">
855854         <bounds x="45" y="280" width="7" height="24"/>
856      </bezel>
857      <bezel name="vfd5" element="vfd0" state="0">
855      </backdrop>
856      <backdrop name="vfd5" element="vfd0" state="0">
858857         <bounds x="52" y="280" width="7" height="24"/>
859      </bezel>
860      <bezel name="vfd6" element="vfd0" state="0">
858      </backdrop>
859      <backdrop name="vfd6" element="vfd0" state="0">
861860         <bounds x="59" y="280" width="7" height="24"/>
862      </bezel>
863      <bezel name="vfd7" element="vfd0" state="0">
861      </backdrop>
862      <backdrop name="vfd7" element="vfd0" state="0">
864863         <bounds x="66" y="280" width="7" height="24"/>
865      </bezel>
866      <bezel name="vfd8" element="vfd0" state="0">
864      </backdrop>
865      <backdrop name="vfd8" element="vfd0" state="0">
867866         <bounds x="73" y="280" width="7" height="24"/>
868      </bezel>
869      <bezel name="vfd9" element="vfd0" state="0">
867      </backdrop>
868      <backdrop name="vfd9" element="vfd0" state="0">
870869         <bounds x="80" y="280" width="7" height="24"/>
871      </bezel>
872      <bezel name="vfd10" element="vfd0" state="0">
870      </backdrop>
871      <backdrop name="vfd10" element="vfd0" state="0">
873872         <bounds x="87" y="280" width="7" height="24"/>
874      </bezel>
875      <bezel name="vfd11" element="vfd0" state="0">
873      </backdrop>
874      <backdrop name="vfd11" element="vfd0" state="0">
876875         <bounds x="94" y="280" width="7" height="24"/>
877      </bezel>
878      <bezel name="vfd12" element="vfd0" state="0">
876      </backdrop>
877      <backdrop name="vfd12" element="vfd0" state="0">
879878         <bounds x="101" y="280" width="7" height="24"/>
880      </bezel>
881      <bezel name="vfd13" element="vfd0" state="0">
879      </backdrop>
880      <backdrop name="vfd13" element="vfd0" state="0">
882881         <bounds x="108" y="280" width="7" height="24"/>
883      </bezel>
884      <bezel name="vfd14" element="vfd0" state="0">
882      </backdrop>
883      <backdrop name="vfd14" element="vfd0" state="0">
885884         <bounds x="115" y="280" width="7" height="24"/>
886      </bezel>
887      <bezel name="vfd15" element="vfd0" state="0">
885      </backdrop>
886      <backdrop name="vfd15" element="vfd0" state="0">
888887         <bounds x="122" y="280" width="7" height="24"/>
889      </bezel>
890
888      </backdrop>
889   </view>
891890   <view name="VFD Display Output Only">
892891      <bezel name="vfd0" element="vfd0" state="0">
893892         <bounds x="10" y="200" width="9" height="17"/>
src/mame/drivers/mediagx.c
r788r789
988988   speedup8_r,      speedup9_r,      speedup10_r,   speedup11_r
989989};
990990
991#ifdef MAME_DEBUG
991992static void report_speedups(running_machine *machine)
992993{
993994   int i;
r788r789
995996   for (i = 0; i < speedup_count; i++)
996997      printf("Speedup %2d: offs=%06X pc=%06X hits=%d\n", i, speedup_table[i].offset, speedup_table[i].pc, speedup_table[i].hits);
997998}
999#endif
9981000
9991001static void install_speedups(running_machine *machine, speedup_entry *entries, int count)
10001002{
src/mame/drivers/bfm_sc2.c
r788r789
146146//#include "video/awpvid.h"
147147#include "machine/steppers.h" // stepper motor
148148
149#include "machine/lamps.h"
150149#include "machine/bfm_bd1.h"  // vfd
151150#include "machine/mmtr.h"
152151
r788r789
206205
207206static int sc2_show_door;         // flag <>0, show door state
208207static int sc2_door_state;         // door switch strobe/data
209static int sc2_show_vfd_display;
210208
211209static int reel12_latch;
212210static int reel34_latch;
r788r789
328326   watchdog_kicked = 0;
329327
330328
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
333331
334332   e2ram_reset();
335333
r788r789
506504
507505static INTERRUPT_GEN( timer_irq )
508506{
509   timercnt++;
510
511
512   if ( (timercnt & 0x03) == 0 ) sc2_show_vfd_display = readinputportbytag_safe("DEBUGPORT",13) & 0x01;  // debug port
513
514507   if ( watchdog_kicked )
515508   {
516509      watchdog_cnt    = 0;
r788r789
707700
708701static WRITE8_HANDLER( mux_output_w )
709702{
703   int i;
710704   int off = offset<<3;
711705
712706   Lamps[ off   ] = (data & 0x01) != 0;
r788r789
718712   Lamps[ off+6 ] = (data & 0x40) != 0;
719713   Lamps[ off+7 ] = (data & 0x80) != 0;
720714
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   }
722722}
723723
724724///////////////////////////////////////////////////////////////////////////
r788r789
10841084static WRITE8_HANDLER( vfd1_data_w )
10851085{
10861086   vfd1_latch = data;
1087   bfm_bd1_newdata(0, data);
1087   BFM_BD1_newdata(0, data);
1088   BFM_BD1_draw(0);
10881089}
10891090
10901091///////////////////////////////////////////////////////////////////////////
r788r789
10921093static WRITE8_HANDLER( vfd2_data_w )
10931094{
10941095   vfd2_latch = data;
1095   bfm_bd1_newdata(1, data);
1096   BFM_BD1_newdata(1, data);
1097   BFM_BD1_draw(1);
10961098}
10971099
10981100///////////////////////////////////////////////////////////////////////////
10991101
11001102static WRITE8_HANDLER( vfd_reset_w )
11011103{
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);
11041108}
11051109
11061110///////////////////////////////////////////////////////////////////////////
r788r789
15841588   // reset the board //////////////////////////////////////////////////////
15851589
15861590   on_scorpion2_reset();
1591   BFM_BD1_init(0);
1592   BFM_BD1_init(1);
15871593   //BFM_dm01_reset(); No known video based game has a Matrix board
15881594}
15891595
1590static 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
1601static 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
16171596// memory map for scorpion2 board video addon /////////////////////////////
16181597
16191598static ADDRESS_MAP_START( memmap_vid, ADDRESS_SPACE_PROGRAM, 8 )
r788r789
18221801   PORT_DIPSETTING(    0x10, "2 credit  per round" )
18231802   PORT_DIPSETTING(    0x18, "4 credits per round" )
18241803
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
18301804INPUT_PORTS_END
18311805
18321806// input ports for golden crown ///////////////////////////////////
r788r789
19911965   PORT_DIPSETTING(    0x10, "3" )
19921966   PORT_DIPSETTING(    0x18, "4 (slow)" )
19931967
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
19991968INPUT_PORTS_END
20001969
20011970// input ports for dutch quintoon /////////////////////////////////
r788r789
21502119   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
21512120   PORT_DIPSETTING(    0x10, DEF_STR( On  ) )
21522121
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
21582122INPUT_PORTS_END
21592123
21602124// input ports for UK quintoon ////////////////////////////////////////////
r788r789
23092273   PORT_DIPSETTING(    0x04, "80%")
23102274   PORT_DIPSETTING(    0x14, "85%")
23112275
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
23172276INPUT_PORTS_END
23182277
23192278// input ports for slotsnl  ///////////////////////////////////////////////
r788r789
24672426   PORT_DIPSETTING(    0x08, "3" )
24682427   PORT_DIPSETTING(    0x18, "4" )
24692428
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
24752429INPUT_PORTS_END
24762430
24772431// input ports for sltblgtk  //////////////////////////////////////////////
r788r789
26272581   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
26282582   PORT_DIPSETTING(    0x10, DEF_STR( On  ) )
26292583
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
26352584INPUT_PORTS_END
26362585
26372586// input ports for sltblgpo  //////////////////////////////////////////////
r788r789
27862735   PORT_DIPSETTING(    0x18, "94%")
27872736   PORT_DIPSETTING(    0x08, "96%")
27882737
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
27942738INPUT_PORTS_END
27952739
27962740// input ports for paradice ///////////////////////////////////////////////
r788r789
29432887   PORT_DIPSETTING(    0x10, "2" )
29442888   PORT_DIPSETTING(    0x18, "3" )
29452889
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
29512890INPUT_PORTS_END
29522891
29532892// input ports for pokio //////////////////////////////////////////////////
r788r789
31013040   PORT_DIPSETTING(    0x10, "2" )
31023041   PORT_DIPSETTING(    0x18, "3" )
31033042
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
31093043INPUT_PORTS_END
31103044
31113045 static struct upd7759_interface upd7759_interface =
r788r789
31363070   MDRV_SCREEN_REFRESH_RATE(50)
31373071   MDRV_VIDEO_START( adder2)
31383072   MDRV_VIDEO_RESET( adder2)
3139   MDRV_VIDEO_UPDATE(addersc2)
3073   MDRV_VIDEO_UPDATE(adder2)
31403074
31413075   MDRV_PALETTE_LENGTH(16)
31423076   MDRV_COLORTABLE_LENGTH(16)
r788r789
31693103   }
31703104
31713105   memset(sc2_Inputs, 0, sizeof(sc2_Inputs));  // clear all inputs
3172
3173   Lamps_init(256);
31743106}
31753107
31763108static void adder2_common_init(void)
src/mame/drivers/mpu4.c
r788r789
11/***************************************************************************
22  MPU4 highly preliminary driver by J.Wallace, and Anonymous.
33
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.
46  03-07-2007: J Wallace: Several major changes, including input relabelling, and system timer improvements.
57     06-2007: Atari Ace, many cleanups and optimizations of I/O routines
68  09-06-2007: J Wallace: Fixed 50Hz detection circuit.
r788r789
273275#include "sound/ay8910.h"
274276#include "sound/flt_rc.h"
275277#include "sound/2413intf.h"
276#include "machine/lamps.h"      // lamp matrix
277278#include "machine/steppers.h"   // stepper motor
278279#include "machine/roc10937.h"   // vfd
279280#include "machine/mmtr.h"
r788r789
281282// Video
282283#include "cpu/m68000/m68000.h"
283284#include "machine/6850acia.h"
284//#include "machine/74148.h"
285285#include "sound/saa1099.h"
286286
287287//Deal 'Em
r788r789
294294#define LOG_IC8(x)
295295#define LOGSTUFF(x)
296296#else
297#define LOG(x) logerror x
297#define LOG(x)
298298#define LOG_CHR(x)
299299#define LOG_IC3(x)
300300#define LOG_IC8(x)
r788r789
305305#include "connect4.lh"
306306#define MPU4_MASTER_CLOCK (6880000)
307307#define VIDEO_MASTER_CLOCK (10000000)
308
308//#include "video/awpvid.h"     //Fruit Machines Only
309309// local vars /////////////////////////////////////////////////////////////
310310static int mod_number;
311311static int mmtr_data;
r788r789
324324static int prot_col;
325325static int lamp_col;
326326static int ic24_active;
327static int led_extend;
327328static mame_timer *ic24_timer;
328329static mame_timer *freq_timer;
329330static TIMER_CALLBACK( ic24_timeout );
r788r789
338339UINT8 MPU4_chr_data[72];
339340static UINT8 led_segs[8];
340341static UINT8 Lamps[128];      // 128 multiplexed lamps
342//static UINT8 Lampscopy[128];
341343                        // 32  multiplexed inputs - but a further 8 possible per AUX.
342344                        // Two connectors 'orange' (sampled every 8ms) and 'black' (sampled every 16ms)
343345                        // Each connector carries two banks of eight inputs and two enable signals
r788r789
402404      Lamps[(8*input_strobe)+i]    = (lamp_strobe  & (1 << i)) != 0;
403405      Lamps[(8*input_strobe)+i+64] = (lamp_strobe2 & (1 << i)) != 0;
404406   }
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}
408407
409static 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)
415409   {
416      output_set_lamp_value(i, Lamps_GetBrightness(i));
417   }
418}
419
420// video initialisation ///////////////////////////////////////////////////
421
422VIDEO_START( mpu4 )
423{
424}
425
426// video update ///////////////////////////////////////////////////////////
427
428VIDEO_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.
444411      UINT8 pled_segs[2] = {0,0};
445412
446      int i;
447413      static const int lamps1[8] = { 106, 107, 108, 109, 104, 105, 110, 133 };
448414      static const int lamps2[8] = { 114, 115, 116, 117, 112, 113, 118, 119 };
449415
450416      for (i=0; i<8; i++)
451417      {
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);
454420      }
455421
456422      mpu4_draw_led(8, pled_segs[0]);
457423      mpu4_draw_led(9, pled_segs[1]);
458424   }
459   return 0;
460425}
426
427static 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
461438// palette initialisation /////////////////////////////////////////////////
462439
463440PALETTE_INIT( mpu4 )
r788r789
629606   LOG_IC3(("%04x IC3 PIA Write CA2 (alpha data), %02X\n", activecpu_get_previouspc(),data&0xFF));
630607
631608   alpha_data_line = data;
609   ROC10937_draw_16seg(0);
632610}
633611
634612static WRITE8_HANDLER( pia_ic3_cb2_w )
r788r789
636614   LOG_IC3(("%04x IC3 PIA Write CB (alpha reset), %02X\n",activecpu_get_previouspc(),data&0xff));
637615
638616   if ( data ) ROC10937_reset(0);
617   ROC10937_draw_16seg(0);
639618}
640619
641620// IC3, lamp data lines + alpha numeric display
r788r789
706685         mame_timer_adjust(ic24_timer, double_to_mame_time(duration), 0, time_zero);
707686         ic24_active = 1;
708687      }
688      draw_lamps();
709689   }
710690}
711691
r788r789
718698static WRITE8_HANDLER( pia_ic4_porta_w )
719699{
720700   led_segs[input_strobe] = data;
701   mpu4_draw_led(input_strobe, led_segs[input_strobe]);
721702}
722703
723704static READ8_HANDLER( pia_ic4_portb_r )
r788r789
781762static READ8_HANDLER( pia_ic5_portb_r )
782763{
783764   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) );
788769   return readinputportbytag("AUX2");
789770}
790771
r788r789
794775   serial_data = data;
795776}
796777
797static 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
804778/* ---------------------------------------
805779   AY Chip sound function selection -
806780   ---------------------------------------
r788r789
826800
827801static void update_ay(void)
828802{
829   if (pia_get_output_cb2(2))
803   if (!pia_get_output_cb2(2))
830804   {
831805      switch (ay8913_address)
832806      {
r788r789
837811          }
838812           case 0x01:
839813         {   /* 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));
842815            break;
843816           }
844817           case 0x02:
r788r789
859832         }
860833      }
861834   }
835
862836}
863837
838static WRITE8_HANDLER( pia_ic5_cb2_w )
839{
840    update_ay();
841}
842
843static 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
864850static WRITE8_HANDLER( pia_ic6_portb_w )
865851{
866852   LOG(("%04x IC6 PIA Port B Set to %2x (Reel A and B)\n", activecpu_get_previouspc(),data));
r788r789
10281014      ROC10937_shift_data(0, alpha_data_line&0x01?0:1);
10291015   }
10301016   alpha_clock = data;
1017   ROC10937_draw_16seg(0);
10311018}
10321019
10331020static const pia6821_interface pia_ic8_intf =
r788r789
19161903   PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_OTHER) PORT_NAME("7")
19171904
19181905   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)
19311910   PORT_BIT(0x10, IP_ACTIVE_HIGH, IPT_COIN1) PORT_NAME("10p")PORT_IMPULSE(5)
19321911   PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_COIN2) PORT_NAME("20p")PORT_IMPULSE(5)
19331912   PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_COIN3) PORT_NAME("50p")PORT_IMPULSE(5)
r788r789
20392018   PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_OTHER) PORT_NAME("7")
20402019
20412020   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)
20552025   PORT_BIT(0x10, IP_ACTIVE_HIGH, IPT_COIN1) PORT_NAME("10p")PORT_IMPULSE(5)
20562026   PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_COIN2) PORT_NAME("20p")PORT_IMPULSE(5)
20572027   PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_COIN3) PORT_NAME("50p")PORT_IMPULSE(5)
r788r789
21632133   PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_OTHER) PORT_NAME("7")
21642134
21652135   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)
21782140   PORT_BIT(0x10, IP_ACTIVE_HIGH, IPT_COIN1) PORT_NAME("10p")PORT_IMPULSE(5)
21792141   PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_COIN2) PORT_NAME("20p")PORT_IMPULSE(5)
21802142   PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_COIN3) PORT_NAME("50p")PORT_IMPULSE(5)
r788r789
22502212
22512213   PORT_START_TAG("DIL2")
22522214   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)")
22552217   PORT_DIPNAME( 0x02, 0x00, "10p Payout Priority" ) PORT_DIPLOCATION("DIL2:02")
22562218   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
22572219   PORT_DIPSETTING(    0x02, DEF_STR( On  ) )
r788r789
22612223   PORT_DIPNAME( 0x08, 0x00, "50p Payout Solenoid fitted?" ) PORT_DIPLOCATION("DIL2:04")
22622224   PORT_DIPSETTING(    0x00, DEF_STR( No ) )
22632225   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")
22652227   PORT_DIPSETTING(    0x00, DEF_STR( No ) )
22662228   PORT_DIPSETTING(    0x10, DEF_STR( Yes  ) )
22672229   PORT_DIPNAME( 0x20, 0x00, "Coin alarm active?" ) PORT_DIPLOCATION("DIL2:06")
r788r789
22852247   PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_OTHER) PORT_NAME("7")
22862248
22872249   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)
23002254   PORT_BIT(0x10, IP_ACTIVE_HIGH, IPT_COIN1) PORT_NAME("10p")PORT_IMPULSE(5)
23012255   PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_COIN2) PORT_NAME("20p")PORT_IMPULSE(5)
23022256   PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_COIN3) PORT_NAME("50p")PORT_IMPULSE(5)
r788r789
23682322   acia6850_config(0, &m6809_acia_if);
23692323   acia6850_config(1, &m68k_acia_if);
23702324
2371// setup 128 lamps //////////////////////////////////////////////////////
2372   Lamps_init(128);
2373
23742325// setup 8 mechanical meters ////////////////////////////////////////////
23752326   Mechmtr_init(8);
23762327
r788r789
23932344
23942345   serial_card_connected=0;
23952346   mod_number=2;
2396// setup 128 lamps //////////////////////////////////////////////////////
2397   Lamps_init(128);
23982347
23992348// setup 8 mechanical meters ////////////////////////////////////////////
24002349   Mechmtr_init(8);
r788r789
24072356
24082357// setup the standard oki MSC1937 display ///////////////////////////////
24092358   ROC10937_init(0, MSC1937,0);
2410   filter_rc_set_RC(0,FLT_RC_LOWPASS, 820,500,0,CAP_U(0.01));
24112359}
24122360
24132361/*
r788r789
24582406   int call=data;
24592407      for ( x = 0; x < 64; x++ )
24602408      {
2461         LOG_CHR(("Characteriser %02X:",chr_data[x]));
2409         LOG_CHR(("Characteriser %02X:",MPU4_chr_data[x]));
24622410      }
24632411
24642412   if (offset == 0)
r788r789
24692417         {
24702418            prot_col = x;
24712419            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]));
24732421            break;
24742422         }
24752423      }
r788r789
25032451   LOG_CHR(("Characteriser read offset %02X \n",offset));
25042452   if (offset == 0)
25052453   {
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]));
25072455      return MPU4_chr_data[prot_col];
25082456   }
25092457   if (offset == 3)
25102458   {
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]));
25122460      return MPU4_chr_data[lamp_col+64];
25132461   }
25142462   return 0;
r788r789
25352483static READ16_HANDLER( characteriser16_r )
25362484{
25372485   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]));
25392487   return MPU4_chr_data[prot_col];
25402488}
25412489
r788r789
25522500   signal_50hz = 1;
25532501
25542502   pia_set_input_ca1(1,1);   // signal is connected to IC4 CA1
2503
25552504   mame_timer_adjust(freq_timer, MAME_TIME_IN_HZ(100), 0, time_zero);
25562505}
25572506
2558static ADDRESS_MAP_START( mpu4_vid_map, ADDRESS_SPACE_PROGRAM, 16 )
2507static ADDRESS_MAP_START( mpu4_68k_map, ADDRESS_SPACE_PROGRAM, 16 )
25592508   AM_RANGE(0x000000, 0x7fffff) AM_ROM
25602509
25612510//  AM_RANGE(0x600000, 0x63ffff) AM_RAM? In expanded games (mating)
r788r789
25872536ADDRESS_MAP_END
25882537
25892538/* TODO: Fix up MPU4 map*/
2590static ADDRESS_MAP_START( mpu4_map, ADDRESS_SPACE_PROGRAM, 8 )
2539static ADDRESS_MAP_START( mpu4_6809_map, ADDRESS_SPACE_PROGRAM, 8 )
25912540   AM_RANGE(0x0000, 0x07ff) AM_RAM AM_BASE(&generic_nvram) AM_SIZE(&generic_nvram_size)
25922541
25932542   AM_RANGE(0x0800, 0x0800) AM_READWRITE(acia6850_0_stat_r, acia6850_0_ctrl_w)
r788r789
26292578static ADDRESS_MAP_START( mod2_memmap, ADDRESS_SPACE_PROGRAM, 8 )
26302579   AM_RANGE(0x0000, 0x07ff) AM_RAM AM_BASE(&generic_nvram) AM_SIZE(&generic_nvram_size)
26312580
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)
26342583
26352584   AM_RANGE(0x0850, 0x0850) AM_WRITE(bankswitch_w)   // write bank (rom page select)
26362585
r788r789
27812730   }
27822731}
27832732
2784
27852733static ADDRESS_MAP_START( dealem_memmap, ADDRESS_SPACE_PROGRAM, 8 )
27862734
27872735   AM_RANGE(0x0000, 0x07ff) AM_RAM AM_BASE(&generic_nvram) AM_SIZE(&generic_nvram_size)
r788r789
28252773static MACHINE_DRIVER_START( mpu4_vid )
28262774
28272775   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)
28292777   MDRV_CPU_PERIODIC_INT(gen_50hz, 50 )
28302778
28312779   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)
28332781   MDRV_CPU_VBLANK_INT(mpu4_vid_irq,1)
28342782
28352783   MDRV_NVRAM_HANDLER(generic_0fill)            // confirm
r788r789
28502798
28512799   MDRV_SPEAKER_STANDARD_MONO("mono")
28522800   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)
28552801   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
28562802
28572803   MDRV_SPEAKER_STANDARD_STEREO("left", "right")// Present on all video cards
r788r789
28742820
28752821   MDRV_SPEAKER_STANDARD_MONO("mono")
28762822   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)
28792823   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
28802824
28812825   MDRV_NVRAM_HANDLER(generic_0fill)               // load/save nv RAM
r788r789
28832827   /* video hardware */
28842828   MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER)
28852829   MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16)
2830
28862831   MDRV_SCREEN_SIZE(288, 34)
28872832   MDRV_SCREEN_VISIBLE_AREA(0, 288-1, 0, 34-1)
28882833   MDRV_SCREEN_REFRESH_RATE(50)
2889   MDRV_VIDEO_START(mpu4)
2890   MDRV_VIDEO_UPDATE(mpu4)
2834
28912835   MDRV_PALETTE_LENGTH(16)
28922836   MDRV_COLORTABLE_LENGTH(16)
28932837   MDRV_PALETTE_INIT(mpu4)
2894
28952838MACHINE_DRIVER_END
28962839
28972840// machine driver for zenitone dealem board /////////////////////////////////
r788r789
29002843
29012844   MDRV_MACHINE_START(mpu4mod2)                     // main mpu4 board initialisation
29022845   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
29052848
29062849   MDRV_CPU_PERIODIC_INT(gen_50hz, 50)   // generate 50 hz signal
29072850
r788r789
29112854
29122855   MDRV_SPEAKER_STANDARD_MONO("mono")
29132856   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)
29162857   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
29172858
29182859   MDRV_NVRAM_HANDLER(generic_0fill)               // load/save nv RAM
r788r789
29332874MACHINE_DRIVER_END
29342875
29352876   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};
29442885
29452886DRIVER_INIT (crmaze)
29462887{
r788r789
29802921   }
29812922}
29822923
2924DRIVER_INIT (connect4)
2925{
2926   led_extend=1;
2927}
2928
29832929/*
29842930   Barcrest released two different games called "The Crystal Maze".
29852931   One is a non-video AWP, and uses only the MPU4 card, and the other SWP is the one we're interested in running
r788r789
31573103   ROM_LOAD( "zenndlem.u10",      0x000, 0x104, CRC(e3103c05) SHA1(91b7be75c5fb37025039ab54b484e46a033969b5) )
31583104ROM_END
31593105
3160GAMEL(1989?,connect4,0,       mpu4mod2,     connect4, 0,        0,   "Dolbeck Systems", "Connect 4",                                          GAME_IMPERFECT_GRAPHICS|GAME_NO_SOUND,layout_connect4 )
3161GAME( 199?, bctvidbs,0,       mpu4mod2,      mpu4,     0,    ROT0,   "Barcrest",       "MPU4 Video Firmware",                                    GAME_IS_BIOS_ROOT )
3106GAMEL(1989?,connect4,0,       mpu4mod2, connect4, connect4, 0,   "Dolbeck Systems", "Connect 4",                                          GAME_IMPERFECT_GRAPHICS,layout_connect4 )
3107GAME( 199?, bctvidbs,0,       mpu4mod2, mpu4,     0,    ROT0,   "Barcrest",       "MPU4 Video Firmware",                                    GAME_IS_BIOS_ROOT )
31623108
31633109//Deal 'Em was a conversion kit designed to make early MPU4 machines into video games by replacing the top glass
31643110//and reel assembly with this kit and a supplied monitor.
31653111//The real Deal 'Em ran on Summit Coin hardware, and was made by someone else.
31663112//A further different release was made in 2000, running on the Barcrest MPU4 Video, rather than this one.
3167GAME( 1987, dealem,0,      dealem,   dealem,   0,    ROT0,   "Zenitone",       "Deal 'Em (MPU4 Conversion Kit)",                           GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS|GAME_WRONG_COLORS )
3113GAME( 1987, dealem,    0,      dealem,   dealem,   0,    ROT0,   "Zenitone",       "Deal 'Em (MPU4 Conversion Kit)",                           GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS|GAME_WRONG_COLORS )
31683114
31693115GAME( 1994?,crmaze,  bctvidbs,mpu4_vid, crmaze,   crmaze,ROT0,   "Barcrest",       "The Crystal Maze: Team Challenge (SWP)",                     GAME_NOT_WORKING|GAME_NO_SOUND )
31703116GAME( 1992?,crmazea, crmaze,  mpu4_vid, crmaze,   crmaze,ROT0,   "Barcrest",       "The Crystal Maze (AMLD version SWP)",                        GAME_NOT_WORKING|GAME_NO_SOUND )
src/mame/drivers/stv.c
r788r789
24842484   //minit_w(offset,data,mem_mask);
24852485}
24862486
2487#ifdef MAME_DEBUG
24872488static void print_game_info(void);
2489#endif
24882490
24892491DRIVER_INIT ( stv )
24902492{
r788r789
25352537   for(dst_i=0;dst_i<0x100;dst_i++) \
25362538      STR[dst_i] = 0x00;
25372539
2540#ifdef MAME_DEBUG
25382541static void print_game_info(void)
25392542{
25402543   UINT8 *ROM = memory_region(REGION_USER1);
r788r789
25632566   fclose(print_file);
25642567   print_file = NULL;
25652568}
2569#endif
25662570
25672571static const gfx_layout tiles8x8x4_layout =
25682572{
src/mame/drivers/vamphalf.c
r788r789
803803           ROM1/2               - ST M27C4001 4MBit DIP32 EPROM
804804*/
805805
806ROM_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) )
806810
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) )
819ROM_END
820
807821ROM_START( luplup ) /* version 3.0 / 990128 */
808822   ROM_REGION16_BE( 0x100000, REGION_USER1, ROMREGION_ERASE00 ) /* Hyperstone CPU Code */
809823   ROM_LOAD( "luplup-rom1.v30", 0x00000, 0x80000, CRC(9ea67f87) SHA1(73d16c056a8d64743181069a01559a43fee529a3) )
r788r789
839853ROM_END
840854
841855
842ROM_START( puzlbang ) /* version 2.8 / 990106 */
856ROM_START( puzlbang ) /* version 2.8 / 990106 - Korea only, cannot select title or language */
843857   ROM_REGION16_BE( 0x100000, REGION_USER1, ROMREGION_ERASE00 ) /* Hyperstone CPU Code */
844858   ROM_LOAD( "pbb-rom1.v28", 0x00000, 0x80000, CRC(fd21c5ff) SHA1(bc6314bbb2495c140788025153c893d5fd00bdc1) )
845859   ROM_LOAD( "pbb-rom2.v28", 0x80000, 0x80000, CRC(490ecaeb) SHA1(2b0f25e3d681ddf95b3c65754900c046b5b50b09) )
r788r789
855869ROM_END
856870
857871
858ROM_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) )
871ROM_END
872
873872/*
874873
875874Wyvern Wings (c) 2001 SemiCom, Game Vision License
876875
877
878876   CPU: Hyperstone E1-32T
879877 Video: 2 QuickLogic QL12x16B-XPL84 FPGA
880878 Sound: AdMOS QDSP1000 with QDSP QS1001A sample rom
r788r789
918916+------------------------------------+----+------------------------+
919917
920918S1 is the setup button
921S2 is a reset button
919S2 is the reset button
922920
923921ROMH & ROML are all MX 29F1610MC-16 flash roms
924922u15A is a MX 29F1610MC-16 flash rom
r788r789
994992DRAM are KM416C1204AJ-6
995993MEM are MCM6206BAEJ15
996994
995SW1 is the reset button
996SW2 is the setup button
997
997998*/
998999
9991000ROM_START( finalgdr )
r788r789
10021003   ROM_LOAD( "rom1", 0x080000, 0x080000, CRC(45815931) SHA1(80ba7a366994e40a1f520ea18fad82e6b068b279) )
10031004
10041005   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) )
10071008   /* roml01 empty */
10081009   /* romh01 empty */
10091010
r788r789
12171218}
12181219
12191220GAME( 1999, coolmini, 0,      coolmini, common,   coolmini, ROT0,   "SemiCom",           "Cool Minigame Collection", 0 )
1220GAME( 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
1221GAME( 1999, suplup,   0,      suplup,   common,   suplup,   ROT0,   "Omega System",      "Super Lup Lup Puzzle / Zhuan Zhuan Puzzle (version 4.0 / 990518)" , 0)
12211222GAME( 1999, luplup,   suplup, suplup,   common,   luplup,   ROT0,   "Omega System",      "Lup Lup Puzzle / Zhuan Zhuan Puzzle (version 3.0 / 990128)", 0 )
12221223GAME( 1999, luplup29, suplup, suplup,   common,   luplup29, ROT0,   "Omega System",      "Lup Lup Puzzle / Zhuan Zhuan Puzzle (version 2.9 / 990108)", 0 )
1223GAME( 1999, puzlbang, suplup, suplup,   common,   puzlbang, ROT0,   "Omega System",      "Puzzle Bang Bang (version 2.8 / 990106)", 0 ) // Korean only
1224GAME( 1999, puzlbang, suplup, suplup,   common,   puzlbang, ROT0,   "Omega System",      "Puzzle Bang Bang (version 2.8 / 990106)", 0 )
12241225GAME( 1999, vamphalf, 0,      vamphalf, common,   vamphalf, ROT0,   "Danbi & F2 System", "Vamp 1/2 (Korea version)", 0 )
12251226GAME( 2000, misncrft, 0,      misncrft, common,   misncrft, ROT90,  "Sun",               "Mission Craft (version 2.4)", GAME_NO_SOUND )
12261227GAME( 2001, finalgdr, 0,      finalgdr, common,   finalgdr, ROT0,   "SemiCom",           "Final Godori", GAME_IMPERFECT_SOUND | GAME_NOT_WORKING )
src/mame/drivers/m72.c
r788r789
25682568
25692569   ROM_REGION( 0x80000, REGION_GFX1, ROMREGION_DISPOSE ) /* Roms located on the M72-ROM-C rom board */
25702570   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 )
25722573   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 )
25742576   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 )
25762579   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 )
25782582
25792583   ROM_REGION( 0x20000, REGION_GFX2, ROMREGION_DISPOSE ) /* Roms located on the M72-B-D rom board */
25802584   ROM_LOAD( "rt_b-a0.3c", 0x00000, 0x08000, CRC(4e212fb0) SHA1(687061ecade2ebd0bd1343c9c4a831791853f79c) )   /* tiles #1 */
r788r789
26002604
26012605   ROM_REGION( 0x80000, REGION_GFX1, ROMREGION_DISPOSE ) /* Roms located on the M72-ROM-C rom board */
26022606   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 )
26042609   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 )
26062612   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 )
26082615   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 )
26102618
26112619   ROM_REGION( 0x20000, REGION_GFX2, ROMREGION_DISPOSE ) /* Roms located on the M72-B-D rom board */
26122620   ROM_LOAD( "rt_b-a0.3c", 0x00000, 0x08000, CRC(4e212fb0) SHA1(687061ecade2ebd0bd1343c9c4a831791853f79c) )   /* tiles #1 */
r788r789
26322640
26332641   ROM_REGION( 0x80000, REGION_GFX1, ROMREGION_DISPOSE ) /* Roms located on the M72-ROM-C rom board */
26342642   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 )
26362645   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 )
26382648   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 )
26402651   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 )
26422654
26432655   ROM_REGION( 0x20000, REGION_GFX2, ROMREGION_DISPOSE ) /* Roms located on the M72-B-D rom board */
26442656   ROM_LOAD( "rt_b-a0.3c", 0x00000, 0x08000, CRC(4e212fb0) SHA1(687061ecade2ebd0bd1343c9c4a831791853f79c) )   /* tiles #1 */
r788r789
26652677   ROM_REGION( 0x80000, REGION_GFX1, ROMREGION_DISPOSE ) /* Roms located on the M72-ROM-C rom board */
26662678   ROM_LOAD( "rt_r-00.1h", 0x00000, 0x10000, CRC(dad53bc0) SHA1(1e3bc498861946278a0b1fe24259f5d224e265d7) )   /* sprites */
26672679   ROM_LOAD( "rt_r-01.1j", 0x10000, 0x08000, CRC(5e441e7f) SHA1(6741eb7f2d9d985b5a89eefc73ea44c3e38de6f7) )
2668    ROM_RELOAD(             0x08000, 0x08000 )
2680   ROM_RELOAD(             0x18000, 0x08000 )
26692681   ROM_LOAD( "rt_r-10.1k", 0x20000, 0x10000, CRC(d6a66298) SHA1(d2873d05aa3b257e7699c188880ac3daad672fa5) )
26702682   ROM_LOAD( "rt_r-11.1l", 0x30000, 0x08000, CRC(791df4f8) SHA1(5239a97222212ac9c019177771cb2b5096b7bc17) )
2671    ROM_RELOAD(             0x08000, 0x08000 )
2683   ROM_RELOAD(             0x38000, 0x08000 )
26722684   ROM_LOAD( "rt_r-20.3h", 0x40000, 0x10000, CRC(fc247c8a) SHA1(01cf0a60f47fa5e2ed430a3f075e69e6cb762a48) )
26732685   ROM_LOAD( "rt_r-21.3j", 0x50000, 0x08000, CRC(ed793841) SHA1(7e55a9a11fcd989db39bce6be48821b747c7d97f) )
2674    ROM_RELOAD(             0x08000, 0x08000 )
2686   ROM_RELOAD(             0x58000, 0x08000 )
26752687   ROM_LOAD( "rt_r-30.3k", 0x60000, 0x10000, CRC(eb02a1cb) SHA1(60a394ab53afdcbbf9e88083b8dbe8c897170d77) )
26762688   ROM_LOAD( "rt_r-31.3l", 0x70000, 0x08000, CRC(8558355d) SHA1(b5467d1f22f6e5f90c5d8a8ac2d55974f287d589) )
2677    ROM_RELOAD(             0x08000, 0x08000 )
2689   ROM_RELOAD(             0x78000, 0x08000 )
26782690
26792691   ROM_REGION( 0x20000, REGION_GFX2, ROMREGION_DISPOSE ) /* Roms located on the M72-B-D rom board */
26802692   ROM_LOAD( "rt_b-a0.3c", 0x00000, 0x08000, CRC(4e212fb0) SHA1(687061ecade2ebd0bd1343c9c4a831791853f79c) )   /* tiles #1 */
r788r789
26902702
26912703   ROM_REGION( 0x0200, REGION_PROMS, 0 ) /* Located on M72-A-C CPU/Sound board */
26922704   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 */
26942706
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 */
26992711   ROM_LOAD( "m72_a-3d-.bin",  0x0000, 0x0001, NO_DUMP ) /* PAL16L8 at IC11 */
27002712   ROM_LOAD( "m72_a-4d-.bin",  0x0000, 0x0001, NO_DUMP ) /* PAL16L8 at IC19 */
27012713ROM_END
src/mame/drivers/ksys573.c
r788r789
37473747   DISK_IMAGE_READONLY( "874kaa", 0, BAD_DUMP MD5(5e02c8dba12f949ce99834e597d8d08d) SHA1(659281e1b63c5ff0616b27d7f87a4e7f1c493372) )
37483748ROM_END
37493749
3750ROM_START( dsem2 )
3751   ROM_REGION32_LE( 0x080000, REGION_USER1, 0 )
3752   SYS573_BIOS_A
3753
3754   ROM_REGION( 0x0001014, REGION_USER2, 0 ) /* security cart eeprom */
3755   ROM_LOAD( "gkc23ea.u1",   0x000000, 0x001014, BAD_DUMP CRC(aec2421a) SHA1(5ea9e9ce6161ebc99a50db0b7304385511bd4553) )
3756
3757   ROM_REGION( 0x1000000, REGION_USER3, 0 ) /* onboard flash */
3758   ROM_FILL( 0x0000000, 0x1000000, 0xff )
3759
3760   ROM_REGION( 0x2000000, REGION_USER5, 0 ) /* PCCARD2 */
3761   ROM_FILL( 0x0000000, 0x2000000, 0xff )
3762
3763   ROM_REGION( 0x000008, REGION_USER9, 0 ) /* security cart id */
3764   ROM_LOAD( "gkc23ea.u6",   0x000000, 0x000008, BAD_DUMP CRC(ce84419e) SHA1(839e8ee080ecfc79021a06417d930e8b32dfc6a1) )
3765
3766   DISK_REGION( REGION_DISKS )
3767   DISK_IMAGE_READONLY( "c23eaa02", 0, MD5(e7275ba9f53334ac528afaa278df7153) SHA1(661f0b53ab64fc746b8e3b7ff3dd32d2bed852ac) )
3768ROM_END
3769
37503770ROM_START( dstage )
37513771   ROM_REGION32_LE( 0x080000, REGION_USER1, 0 )
37523772   SYS573_BIOS_A
r788r789
42404260GAME( 2001, gtrfrk6m, sys573,   konami573, gtrfrks,   gtrfrkdigital,ROT0, "Konami", "Guitar Freaks 6th Mix (G*B06 VER. JAA)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND | GAME_NOT_WORKING ) /* BOOT VER 1.9 */
42414261GAME( 2001, ddrmax,   sys573,   konami573, ddr,       ddrdigital, ROT0, "Konami", "DDR Max - Dance Dance Revolution 6th Mix (G*B19 VER. JAA)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND | GAME_NOT_WORKING ) /* BOOT VER 1.9 */
42424262GAME( 2002, ddrmax2,  sys573,   konami573, ddr,       ddrdigital, ROT0, "Konami", "DDR Max 2 - Dance Dance Revolution 7th Mix (G*B20 VER. JAA)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND | GAME_NOT_WORKING ) /* BOOT VER 1.9 */
4263GAME( 2002, dsem2,    sys573,   konami573, ddr,       ddrdigital, ROT0, "Konami", "Dancing Stage Euro Mix 2 (G*C23 VER. EAA)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND | GAME_NOT_WORKING ) /* BOOT VER 1.95 */
42434264GAME( 2004, gtfrk11m, sys573,   konami573, gtrfrks,   gtrfrkdigital,ROT0, "Konami", "Guitar Freaks 11th Mix (G*D39 VER. JAA)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND | GAME_NOT_WORKING ) /* BOOT VER 1.95 */
src/mame/drivers/tecmo16.c
r788r789
169169
170170INPUT_PORTS_START( fstarfrc )
171171   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")
173173   PORT_DIPSETTING(    0x03, DEF_STR( 1C_1C ) )
174174   PORT_DIPSETTING(    0x02, DEF_STR( 1C_2C ) )
175175   PORT_DIPSETTING(    0x01, DEF_STR( 1C_3C ) )
176176   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")
178178   PORT_DIPSETTING(    0x00, DEF_STR( 4C_1C ) )
179179   PORT_DIPSETTING(    0x04, DEF_STR( 3C_1C ) )
180180   PORT_DIPSETTING(    0x08, DEF_STR( 2C_1C ) )
181181   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")
183183   PORT_DIPSETTING(    0x10, DEF_STR( Off ) )
184184   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")
186186   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
187187   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")
189189   PORT_DIPSETTING(    0x00, DEF_STR( No ) )
190190   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
192192   PORT_DIPSETTING(    0x80, DEF_STR( Off ) )
193193   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
194194
195195   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")
197197   PORT_DIPSETTING(    0x00, "2" )
198198   PORT_DIPSETTING(    0x03, "3" )
199199   PORT_DIPSETTING(    0x02, "4" )
200200   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 ) )
203203   PORT_DIPSETTING(    0x0c, DEF_STR( Medium )  )
204   PORT_DIPSETTING(    0x08, DEF_STR( Hard ) )
204   PORT_DIPSETTING(    0x04, DEF_STR( Hard ) )
205205   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
207207   PORT_DIPSETTING(    0x30, "Fast" )
208208   PORT_DIPSETTING(    0x20, "Fastest" )
209209   PORT_DIPSETTING(    0x10, "Slow" )
210210   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")
212212   PORT_DIPSETTING(    0xc0, "200000,1000000" )
213213   PORT_DIPSETTING(    0x80, "220000,1200000" )
214214   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
216216
217217   PORT_START
218218   PORT_BIT( 0x0001, IP_ACTIVE_LOW,  IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1)
r788r789
235235
236236INPUT_PORTS_START( ginkun )
237237   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")
239239   PORT_DIPSETTING(    0x03, DEF_STR( 1C_1C ) )
240240   PORT_DIPSETTING(    0x02, DEF_STR( 1C_2C ) )
241241   PORT_DIPSETTING(    0x01, DEF_STR( 1C_3C ) )
242242   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")
244244   PORT_DIPSETTING(    0x00, DEF_STR( 4C_1C ) )
245245   PORT_DIPSETTING(    0x04, DEF_STR( 3C_1C ) )
246246   PORT_DIPSETTING(    0x08, DEF_STR( 2C_1C ) )
247247   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")
249249   PORT_DIPSETTING(    0x10, DEF_STR( Off ) )
250250   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")
252252   PORT_DIPSETTING(    0x20, DEF_STR( Off ) )
253253   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")
255255   PORT_DIPSETTING(    0x40, DEF_STR( Off ) )
256256   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")
258258   PORT_DIPSETTING(    0x80, DEF_STR( Off ) )
259259   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
260260
261261   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")
263263   PORT_DIPSETTING(    0x00, "2" )
264264   PORT_DIPSETTING(    0x03, "3" )
265265   PORT_DIPSETTING(    0x02, "4" )
266266   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")
268268   PORT_DIPSETTING(    0x08, DEF_STR( Easy ) )
269269   PORT_DIPSETTING(    0x0c, DEF_STR( Normal ) )
270270   PORT_DIPSETTING(    0x04, DEF_STR( Hard ) )
271271   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")
273273   PORT_DIPSETTING(    0x10, DEF_STR( Off ) )
274274   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")
276276   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )      /* Doesn't work? */
277277   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")
279279   PORT_DIPSETTING(    0x40, DEF_STR( Off ) )
280280   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")
282282   PORT_DIPSETTING(    0x80, DEF_STR( Off ) )
283283   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
284284
r788r789
306306
307307INPUT_PORTS_START( riot )
308308   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")
310310   PORT_DIPSETTING(    0x00, DEF_STR( 5C_1C ) )
311311   PORT_DIPSETTING(    0x01, DEF_STR( 4C_1C ) )
312312   PORT_DIPSETTING(    0x02, DEF_STR( 3C_1C ) )
r788r789
315315   PORT_DIPSETTING(    0x06, DEF_STR( 1C_2C ) )
316316   PORT_DIPSETTING(    0x05, DEF_STR( 1C_3C ) )
317317   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")
319319   PORT_DIPSETTING(    0x00, DEF_STR( 5C_1C ) )
320320   PORT_DIPSETTING(    0x08, DEF_STR( 4C_1C ) )
321321   PORT_DIPSETTING(    0x10, DEF_STR( 3C_1C ) )
r788r789
324324   PORT_DIPSETTING(    0x30, DEF_STR( 1C_2C ) )
325325   PORT_DIPSETTING(    0x28, DEF_STR( 1C_3C ) )
326326   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")
328328   PORT_DIPSETTING(    0x40, "1" )
329329   PORT_DIPSETTING(    0x00, "2" )
330   PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) )
330   PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) )    PORT_DIPLOCATION("SW1:8")
331331   PORT_DIPSETTING(    0x80, DEF_STR( Off ) )
332332   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
333333
334334   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")
336336   PORT_DIPSETTING(    0x03, "1" )
337337   PORT_DIPSETTING(    0x02, "2" )
338338   PORT_DIPSETTING(    0x01, "3" )
339339   PORT_DIPSETTING(    0x00, "4" )
340   PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) )
340   PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) )    PORT_DIPLOCATION("SW2:3")
341341   PORT_DIPSETTING(    0x04, DEF_STR( Off ) )
342342   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")
344344   PORT_DIPSETTING(    0x08, DEF_STR( Off ) )
345345   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")
347347   PORT_DIPSETTING(    0x10, DEF_STR( Off ) )
348348   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")
350350   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
351351   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")
353353   PORT_DIPSETTING(    0x40, DEF_STR( Off ) )
354354   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")
356356   PORT_DIPSETTING(    0x80, DEF_STR( Off ) )
357357   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
358358
src/mame/drivers/cojag.c
r788r789
9292    jspkr left/right/subwoofer output
9393    hdpower 4 pin PC power connector for HD
9494
95
96Maximum Force
97Atari, 1997
98
99PCB Layout
100----------
101
102MAXIMUM 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|-------|  |----------------------------|  |----------------------------------------|
131Notes:
132      JGUN1 / JGUN2 - Connector for Guns
133      VIA VT83C461 - IDE Controller
134      JSPKR - Speaker Output Connector (for use with Stereo jumper)
135
95136****************************************************************************
96137
97138    Memory map (TBA)
r788r789
10391080 *
10401081 *************************************/
10411082
1083/****************************************
1084
1085       ROM & Hard Disk based games
1086
1087****************************************/
1088
10421089ROM_START( area51t ) /* 68020 based, Area51 Time Warner License  Date: Nov 15, 1995 */
10431090   ROM_REGION32_BE( 0x200000, REGION_USER1, 0 )   /* 2MB for 68020 code */
10441091   ROM_LOAD32_BYTE( "3h.bin", 0x00000, 0x80000, CRC(e70a97c4) SHA1(39dabf6bf3dc6f717a587f362d040bfb332be9e1) )
r788r789
10961143ROM_END
10971144
10981145
1146ROM_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) )
1158ROM_END
1159
1160
1161ROM_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) )
1170ROM_END
1171
1172
1173ROM_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) )
1182ROM_END
1183
1184
1185ROM_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) )
1194ROM_END
1195
1196/****************************************
1197
1198       ROM based games
1199
1200****************************************/
1201
1202
10991203ROM_START( fishfren )
11001204   ROM_REGION32_BE( 0x200000, REGION_USER1, 0 )   /* 2MB for R3000 code */
11011205   ROM_LOAD32_BYTE( "hh", 0x00000, 0x80000, CRC(2ef79767) SHA1(abcea584f2cbd71b05f9d7e61f40ca9da6799215) )
r788r789
11041208   ROM_LOAD32_BYTE( "ll", 0x00003, 0x80000, CRC(d70d0f2c) SHA1(2689cbe56ae3d491348b241528b0fe345fa8484c) )
11051209
11061210   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) )
11081212   ROMX_LOAD( "l55-48", 0x000001, 0x100000, CRC(0c7592bb) SHA1(d5bd6b872abad58947842205f9eac46fd065e88f), ROM_SKIP(7) )
11091213   ROMX_LOAD( "l47-40", 0x000002, 0x100000, CRC(6d7dcdb1) SHA1(914dae3b9df5c861f794b683571c5fb0c2c3c3fd), ROM_SKIP(7) )
11101214   ROMX_LOAD( "l39-32", 0x000003, 0x100000, CRC(ef3b8d98) SHA1(858c3342e9693bfe887b91dde1116a1656a1a105), ROM_SKIP(7) )
r788r789
11231227   ROM_COPY( REGION_USER2, 0x800000, 0xc00000, 0x400000 )
11241228ROM_END
11251229
1126
11271230ROM_START( freezeat )
11281231   ROM_REGION32_BE( 0x200000, REGION_USER1, 0 )   /* 2MB for R3000 code */
11291232   ROM_LOAD32_BYTE( "prog_eng.hh",          0x000000, 0x040000, CRC(f7cffafd) SHA1(62369de4cf0a5abab86f6bcf9621028b9e171ec3) )
r788r789
13071410ROM_END
13081411
13091412
1310ROM_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) )
1319ROM_END
1320
1321
1322ROM_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) )
1331ROM_END
1332
1333
1334ROM_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) )
1343ROM_END
1344
1345
1346
13471413/*************************************
13481414 *
13491415 *  Driver initialization
r788r789
15031569GAME( 1996, freezea6, freezeat, cojagr3k,  freezeat, freezea6, ROT0, "Atari Games", "Freeze (Atari) (prototype, 96/09/07, Jamma-96)", 0 )
15041570GAME( 1996, maxforce, 0,        r3knarrow, area51,   maxforce, ROT0, "Atari Games", "Maximum Force v1.05", 0 )
15051571GAME( 1996, maxf_102, maxforce, r3knarrow, area51,   maxforce, ROT0, "Atari Games", "Maximum Force v1.02", 0 )
1572GAME( 1996, maxf_ng,  maxforce, r3knarrow, area51,   maxforce, ROT0, "Atari Games", "Maximum Force (No Gore version)", 0 )
15061573GAME( 1998, area51mx, 0,        cojag68k,  area51,   area51mx, ROT0, "Atari Games", "Area 51 / Maximum Force Duo v2.0", 0 )
15071574GAME( 1998, a51mxr3k, area51mx, r3knarrow, area51,   a51mxr3k, ROT0, "Atari Games", "Area 51 / Maximum Force Duo (R3000)", 0 )
15081575GAME( 1996, vcircle,  0,        cojagr3k,  vcircle,  vcircle,  ROT0, "Atari Games", "Vicious Circle (prototype)", 0 )
src/mame/drivers/m92.c
r788r789
13021302
13031303/***************************************************************************/
13041304
1305ROM_START( bmaster )
1305ROM_START( bmaster ) /* M92-B-B PCB used for program rom locations */
13061306   ROM_REGION( 0x100000, REGION_CPU1, 0 )
1307   ROM_LOAD16_BYTE( "bm_d-h0.rom", 0x000001, 0x40000, CRC(49b257c7) SHA1(cb4917ef6c5f959094f95b8535ea12e6b9b0bcc2) )
1308   ROM_LOAD16_BYTE( "bm_d-l0.rom", 0x000000, 0x40000, CRC(a873523e) SHA1(9aee134c299e12064842e16db296f4259eccdf5b) )
1309   ROM_LOAD16_BYTE( "bm_d-h1.rom", 0x080001, 0x10000, CRC(082b7158) SHA1(ca2cfcb3ecd1f130d3fb893f08d53521e7d443d4) )
1310   ROM_LOAD16_BYTE( "bm_d-l1.rom", 0x080000, 0x10000, CRC(6ff0c04e) SHA1(7293a50445053101d22bc596d13e1a7ed67a65c6) )
1307   ROM_LOAD16_BYTE( "bm_d-h0-b.5m", 0x000001, 0x40000, CRC(49b257c7) SHA1(cb4917ef6c5f959094f95b8535ea12e6b9b0bcc2) )
1308   ROM_LOAD16_BYTE( "bm_d-l0-b.5f", 0x000000, 0x40000, CRC(a873523e) SHA1(9aee134c299e12064842e16db296f4259eccdf5b) )
1309   ROM_LOAD16_BYTE( "bm_d-h1-b.5l", 0x080001, 0x10000, CRC(082b7158) SHA1(ca2cfcb3ecd1f130d3fb893f08d53521e7d443d4) )
1310   ROM_LOAD16_BYTE( "bm_d-l1-b.5j", 0x080000, 0x10000, CRC(6ff0c04e) SHA1(7293a50445053101d22bc596d13e1a7ed67a65c6) )
13111311
13121312   ROM_REGION( 0x100000, REGION_CPU2, 0 )
13131313   ROM_LOAD16_BYTE( "bm_d-sh0.rom", 0x000001, 0x10000, CRC(9f7c075b) SHA1(1dd3fb4dc41d3adea9ca8d1b4363dadebea49bda) )
r788r789
13291329   ROM_LOAD( "bm_da.rom", 0x000000, 0x80000, CRC(62ce5798) SHA1(f7bf7706f71ce36d85c99e531d4789c4d7a095a0) )
13301330ROM_END
13311331
1332ROM_START( crossbld )
1332ROM_START( crossbld ) /* M92-D-A PCB used for program rom locations */
13331333   ROM_REGION( 0x100000, REGION_CPU1, 0 )
13341334   ROM_LOAD16_BYTE( "bm_d-h0.3h", 0x000001, 0x40000, CRC(a28a5821) SHA1(2e79ec82dd79697f4a6b4082d49400d39cc3bad9) )
13351335   ROM_LOAD16_BYTE( "bm_d-l0.5h", 0x000000, 0x40000, CRC(a504f1a0) SHA1(33ccc944b08b89e6a975a164c72b36aa79b99392) )
r788r789
23312331GAME( 1992, rtypelej, rtypeleo, raster,    rtypeleo, rtypelej, ROT0,   "Irem",         "R-Type Leo (Japan)", 0 )
23322332GAME( 1993, inthunt,  0,        raster,    inthunt,  inthunt,  ROT0,   "Irem",         "In The Hunt (World)", 0 )
23332333GAME( 1993, inthuntu, inthunt,  raster,    inthunt,  inthunt,  ROT0,   "Irem America", "In The Hunt (US)", 0 )
2334GAME( 1993, kaiteids, inthunt,  raster,    inthunt,  kaiteids, ROT0,   "Irem",         "Kaitei Daisensou (Japan)", 0 )
2334GAME( 1993, kaiteids, inthunt,  raster,    inthunt,  kaiteids, ROT0,   "Irem",         "Kaitei Daisensou (Japan)", 0 )
23352335GAME( 1993, nbbatman, 0,        raster,    nbbatman, nbbatman, ROT0,   "Irem America", "Ninja Baseball Batman (US)", GAME_IMPERFECT_GRAPHICS )
23362336GAME( 1993, leaguemn, nbbatman, raster,    nbbatman, nbbatman, ROT0,   "Irem",         "Yakyuu Kakutou League-Man (Japan)", GAME_IMPERFECT_GRAPHICS )
23372337GAME( 1993, ssoldier, 0,        psoldier,  psoldier, ssoldier, ROT0,   "Irem America", "Superior Soldiers (US)", GAME_IMPERFECT_SOUND )
src/mame/drivers/m107.c
r788r789
589589
590590ROM_START( firebarr )
591591   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) )
596596
597597   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) )
600600
601601   ROM_REGION( 0x200000, REGION_GFX1, ROMREGION_DISPOSE )   /* chars */
602602   ROM_LOAD16_BYTE( "f4-c00", 0x000000, 0x80000, CRC(50cab384) SHA1(66e88a1dfa943e0d49c2e186ac2f6cbf5cfe0864) )
r788r789
615615   ROM_LOAD16_BYTE( "f4-031", 0x300001, 0x80000, CRC(83ac56c5) SHA1(47e1063c71d5570fecf8591c2cb7c74fd45199f5) )
616616
617617   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) )
620620
621621   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) )
623623ROM_END
624624
625625ROM_START( dsoccr94 )
626626   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) )
631631
632632   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) )
635635
636636   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) )
641641
642642   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) )
647647
648648   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) )
650650ROM_END
651651
652652ROM_START( wpksoc )
653653   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) )
656656
657657   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) )
660660
661661   ROM_REGION( 0x200000, REGION_GFX1, ROMREGION_DISPOSE )   /* chars */
662662   ROM_LOAD16_BYTE( "pkos.c00", 0x000000, 0x80000, CRC(42ae3d73) SHA1(e4777066155c9882695ebff0412bd879b8d6f716) )
r788r789
665665   ROM_LOAD16_BYTE( "pkos.c11", 0x100001, 0x80000, CRC(19de7d63) SHA1(6d0633e412b47accaecc887a5c39f542eda49e81) )
666666
667667   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) )
676676
677677   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) )
679679ROM_END
680680
681681/***************************************************************************/
r788r789
739739
740740GAME( 1993, firebarr, 0, firebarr, firebarr, firebarr, ROT270, "Irem", "Fire Barrel (Japan)", GAME_NO_SOUND | GAME_IMPERFECT_GRAPHICS )
741741GAME( 1994, dsoccr94, 0, dsoccr94, dsoccr94, dsoccr94, ROT0,   "Irem (Data East Corporation license)", "Dream Soccer '94", 0 )
742GAME( 1995, wpksoc,   0, firebarr, wpksoc,    wpksoc,   ROT0,   "Jaleco", "World PK Soccer", GAME_NOT_WORKING | GAME_IMPERFECT_GRAPHICS )
742GAME( 1995, wpksoc,   0, firebarr, wpksoc,  wpksoc,   ROT0,   "Jaleco", "World PK Soccer", GAME_NOT_WORKING | GAME_IMPERFECT_GRAPHICS )
src/tools/chdman.c
r788r789
28112811    main - entry point
28122812-------------------------------------------------*/
28132813
2814#ifdef _WIN32
2815int CLIB_DECL utf8_main(int argc, char **argv)
2816#else
28172814int CLIB_DECL main(int argc, char **argv)
2818#endif
28192815{
28202816   static const struct
28212817   {
src/tools/romcmp.c
r788r789
554554}
555555
556556
557#ifdef WIN32
558int CLIB_DECL utf8_main(int argc,char **argv)
559#else
560557int CLIB_DECL main(int argc,char **argv)
561#endif
562558{
563559   int   err;
564560   int total_modes = MODE_NIB2;   /* by default, use only MODE_A, MODE_NIB1 and MODE_NIB2 */
src/osd/windows/windows.mak
r788r789
140140# Windows-specific debug objects and flags
141141#-------------------------------------------------
142142
143# map all instances of "main" to "utf8_main"
144DEFS += -Dmain=utf8_main
145
143146# debug build: enable guard pages on all memory allocations
144147ifdef DEBUG
148ifndef WINUI
145149DEFS += -DMALLOC_DEBUG
146150LDFLAGS += -Wl,--allow-multiple-definition
147151endif
152endif
148153
154# enable UNICODE flags for unicode builds
149155ifdef UNICODE
150156DEFS += -DUNICODE -D_UNICODE
151157endif
r788r789
157163#-------------------------------------------------
158164
159165# add our prefix files to the mix
160CFLAGS += -mwindows -include $(WINSRC)/winprefix.h
166CFLAGS += -include $(WINSRC)/winprefix.h
161167
162168ifdef WIN95_MULTIMON
163169CFLAGS += -DWIN95_MULTIMON
r788r789
194200   $(WINOBJ)/winalloc.o
195201endif
196202
197$(LIBOCORE): $(OSDCOREOBJS)
198203
199204
200
201205#-------------------------------------------------
202206# OSD Windows library
203207#-------------------------------------------------
r788r789
226230   $(WINOBJ)/debugwin.o
227231endif
228232
229# non-UI builds need a stub resource file
230ifeq ($(WINUI),)
233# add a stub resource file
231234ifdef PTR64
232OSDOBJS += $(WINOBJ)/mamex64.res
235RESFILE = $(WINOBJ)/mamex64.res
233236else
234OSDOBJS += $(WINOBJ)/mame.res
237RESFILE = $(WINOBJ)/mame.res
235238endif
236endif
237239
238$(LIBOSD): $(OSDOBJS)
239240
240241
241
242242#-------------------------------------------------
243# if building with a UI, set the C flags and
244# include the ui.mak
243# if building with a UI, include the ui.mak
245244#-------------------------------------------------
246245
247ifneq ($(WINUI),)
248CFLAGS += -DWINUI=1
246ifdef WINUI
249247include $(WINSRC)/ui/ui.mak
250248endif
251249
252250
253251
254252#-------------------------------------------------
253# rules for building the libaries
254#-------------------------------------------------
255
256$(LIBOCORE): $(OSDCOREOBJS)
257
258$(LIBOSD): $(OSDOBJS)
259
260
261
262#-------------------------------------------------
255263# rule for making the ledutil sample
256264#-------------------------------------------------
257265
258266ledutil$(EXE): $(WINOBJ)/ledutil.o $(LIBOCORE)
259267   @echo Linking $@...
260   $(LD) $(LDFLAGS) -mwindows $(OSDBGLDFLAGS) $^ $(LIBS) -o $@
268   $(LD) $(LDFLAGS) $(OSDBGLDFLAGS) $^ $(LIBS) -o $@
261269
262270TOOLS += ledutil$(EXE)
263271
src/osd/windows/vconv.c
r788r789
9595   { 0,      "-mno-cygwin",      "" },
9696   { 0,      "-s",            "" },
9797   { 0,      "-WO",            "" },
98   { 0,      "-mconsole",      "" },
99   { 0,      "-mwindows",      "" },
98   { 0,      "-mconsole",      "/subsystem:console" },
99   { 0,      "-mwindows",      "/subsystem:windows" },
100100   { 0,      "-shared",         "/dll" },
101101   { 0 }
102102};
src/osd/windows/main.c
r788r789
2424//  main
2525//============================================================
2626
27// undo the command-line #define that maps main to utf8_main in all other cases
28#ifndef MESSLIB
29#if !defined(WINUI) || defined(MESS)
30#undef main
31#endif
32#endif
33
2734#ifdef __GNUC__
2835int main(int argc, char **a_argv)
2936#else // !__GNUC__
src/osd/windows/drawd3d.c
r788r789
3535#include "winmain.h"
3636#include "window.h"
3737#include "config.h"
38#include "strconv.h"
3839
3940
4041
r788r789
11171118      // make sure it's a pixel format we can get behind
11181119      if (d3d->pixformat != D3DFMT_X1R5G5B5 && d3d->pixformat != D3DFMT_R5G6B5 && d3d->pixformat != D3DFMT_X8R8G8B8)
11191120      {
1120         mame_printf_error("Device %s currently in an unsupported mode\n", window->monitor->info.szDevice);
1121         char *utf8_device = utf8_from_tstring(window->monitor->info.szDevice);
1122         if (utf8_device != NULL)
1123         {
1124            mame_printf_error("Device %s currently in an unsupported mode\n", utf8_device);
1125            free(utf8_device);
1126         }
11211127         return 1;
11221128      }
11231129   }
r788r789
11401146   result = (*d3dintf->d3d.check_device_type)(d3dintf, d3d->adapter, D3DDEVTYPE_HAL, d3d->pixformat, d3d->pixformat, !window->fullscreen);
11411147   if (result != D3D_OK)
11421148   {
1143      mame_printf_error("Proposed video mode not supported on device %s\n", window->monitor->info.szDevice);
1149      char *utf8_device = utf8_from_tstring(window->monitor->info.szDevice);
1150      if (utf8_device != NULL)
1151      {
1152         mame_printf_error("Proposed video mode not supported on device %s\n", utf8_device);
1153         free(utf8_device);
1154      }
11441155      return 1;
11451156   }
11461157   return 0;
src/emu/debug/debugcpu.c
r788r789
8989static UINT64 get_logunmap(UINT32 ref);
9090static UINT64 get_beamx(UINT32 ref);
9191static UINT64 get_beamy(UINT32 ref);
92#ifdef MESS
93static UINT64 get_beammaxy(UINT32 ref);
94extern UINT32 beammaxy;
95#endif
9692static void set_tempvar(UINT32 ref, UINT64 value);
9793static void set_logunmap(UINT32 ref, UINT64 value);
9894static UINT64 get_current_pc(UINT32 ref);
r788r789
183179   symtable_add_register(global_symtable, "logunmapi", ADDRESS_SPACE_IO, get_logunmap, set_logunmap);
184180   symtable_add_register(global_symtable, "beamx", 0, get_beamx, NULL);
185181   symtable_add_register(global_symtable, "beamy", 0, get_beamy, NULL);
186#ifdef MESS
187   beammaxy = 0;
188   symtable_add_register(global_symtable, "bmaxY", 0, get_beammaxy, NULL);
189#endif
190182
191183   /* add the temporary variables to the global symbol table */
192184   for (regnum = 0; regnum < NUM_TEMP_VARIABLES; regnum++)
r788r789
660652   return video_screen_get_vpos(ref);
661653}
662654
663#ifdef MESS
664/*-------------------------------------------------
665    get_beammaxy - get maximum beam vertical position
666-------------------------------------------------*/
667655
668static UINT64 get_beammaxy(UINT32 ref)
669{
670   return beammaxy;
671}
672
673#endif
674
675
676656/*-------------------------------------------------
677657    set_logunmap - setter callback for the logumap
678658    symbols
src/emu/debug/debugvw.c
r788r789
172172***************************************************************************/
173173
174174static debug_view *first_view;
175#ifdef MESS
176UINT32 beammaxy = 0;
177#endif
178175
176
177
179178/***************************************************************************
180179    FUNCTION PROTOTYPES
181180***************************************************************************/
r788r789
10161015   maxvallen = MAX(maxvallen, regdata->reg[view->total_rows].vallen);
10171016   view->total_rows++;
10181017
1019#ifdef MESS
1020   /* add a beammax entry: maxy:789 */
1021   regdata->reg[view->total_rows].lastval  =
1022   regdata->reg[view->total_rows].currval  = 0;
1023   regdata->reg[view->total_rows].regnum   = MAX_REGS + 5;
1024   regdata->reg[view->total_rows].tagstart = 0;
1025   regdata->reg[view->total_rows].taglen   = 5;
1026   regdata->reg[view->total_rows].valstart = 6;
1027   regdata->reg[view->total_rows].vallen   = 3;
1028   maxtaglen = MAX(maxtaglen, regdata->reg[view->total_rows].taglen);
1029   maxvallen = MAX(maxvallen, regdata->reg[view->total_rows].vallen);
1030   view->total_rows++;
1031#endif
1032
10331018   /* add a flags entry: flags:xxxxxxxx */
10341019   regdata->reg[view->total_rows].lastval  =
10351020   regdata->reg[view->total_rows].currval  = 0;
r788r789
11431128                     sprintf(dummy, "beamy:%3d", video_screen_get_vpos(scrnum));
11441129                  break;
11451130
1146#ifdef MESS
1147               case MAX_REGS + 5:
1148                  if (video_screen_exists(scrnum))
1149                     beammaxy = MAX(video_screen_get_vpos(scrnum),beammaxy);
1150                     sprintf(dummy, "maxby:%3d", beammaxy);
1151                  break;
1152#endif
11531131               case MAX_REGS + 4:
11541132                  sprintf(dummy, "flags:%s", activecpu_flags());
11551133                  break;
src/emu/cpu/hd6309/6309ops.c
r788r789
1616{
1717   LOG(("HD6309: illegal opcode at %04x\nVectoring to [$fff0]\n",PC));
1818
19   CC |= CC_E | CC_IF | CC_II;
19   CC |= CC_E;
2020   PUSHWORD(pPC);
2121   PUSHWORD(pU);
2222   PUSHWORD(pY);
r788r789
356356      case  5: t1 = PC; break;
357357      case  6: t1 = W;  break;
358358      case  7: t1 = V;  break;
359      case  8: t1 = (promote ? D : A);  break;
360      case  9: t1 = (promote ? D : B);  break;
361      case 10: t1 = CC; break;
362      case 11: t1 = DP; break;
359      case  8: t1 = (promote ? A + ((A) << 8) : A);  break;
360      case  9: t1 = (promote ? B + ((B) << 8) : B);  break;
361      case 10: t1 = (promote ? CC + ((CC) << 8) : CC); break;
362      case 11: t1 = (promote ? DP + ((DP) << 8) : DP); break;
363363      case 12: t1 = 0;  break;
364364      case 13: t1 = 0;  break;
365      case 14: t1 = (promote ? W : E ); break;
366      default: t1 = (promote ? W : F ); break;
365      case 14: t1 = (promote ? E + ((E) << 8) : E); break;
366      default: t1 = (promote ? F + ((F) << 8) : F); break;
367367   }
368368   switch(tb&15) {
369369      case  0: t2 = D;  break;
r788r789
374374      case  5: t2 = PC; break;
375375      case  6: t2 = W;  break;
376376      case  7: t2 = V;  break;
377      case  8: t2 = (promote ? D : A);  break;
378      case  9: t2 = (promote ? D : B);  break;
379      case 10: t2 = CC; break;
380      case 11: t2 = DP; break;
377      case  8: t2 = (promote ? A + ((A) << 8) : A);  break;
378      case  9: t2 = (promote ? B + ((B) << 8) : B);  break;
379      case 10: t2 = (promote ? CC + ((CC) << 8) : CC); break;
380      case 11: t2 = (promote ? DP + ((DP) << 8) : DP); break;
381381      case 12: t2 = 0;  break;
382382      case 13: t2 = 0;  break;
383      case 14: t2 = (promote ? W : E); break;
384      default: t2 = (promote ? W : F); break;
383      case 14: t2 = (promote ? E + ((E) << 8) : E); break;
384      default: t2 = (promote ? F + ((F) << 8) : F); break;
385385   }
386386
387387   switch(tb>>4) {
r788r789
393393      case  5: PC = t2; CHANGE_PC; break;
394394      case  6: W = t2;  break;
395395      case  7: V = t2;  break;
396      case  8: if (promote) D = t2; else A = t2; break;
397      case  9: if (promote) D = t2; else B = t2; break;
398      case 10: CC = t2; break;
399      case 11: DP = t2; break;
396      case  8: A = (promote ? t2 >> 8 : t2); break;
397      case  9: B = (promote ? t2 & 0xff : t2); break;
398      case 10: CC = (promote ? t2 & 0xff : t2); break;
399      case 11: DP = (promote ? t2 >> 8 : t2); break;
400400      case 12: /* 0 = t2 */ break;
401401      case 13: /* 0 = t2 */ break;
402      case 14: if (promote) W = t2; else E = t2; break;
403      case 15: if (promote) W = t2; else F = t2; break;
402      case 14: E = (promote ? t2 >> 8 : t2); break;
403      case 15: F = (promote ? t2 & 0xff : t2); break;
404404   }
405405   switch(tb&15) {
406406      case  0: D = t1;  break;
r788r789
411411      case  5: PC = t1; CHANGE_PC; break;
412412      case  6: W = t1;  break;
413413      case  7: V = t1;  break;
414      case  8: if (promote) D = t1; else A = t1; break;
415      case  9: if (promote) D = t1; else B = t1; break;
416      case 10: CC = t1; break;
417      case 11: DP = t1; break;
414      case  8: A = (promote ? t1 >> 8 : t1); break;
415      case  9: B = (promote ? t1 & 0xff : t1); break;
416      case 10: CC = (promote ? t1 & 0xff : t1); break;
417      case 11: DP = (promote ? t1 >> 8 : t1); break;
418418      case 12: /* 0 = t1 */ break;
419419      case 13: /* 0 = t1 */ break;
420      case 14: if (promote) W = t1; else E = t1; break;
421      case 15: if (promote) W = t1; else F = t1; break;
420      case 14: E = (promote ? t1 >> 8 : t1); break;
421      case 15: F = (promote ? t1 & 0xff : t1); break;
422422   }
423423}
424424
r788r789
444444      case  5: t = PC; break;
445445      case  6: t = W;  break;
446446      case  7: t = V;  break;
447      case  8: t = (promote ? D : A );  break;
448      case  9: t = (promote ? D : B );  break;
449      case 10: t = CC; break;
450      case 11: t = DP; break;
447      case  8: t = (promote ? A + ((A) << 8) : A);  break;
448      case  9: t = (promote ? B + ((B) << 8) : B);  break;
449      case 10: t = (promote ? CC + ((CC) << 8) : CC); break;
450      case 11: t = (promote ? DP + ((DP) << 8) : DP); break;
451451      case 12: t = 0;  break;
452452      case 13: t = 0;  break;
453      case 14: t = (promote ? W : E ); break;
454      default: t = (promote ? W : F ); break;
453      case 14: t = (promote ? E + ((E) << 8) : E); break;
454      default: t = (promote ? F + ((F) << 8) : F); break;
455455   }
456456
457457   switch(tb&15) {
r788r789
463463      case  5: PC = t; CHANGE_PC; break;
464464      case  6: W = t;  break;
465465      case  7: V = t;  break;
466      case  8: if (promote) D = t; else A = t; break;
467      case  9: if (promote) D = t; else B = t; break;
468      case 10: CC = t; break;
469      case 11: DP = t; break;
470      case 12: /* 0 = t1 */ break;
471      case 13: /* 0 = t1 */ break;
472      case 14: if (promote) W = t; else E = t; break;
473      case 15: if (promote) W = t; else F = t; break;
466      case  8: A = (promote ? t >> 8 : t); break;
467      case  9: B = (promote ? t & 0xff : t); break;
468      case 10: CC = (promote ? t & 0xff : t); break;
469      case 11: DP = (promote ? t >> 8 : t); break;
470      case 12: /* 0 = t */ break;
471      case 13: /* 0 = t */ break;
472      case 14: E = (promote ? t >> 8 : t); break;
473      case 15: F = (promote ? t & 0xff : t); break;
474474   }
475475}
476476
r788r789
724724   if ( large )
725725   {
726726      r16 = *src16Reg + *dst16Reg;
727      CLR_HNZVC;
727      CLR_NZVC;
728      *dst16Reg = r16;
728729      SET_FLAGS16(*src16Reg,*dst16Reg,r16);
729      *dst16Reg = r16;
730730
731731      if ( (tb&15) == 5 )
732732      {
r788r789
736736   else
737737   {
738738      r8 = *src8Reg + *dst8Reg;
739      CLR_HNZVC;
740      SET_FLAGS8(*src8Reg,*dst8Reg,r8);
739      CLR_NZVC;
741740      /* SET_H(*src8Reg,*src8Reg,r8);*/ /*Experimentation prooved this not to be the case */
742741      *dst8Reg = r8;
742      SET_FLAGS8(*src8Reg,*dst8Reg,r8);
743743   }
744744}
745745
r788r789
757757   if ( large )
758758   {
759759      r16 = *src16Reg + *dst16Reg + (CC & CC_C);
760      CLR_HNZVC;
760      CLR_NZVC;
761      *dst16Reg = r16;
761762      SET_FLAGS16(*src16Reg,*dst16Reg,r16);
762      *dst16Reg = r16;
763763
764764      if ( (tb&15) == 5 )
765765      {
r788r789
769769   else
770770   {
771771      r8 = *src8Reg + *dst8Reg + (CC & CC_C);
772      CLR_HNZVC;
773      SET_FLAGS8(*src8Reg,*dst8Reg,r8);
772      CLR_NZVC;
774773      /* SET_H(*src8Reg,*src8Reg,r8);*/ /*Experimentation prooved this not to be the case */
775774      *dst8Reg = r8;
775      SET_FLAGS8(*src8Reg,*dst8Reg,r8);
776776   }
777777}
778778
r788r789
792792   {
793793      r16 = (UINT32)*dst16Reg - (UINT32)*src16Reg;
794794      CLR_NZVC;
795      *dst16Reg = r16;
795796      SET_FLAGS16((UINT32)*dst16Reg,(UINT32)*src16Reg,r16);
796      *dst16Reg = r16;
797797
798798      if ( (tb&15) == 5 )
799799      {
r788r789
804804   {
805805      r8 = *dst8Reg - *src8Reg;
806806      CLR_NZVC;
807      *dst8Reg = r8;
807808      SET_FLAGS8(*dst8Reg,*src8Reg,r8);
808      *dst8Reg = r8;
809809   }
810810}
811811
r788r789
825825   {
826826      r16 = (UINT32)*dst16Reg - (UINT32)*src16Reg - (CC & CC_C);
827827      CLR_NZVC;
828      *dst16Reg = r16;
828829      SET_FLAGS16((UINT32)*dst16Reg,(UINT32)*src16Reg,r16);
829      *dst16Reg = r16;
830830
831831      if ( (tb&15) == 5 )
832832      {
r788r789
837837   {
838838      r8 = *dst8Reg - *src8Reg - (CC & CC_C);
839839      CLR_NZVC;
840      *dst8Reg = r8;
840841      SET_FLAGS8(*dst8Reg,*src8Reg,r8);
841      *dst8Reg = r8;
842842   }
843843}
844844
r788r789
858858   {
859859      r16 = *src16Reg & *dst16Reg;
860860      CLR_NZV;
861      *dst16Reg = r16;
861862      SET_NZ16(r16);
862      *dst16Reg = r16;
863863
864864      if ( (tb&15) == 5 )
865865      {
r788r789
870870   {
871871      r8 = *src8Reg & *dst8Reg;
872872      CLR_NZV;
873      *dst8Reg = r8;
873874      SET_NZ8(r8);
874      *dst8Reg = r8;
875875   }
876876}
877877
r788r789
891891   {
892892      r16 = *src16Reg | *dst16Reg;
893893      CLR_NZV;
894      *dst16Reg = r16;
894895      SET_NZ16(r16);
895      *dst16Reg = r16;
896896
897897      if ( (tb&15) == 5 )
898898      {
r788r789
903903   {
904904      r8 = *src8Reg | *dst8Reg;
905905      CLR_NZV;
906      *dst8Reg = r8;
906907      SET_NZ8(r8);
907      *dst8Reg = r8;
908908   }
909909}
910910
r788r789
924924   {
925925      r16 = *src16Reg ^ *dst16Reg;
926926      CLR_NZV;
927      *dst16Reg = r16;
927928      SET_NZ16(r16);
928      *dst16Reg = r16;
929929
930930      if ( (tb&15) == 5 )
931931      {
r788r789
936936   {
937937      r8 = *src8Reg ^ *dst8Reg;
938938      CLR_NZV;
939      *dst8Reg = r8;
939940      SET_NZ8(r8);
940      *dst8Reg = r8;
941941   }
942942}
943943
r788r789
41274127/* $113c BITMD immediate -**0- */
41284128INLINE void bitmd_im( void )
41294129{
4130   /*
4131    The following is from Darren A.
4132
4133    The Z flag is the only condition code that should be affected by BITMD.
4134    For example, when the "Divide-By-Zero" flag (bit 7) is set, BITMD should
4135    not set the N flag. It should also NOT clear the V flag (unlike the other
4136    BIT instructions).
4137
4138    His comments come from experimentation and differ from Chris Burke
4139    */
4140
41304141   UINT8 t,r;
41314142   IMMBYTE(t);
41324143   r = MD & t;
4133   CLR_NZV;
4134   SET_NZ8(r);
4144   CLR_Z;
4145   SET_Z8(r);
41354146
4136   CLDZ;
4137   CLII;
4147   MD &= ~(r & 0xc0); /* clear the tested high bits */
4148
41384149}
41394150
41404151/* $c6 LDB immediate -**0- */
src/emu/cpu/hd6309/hd6309.c
r788r789
8484    To Do:
8585        Verify new DIV opcodes.
8686
87070805 TJL:
88    Fixed ADDR and ADCR opcodes not to clear the H condition code. Fixed ANDR,
89    EORR, ORR, ADDR, ADCR, SBCR, and SUBR to evaluate condition codes after
90    the destination register was set. Fixed BITMD opcode to only effect the Z
91    condition code. Fixed BITMD opcode to clear only tested flags. Fixed EXG
92    and TFR register promotion and demotion. Fixed illegal instruction handler
93    to not set I and F condition codes. Credit to Darren Atkinson for the
94    discovery of these bugs.
95
8796*****************************************************************************/
8897
8998#include "debugger.h"
src/emu/cpu/sh4/sh4.c
r788r789
115115   OVF  = 0x00020000
116116};
117117
118static TIMER_CALLBACK( sh4_timer_callback );
119118static void set_irq_line(int irqline, int state);
120119
121120/* Bits in SR */
src/emu/uimenu.c
r788r789
189189static void dip_switch_draw_one(float dip_menu_x1, float dip_menu_y1, float dip_menu_x2, float dip_menu_y2, int model_index);
190190static void dip_switch_render(const menu_extra *extra, float x1, float y1, float x2, float y2);
191191
192static CLIB_DECL int select_game_driver_compare(const void *elem1, const void *elem2);
192static int CLIB_DECL select_game_driver_compare(const void *elem1, const void *elem2);
193193static void select_game_build_driver_list(void);
194194static void select_game_render(const menu_extra *extra, float x1, float y1, float x2, float y2);
195195static int select_game_handle_key(input_code keycode, char value);
r788r789
22272227      /* indicate the toggle exists in the switch */
22282228      dip_switch_model[model_index].total_dip_mask |= toggle_switch_mask;
22292229
2230      /* if issolated bit is on, set the toggle on */
2230      /* if isolated bit is on, set the toggle on */
22312231      if ((1 << value_mask_bit) & entry->default_value)
22322232         dip_switch_model[model_index].total_dip_settings |= toggle_switch_mask;
22332233
r788r789
23622362    names of two drivers
23632363-------------------------------------------------*/
23642364
2365static CLIB_DECL int select_game_driver_compare(const void *elem1, const void *elem2)
2365static int CLIB_DECL select_game_driver_compare(const void *elem1, const void *elem2)
23662366{
23672367   const game_driver **driver1_ptr = (const game_driver **)elem1;
23682368   const game_driver **driver2_ptr = (const game_driver **)elem2;
src/emu/memory.c
r788r789
148148#define HANDLER_IS_STATIC(h)   ((FPTR)(h) < STATIC_COUNT)
149149
150150#define HANDLER_TO_BANK(h)      ((FPTR)(h))
151#define BANK_TO_HANDLER(b)      ((genf *)(b))
151#define BANK_TO_HANDLER(b)      ((genf *)(FPTR)(b))
152152
153153#define SPACE_SHIFT(s,a)      (((s)->ashift < 0) ? ((a) << -(s)->ashift) : ((a) >> (s)->ashift))
154154#define SPACE_SHIFT_END(s,a)   (((s)->ashift < 0) ? (((a) << -(s)->ashift) | ((1 << -(s)->ashift) - 1)) : ((a) >> (s)->ashift))
src/emu/mame.c
r788r789
12311231void mame_parse_ini_files(core_options *options, const game_driver *driver)
12321232{
12331233   /* parse the INI file defined by the platform (e.g., "mame.ini") */
1234   /* we do this twice so that the first file can change the INI path */
12341235   parse_ini_file(CONFIGNAME);
1236   parse_ini_file(CONFIGNAME);
12351237
12361238   /* debug builds: parse "debug.ini" as well */
12371239#ifdef MAME_DEBUG
src/emu/sound/wave.c
r788r789
2525   cassette_state state;
2626   double time_index;
2727   double duration;
28   int num = ((int) param) & ~WAVE_TOKEN_MASK;
28   int num = ((FPTR)param) & ~WAVE_TOKEN_MASK;
2929   stream_sample_t *buffer = _buffer[0];
3030   int i;
3131
src/emu/sound/tms5220.c
r788r789
99     PRNG code by Jarek Burczynski backported from tms5110.c by Lord Nightmare
1010     Chirp/excitation table fixes by Lord Nightmare
1111     Various fixes by Lord Nightmare
12     Modularization by Lord Nightmare
1213
1314***********************************************************************************************/
1415
r788r789
109110   UINT8 data_register;            /* data register, used by read command */
110111   UINT8 RDB_flag;               /* whether we should read data register or status register */
111112
112   /* flag for tms0285 emulation */
113   /* The tms0285 is an early variant of the tms5220 used in the ti-99/4(a)
114    computer.  The exact relationship of this chip with tms5200 & tms5220 is
115    unknown, but it seems to use slightly different tables for LPC parameters. */
113   /* flag for variant tms0285/tms5200 emulation */
114   /* The TMC0285 AKA TMS5200 is an early variant of the TMS5220 used in
115       the early releases of the Speech Module for the TI-99/4(a) computer,
116       in Zaccaria's 'Money Money', and in a few other places.
117       The TMS5200 has a bug in its state machine PLA which causes it to
118       incorrectly use the LPC K3 parameter table for both K3 and K4.
119       (the chip has the unused K4 parameter in its internal ROM, but it is
120       never accessed due to the PLA bug)
121       The bug was fixed in the quickly-released TMS5220.
122       TI may have sold the remaining stocks of TMS5200s at a discount, and
123       apparently provided a special encoder to work around the bug.
124       Other than the bug, the two chips are identical.
125       Another variant of the TMS5220 is the TMS5220C/TSP5220C, which adds
126       an additional opcode (to select the data rate).
127     */
116128   tms5220_variant variant;
117129};
118130
r788r789
462474{
463475   struct tms5220 *tms = chip;
464476    int buf_count=0;
465    int i, interp_period, cliptemp;
477    int i, interp_period;
466478
467479tryagain:
468480
r788r789
650662            current_val = (chirptable[tms->pitch_count%sizeof(chirptable)] * tms->current_energy) / 256;
651663        }
652664
653        /* Lattice filter here */
654665
655        tms->u[10] = current_val;
666   buffer[buf_count] = clip_and_wrap(lattice_filter(tms, current_val)); /* execute lattice filter and clipping/wrapping */
656667
657        for (i = 9; i >= 0; i--)
658        {
659            tms->u[i] = tms->u[i+1] - ((tms->current_k[i] * tms->x[i]) / 32768);
660        }
661        for (i = 9; i >= 1; i--)
662        {
663            tms->x[i] = tms->x[i-1] + ((tms->current_k[i-1] * tms->u[i-1]) / 32768);
664        }
665
666        tms->x[0] = tms->u[0];
667
668        /* clipping & wrapping, just like the patent shows */
669
670   cliptemp = tms->u[0];
671   if (cliptemp > 2047) cliptemp = -2048 + (cliptemp-2047);
672   else if (cliptemp < -2048) cliptemp = 2047 - (cliptemp+2048);
673
674   if (cliptemp > 511)
675            buffer[buf_count] = 127<<8;
676        else if (cliptemp < -512)
677            buffer[buf_count] = -128<<8;
678        else
679            buffer[buf_count] = cliptemp << 6;
680
681
682668        /* Update all counts */
683669
684670        size--;
r788r789
705691    }
706692}
707693
694/**********************************************************************************************
708695
696     clip_and_wrap -- clips and wraps the 14 bit return value from the lattice filter to its final 10 bit value (-512 to 511), and upshifts this to 16 bits
709697
698***********************************************************************************************/
699
700INT16 clip_and_wrap(INT16 cliptemp)
701{
702        /* clipping & wrapping, just like the patent shows */
703
704   if (cliptemp > 2047) cliptemp = -2048 + (cliptemp-2047);
705   else if (cliptemp < -2048) cliptemp = 2047 - (cliptemp+2048);
706
707   if (cliptemp > 511) { mame_printf_debug ("cliptemp > 511\n");
708       return 127<<8; }
709        else if (cliptemp < -512) { mame_printf_debug ("cliptemp < -512\n");
710       return -128<<8; }
711        else
712            return cliptemp << 6;
713}
714
715
710716/**********************************************************************************************
711717
718     lattice_filter -- executes one 'full run' of the lattice filter on a specific byte of excitation data, and returns the resulting sample
719     Note: the current_k processing here by dividing the result by 32768 is unnecessary and will be removed later.
720
721***********************************************************************************************/
722
723INT16 lattice_filter(void *chip, signed char excitation_data)
724{
725        struct tms5220 *tms = chip;
726        /* Lattice filter here */
727        /* Aug/05/07: redone as unrolled loop, for clarity - LN*/
728        /* Copied verbatim from table I in US patent 4,209,804:
729           notation equivalencies from table:
730           Yn(i) == tms->u[n-1]
731           Kn = tms->current_k[n-1]
732           bn = tms->x[n-1]
733    */
734        tms->u[10] = excitation_data; /* Y(11) */
735        tms->u[9] = tms->u[10] - ((tms->current_k[9] * tms->x[9]) / 32768);
736        tms->u[8] = tms->u[9] - ((tms->current_k[8] * tms->x[8]) / 32768);
737        tms->x[9] = tms->x[8] + ((tms->current_k[8] * tms->u[8]) / 32768);
738        tms->u[7] = tms->u[8] - ((tms->current_k[7] * tms->x[7]) / 32768);
739        tms->x[8] = tms->x[7] + ((tms->current_k[7] * tms->u[7]) / 32768);
740        tms->u[6] = tms->u[7] - ((tms->current_k[6] * tms->x[6]) / 32768);
741        tms->x[7] = tms->x[6] + ((tms->current_k[6] * tms->u[6]) / 32768);
742        tms->u[5] = tms->u[6] - ((tms->current_k[5] * tms->x[5]) / 32768);
743        tms->x[6] = tms->x[5] + ((tms->current_k[5] * tms->u[5]) / 32768);
744        tms->u[4] = tms->u[5] - ((tms->current_k[4] * tms->x[4]) / 32768);
745        tms->x[5] = tms->x[4] + ((tms->current_k[4] * tms->u[4]) / 32768);
746        tms->u[3] = tms->u[4] - ((tms->current_k[3] * tms->x[3]) / 32768);
747        tms->x[4] = tms->x[3] + ((tms->current_k[3] * tms->u[3]) / 32768);
748        tms->u[2] = tms->u[3] - ((tms->current_k[2] * tms->x[2]) / 32768);
749        tms->x[3] = tms->x[2] + ((tms->current_k[2] * tms->u[2]) / 32768);
750        tms->u[1] = tms->u[2] - ((tms->current_k[1] * tms->x[1]) / 32768);
751        tms->x[2] = tms->x[1] + ((tms->current_k[1] * tms->u[1]) / 32768);
752        tms->u[0] = tms->u[1] - ((tms->current_k[0] * tms->x[0]) / 32768);
753        tms->x[1] = tms->x[0] + ((tms->current_k[0] * tms->u[0]) / 32768);
754        tms->x[0] = tms->u[0];
755        return tms->u[0];
756}
757
758
759/**********************************************************************************************
760
712761     process_command -- extract a byte from the FIFO and interpret it as a command
713762
714763***********************************************************************************************/
src/emu/sound/tms5220.h
r788r789
1414int tms5220_int_read(void *chip);
1515
1616void tms5220_process(void *chip, INT16 *buffer, unsigned int size);
17INT16 lattice_filter(void *chip, signed char excitation_data);
18INT16 clip_and_wrap(INT16 cliptemp);
1719
1820/* three variables added by R Nabet */
1921void tms5220_set_read(void *chip, int (*func)(int));
src/emu/clifront.c
r788r789
4646    FUNCTION PROTOTYPES
4747***************************************************************************/
4848
49static void parse_ini_file(const char *name);
5049static int execute_simple_commands(const char *exename);
5150static int execute_commands(const char *exename);
5251static void display_help(void);
r788r789
260259      mame_file *file;
261260
262261      /* make the output filename */
263      filerr = mame_fopen(NULL, "mame.ini", OPEN_FLAG_WRITE | OPEN_FLAG_CREATE | OPEN_FLAG_CREATE_PATHS, &file);
262      filerr = mame_fopen(NULL, CONFIGNAME ".ini", OPEN_FLAG_WRITE | OPEN_FLAG_CREATE | OPEN_FLAG_CREATE_PATHS, &file);
264263
265264      /* error if unable to create the file */
266265      if (filerr != FILERR_NONE)
267266      {
268         fprintf(stderr, "Unable to create file mame.ini\n");
267         fprintf(stderr, "Unable to create file " CONFIGNAME ".ini\n");
269268         return MAMERR_FATALERROR;
270269      }
271270
r788r789
303302{
304303#ifndef MESS
305304   mame_printf_info("M.A.M.E. v%s - Multiple Arcade Machine Emulator\n"
306         "Copyright (C) 1997-2007 by Nicola Salmoria and the MAME Team\n\n",build_version);
305         "Copyright (C) 1997-2007 by Nicola Salmoria and the MAME Team\n\n", build_version);
307306   mame_printf_info("%s\n", mame_disclaimer);
308307   mame_printf_info("Usage:  MAME gamename [options]\n\n"
309308         "        MAME -showusage    for a brief list of options\n"
310309         "        MAME -showconfig   for a list of configuration options\n"
311         "        MAME -createconfig to create a mame.ini\n\n"
310         "        MAME -createconfig to create a " CONFIGNAME ".ini\n\n"
312311         "For usage instructions, please consult the file windows.txt\n");
313312#else
314313   mess_display_help();
src/version.c
r788r789
99
1010***************************************************************************/
1111
12char build_version[] = "0.117.1 ("__DATE__")";
12char build_version[] = "0.118 ("__DATE__")";
src/mess/osd/windows/messlib.c
r788r789
77// We want to use the main() in src/windows/main.c, but we have
88// to export the entry point with dllexport.  So we'll do a trick
99// to wrap it
10#define MESSLIB
11#undef main
1012#define main mame_main
1113#include "windows/main.c"
1214#undef main
src/mess/osd/windows/climain.c
r788r789
11#include <windows.h>
22
3#ifdef main
4#undef main
5#endif
6
37int __declspec(dllimport) mess_cli_main(int argc, char **argv);
48
59int main(int argc, char *argv[])
docs/messnew.txt
r788r789
10.117.1
10.118
22
33New System Drivers Supported (in no particular order):
44------------------------------------------------------
r788r789
9292
9393Source Changes:
9494----------------
95- The core is based on MAME 0.117u3.  This incorporates all features of the
95- The core is based on MAME 0.118.  This incorporates all features of the
9696  update to this core.  [MAME team]
9797
9898- Removed use of helper macros to declare input ports.  [Nate Woods]
whatsnew.txt
r788r789
10.117
10.118
22-----
33
44
5MAMETesters Bugs Fixed
6----------------------
7gauntleg0116u4red [Zsolt Vasvari, Aaron Giles]
8vlm5030_0116u4gre [Zsolt Vasvari]
9tetrisp2_0116u4red [Zsolt Vasvari]
10primrage0116u3yel [Aaron Giles]
11debuggerandmt_0116u2red [Aaron Giles]
12memleak0116u4ora [Aaron Giles]
13term2_0116u1yel [Aaron Giles]
14
15
16
175Source Changes
186--------------
19Added save state support to bzone.c games. [R. Belmont]
7Changed INI parsing so that mame.ini is parsed twice, picking up
8changes to the inipath. [Aaron Giles]
209
21Fixed missing sound in Leprechaun. [Zsolt Vasvari]
10Fixed bug in options handling introduced with recent changes.
11[Nathan Woods]
2212
23Fixed some bugs involving empty or null ROM regions. [Nathan Woods]
13Fixed macros in stvcd.c to work with C89 compilers. [Mike Haaland]
2414
25Fixed potential crash in speglsht driver. [Atari Ace]
15Fixed some more 64-bit warnings and unused functions.
16[Oliver Stoneberg]
2617
27Changed the 6532riot code to split r6532_init into r6532_init and
28r6532_reset. [Wilbert Pol]
18Fixed DIP switch "Difficulty" in fstarfrc. Also added DIP locations
19to the tecmo16 driver. [BisonSAS]
2920
30Fixed CPS3 code to be big-endian friendly. [R. Belmont]
21Simplified the nemesis video driver code. [Atari Ace]
3122
32Added alpha blending effects to the CPS driver and improved sprite
33positioning. [David Haywood]
23Modularized the TMS5220 code. [Lord Nightmare]
3424
35Moved "Pandora" sprite chip implementation to its own file. Updated
36Snow Bros, Air Buster, DJ Boy and Heavy Unit to use ths new generic
37implementation. [David Haywood]
25Fixed issues with recent R-Type ROMset. [Brian Troha]
3826
39Fixed regression in segasyse driver. [Zsolt Vasvari]
27Fixed a number of issues in the HD6309 core. [Darren Atkinson]
4028
41Reverted patch to the 6526CIA as it was causing issues with Amiga/
42Arcadia emulation. [Pete Rittwage]
29Sync 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
4334
44Deduced a few more opcodes for gussun. The game now boots and you
45can coin up. [robiza]
35Changed windows builds so that all tools use the utf8_main entry
36point consistently. [Aaron Giles]
4637
47Fixed regression in vmetal and tatsumi drivers. [Zsolt Vasvari]
4838
49Fixed Taito version of chinhero. [Zsolt Vasvari]
5039
51Simplified code in tms9928 video system. [Zsolt Vasvari]
52
53Fixed ROL opcode in the 68000 emulator. [Zsolt Vasvari]
54
55Cleaned up tiny MAME target. [neoforma]
56
57Fixed regression in Exidy sounds. [Zsolt Vasvari]
58
59Improved accuracy of mame_timer_scale_up. [Aaron Giles]
60
61Rotated the mame_rand() results by 16 bits to reduce periodicity of
62the resuls. [Aaron Giles]
63
64Fixed winalloc.c to be thread-safe. [Aaron Giles]
65
66
67
6840New games added or promoted from NOT_WORKING status
6941---------------------------------------------------
70Taisen Hot Gimmick 4 Ever (Japan) [Guru, David Haywood]
42Dancing Stage Euro Mix 2 [smf]
7143
7244
7345
7446New clones added
7547----------------
76Photo Finish [Tomasz Slanina]
77Golden Poker (no double up) [Roberto Fresca]
48Maximum Force (No Gore version) [Brian Troha]
7849
7950
8051
81New games marked as GAME_NOT_WORKING
82------------------------------------
8339 in 1 MAME bootleg [R. Belmont, Guru]
84Super Pool (Italy) [Roberto Fresca]
85Guitar Freaks 6th Mix (G*B06 VER. JAA) [smf]
86Guitar Freaks 11th Mix (G*D39 VER. JAA) [smf]
87
88
89
900.116u4
520.117u3
9153-------
9254
9355
9456MAMETesters Bugs Fixed
9557----------------------
96kinst0116u3gra [Zsolt Vasvari]
58headon0117u2ora [Aaron Giles]
59numpadremap0117u2gra [Aaron Giles]
60joystick0117u2gra [Aaron Giles]
61NewUI0117u2ora [Aaron Giles]
62mtrap0117u2ora [Aaron Giles]
63verifyroms0117u2ora [Aaron Giles]
9764
9865
9966
10067Source Changes
10168--------------
102Changed system1 driver back to using SN7489A. [Lord Nightmare]
69Added some more setup code for the Naomi driver. [R. Belmont]
10370
104Fixed the road graphics, fixed the rest of the missing gfx, added
105collision detection, and added save states to the changela driver.
106Also fixed the colors. [Adam Bousley]
71Improved DIP switches in powerins driver. [BisonSAS]
10772
108Changed all drivers to use the mame_timer_* calls. Deprecated the
109old double-based timer calls. [Zsolt Vasvari]
73Added some basic cdrom switching to the system 573 driver. Hooked it
74up for best of cool dancers to work and the Club versions. Added
75DIP locations. Moved fake switches to the configuration menu. [smf]
11076
111Changes the last few instances of rand() to mame_rand() and added a
112#define to prevent it from being used again. [Zsolt Vasvari]
77Added preliminary video hw emulation and sound support to the
782 Minute Drill driver. [Tomasz Slanina]
11379
114Made many of the static info_list*() functions in clifront.c public.
115[Dave Dribin]
80Added an optional vsync callback to the TIA emulation to allow a
81driver to dynamically change the screen configuration. [Wilbert Pol]
11682
117Fixed regression crashes in maxaflex.c, megadriv.c, monzagp.c,
118tetriunk.c, and gticlub.c. [Atari Ace]
83Cleaned up redundant function names. [Atari Ace]
11984
120Some 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.
85Changed CreateWindowEx() call to be win_create_window_ex_utf8(),
86removing the need for a string conversion. [Nathan Woods]
12787
128Updated 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
88Fixed running the konamigx BIOS on its own do what it should:
89display a scrolling marquee telling the operator to attach
90a ROM board. [Alex Jackson]
13391
134Fixed a few places where driver code was not properly hooked up.
135Most cases were benign, but in a couple of instances, save state
136support was disconnected, and in one case it fixes a potential crash.
137[Atari Ace]
92Added new debugger commands for hardreset and softreset.
93[Nathan Woods]
13894
139Fixed regression in Space Raider. [Zsolt Vasvari]
95Added built-in support for 14-segment and 16-segment LEDs with
96comma/period additions. Split vacfdisp into component specific
97drivers. The system now supports the Rockwell 10937 (aka MSC1937)
98and 10957, as well as the BD1. All relevant drivers have been
99updated with the new code, and new layouts have been prepared.
100[James Wallace]
140101
141Improved frameskip behavior in the Gaelco 3d driver. [couriersud]
102Fixed a few more 64-bit build errors. [Aaron Giles]
142103
143Fixed palette regression in warpwarp/geebee. [Atari Ace]
104Separated build tools from general tools. Build tools are now located
105in the build/ subdirectory. [Aaron Giles]
144106
145Added support to chdman to cope with toc files created with cue2toc.
146[smf]
107Added new general library module astring.c, which supports allocated
108strings of arbitrary length and a number of basic functions on them.
109[Aaron Giles]
147110
148CPS3 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
111Replaced assemble_x_strings() functions with the astring equivalents.
112Updated code in several places to use astrings where appropriate.
113[Aaron Giles]
156114
157Found a number of additional encrypted opcodes for gussun. [robiza]
115Added new tool src2html which is used to convert the MAME source tree
116to HTML format with linked include files and color coded keywords
117and comments. [Aaron Giles]
158118
159Simplified the internal handling of BIOS sets. Instead of there being
160an extra structure, the BIOS information is now embedded in the ROM
161definition for each BIOS. [Atari Ace]
119Converted the memory pool code to a more generic resource pool.
120Changed internal MAME tracking of timers and save state registrations
121over to using the new system. [Aaron Giles]
162122
163Fixed 2nd player inputs in Millipede. [Mike Haaland]
123Removed underscores from some keycode token names. Thus,
124KEYCODE_0_PAD now becomes KEYCODE_0PAD. This is to prevent confusion
125when parsing multiple keyboard items. Due to this change, also removed
126imperfect backward compatibility with older configs; some mappings
127will still work, but some won't. Note that this change will also
128break some existing ctrlr files; new ones will be provided.
129[Aaron Giles]
164130
165Fixed crash in evilngt due to missing CD image. [R. Belmont]
131Did some cleanup of the tilemap interfaces. Changed tilemap type
132constants to be an enum prefixed by TILEMAP_TYPE_* instead of simply
133TILEMAP_*. Removed unused members from the tile_info structure.
134[Aaron Giles]
166135
167Fixed crash in cfarm/cclown due to out-of-bounds parameter.
168[R. Belmont]
169136
170Added stricter checking in cdrom.c to prevent crashes in games when
171no CD-ROM is present. [R. Belmont]
172137
173Fixed regressions in dkongjr and pestplce due to incorrect memory map
174and rendering too many sprites. [couriersud]
175
176Fixed SUBTARGET=tiny builds. [neoforma]
177
178Hooked up P1 joystick inputs for P2 in Upright mode in a number of
179black & white 8080 games. Removed cocktail settings for games where
180it is not appropriate. Enabled dual player game in spclaser.
181[Mike Haaland]
182
183x64 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
190Improved color decoding in Irem M62 games. [Zsolt Vasvari]
191
192Synchronized MAME and AGEMAME versions of the MPU4 code. Improved
193Connect4 layout. Simplified much of the code.
194[James Wallace, Atari Ace]
195
196Improved the 6532riot timer implementation. Implemented irq callback
197support. [Wilbert Pol]
198
199Updates 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
204Simplified interrupt handling in the z80gb core. [Wilbert Pol]
205
206Hooked up lamps in Afterburner 2 driver. [Zsolt Vasvari]
207
208Fixed missing sound in PGM games. [Zsolt Vasvari]
209
210Fixed Millipede sprites in cocktail mode. [Mike Haaland]
211
212Fixed behavior of the RC filter in ddrible and ironhors. [couriersud]
213
214Added wrap around x for sprites in the m92 driver.
215[Pierpaolo Prazzoli]
216
217
218
219New games added or promoted from NOT_WORKING status
220---------------------------------------------------
221Change Lanes [Adam Bousley]
222DJ Boy [Phil Stroffolino]
223
224
225
226138New clones added
227139----------------
228B.Rap Boys (World) [Brian Troha]
140Cross Blades! (Japan) [Stefan Lindberg]
141Shadow Force (Japan Version 2) [Stefan Lindberg]
142Dig Dug (Sidam bootleg) [David Haywood]
143Dance Dance Revolution Best of Cool Dancers [smf]
229144
230145
231146
232147New games marked as GAME_NOT_WORKING
233148------------------------------------
234Final Godori [Pierpaolo Prazzoli]
149Astron Belt [Andrew Gardner]
150Cobra Command (Sega LaserDisc Hardware) [Andrew Gardner]
151Galaxy Ranger [Andrew Gardner]
152Star Blazer [Andrew Gardner]
235153
236154
237155
2380.116u3
1560.117u2
239157-------
240158
241159
242160MAMETesters Bugs Fixed
243161----------------------
162joystickremap0117u1gra [Aaron Giles]
163mallocerror0117u1gra [Aaron Giles]
164mouse0117u1gra [Aaron Giles]
165newinterface0117u1gra [Aaron Giles]
166tapper0102gre2 [Ernesto Corvi]
167timber0100u3gre [Ernesto Corvi]
168tapper0102gre1 [Aaron Giles]
169timber099gre [Aaron Giles]
170mcr0103u3yel [Aaron Giles]
171dotrone0101u5yel [Aaron Giles]
244172
245173
174
246175Source Changes
247176--------------
248Simplified CPS3 decryption function. [Nicola Salmoria]
177Imola 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
249184
250Fixed potential double free in PNG code. [Nathan Woods]
185Updated DIP switches for topland & ainferno according to their
186manuals. [Fabio Priuli]
251187
252Fixed warnings generated by newer gcc compilers. [R. Belmont]
188More 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
253201
254General 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
202Fixed some DIP switches in littlerb. [Sonikos]
258203
259Updated FM emulator to use mame_time instead of double. Removed old
260neogeo hack from FM code as it appears to no longer be necessary.
261[Zsolt Vasvari]
204Made 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
262209
263Updated all sound cores to use mame_time instead of double.
264[Zsolt Vasvari]
210Fixed up sc61860 core, f3853 core, and pckeybd.c to work with new
211timing code. [Nathan Woods]
265212
266Populated several more Irem CPU opcodes for gussun. [robiza]
213More TIA improvements: [Wilbert Pol]
214 - fixed some minor missile graphics positioning issues
215 - moved some initialization code from tia_init to tia_reset
267216
268Fixed CPS3 code to work on big-endian systems. [R. Belmont]
217Fixed a few errors related to headers in the source code. Added
218missing self-includes, removed dead prototypes, and added location
219comments in headers in mame/includes. In a few cases the audit
220showed items that didn't need to be exported so they were made
221static. [Atari Ace]
269222
270Fixed code_to_token() to prevent potential buffer overflows.
271[Atari Ace]
223Cleaned up the inputs in gdrawpkr and changed the hold buttons to
224"discard" since they are in fact discard buttons. [Roberto Fresca]
272225
273Fixed crashes in non-working drivers dynablsb and driveyes.
274[Atari Ace]
226Added support for 14- and 16-segment LED displays to the MAME
227artwork system. [Dirk Best]
275228
276Changed all CPU cores’ internal timers to the mame_timer* functions
277as well as the remaining couple of core files that still used
278timer_alloc(). After this, none of the emu/* files have any old style
279timing code left. [Zsolt Vasvari]
229Fixed button 4 of player 2 inputs in bloodwar. [Barry Harris]
280230
281Various CPS3 updates as documented on Haze's blog. [David Haywood]
231Connected S14001A speech to the wolfpack driver. [Lord Nightmare]
282232
283Fixed type in BLENDER2_32 function in the n64 video code.
284[Christophe Jaillet]
233Fixed incorrect implementation of SSIO volume controls in the MCR
234driver. This makes the engine sound in Spy Hunter audible again,
235among other things. [Ernesto Corvi]
285236
286Created a new resistor network interface for computing palettes from
287color PROMs and component values on the PCB. Fixed several issues
288with the previous implementation. [couriersud]
237Added support back for the "none" option for the various *_device
238options. [Nathan Woods]
289239
290Donkey 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
240Fixed HD6309 dissaembly of the post-byte for ,W++ and ,--W.
241[Captain Ahab]
300242
301Extended the flt_rc filter to support highpass filtering. Fixed the
302lowpass filter to actually do a lowpass filter. Hooked up the filter
303to King & Balloon and updated several other drivers to the new
304interface. [couriersud]
243Updated the 6532 riot interface to be more like the 6522via and
2446821pia interfaces. [Wilbert Pol]
305245
306Added support in the main makefile for profiling. Set PROFILE=1 to
307turn this on. [Christophe Jaillet]
246Improved -listxml output to reflect new BIOS flag. New attribute
247isbios="yes" indicates that a given game is a BIOS. [Aaron Giles]
308248
309Updated djboy driver to almost fully playable state.
310[Phil Stroffolino]
249Further 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
311258
312Temporarily reverted input code back to 0.116 baseline pending deeper
313analysis and upcoming core changes to simplify the OSD layer for input
314management. [Aaron Giles]
315
316Changed a number of stderr fprintf's in the Windows OSD code to
317mame_printf_error and mame_printf_warning calls, as appropriate.
259Moved INI file handling fully into the core. As a side-effect of this
260change, <exename>.ini is no longer parsed. Changed -createconfig to
261always output mame.ini instead of <exename>.ini as a result.
318262[Aaron Giles]
263   
264Renamed run_game() to mame_execute(). The game driver is no longer
265specified as a parameter; rather, this information is extracted from
266the options via OPTION_GAMENAME. [Aaron Giles]
319267
268Fixed raw input-based lightgun buttons. [Aaron Giles]
320269
270Cleaned up options.c code. Added priority levels to options as they
271are set. New options are only accepted if they have greater or equal
272priority to a previous change. Added new function options_revert() to
273revert options below a given priority to their defaults. Changed
274options_get_string() so that it always returns a valid string
275(never NULL). Invalid strings are returned as empty strings.
276[Aaron Giles]
321277
322New games added or promoted from NOT_WORKING status
323---------------------------------------------------
324DaiDaiKakumei (Japan) [Hau, Team Japump!]
325CPS3 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
278Added new functions core_filename_extract_base() and
279core_filename_ends_with() to corefile.h. [Aaron Giles]
332280
281Changed menu rendering a bit. Added a background hilight to more
282strongly emphasize the current item. Added rendered arrows to indicate
283more items on the top/bottom and to indicate selection options in the
284DIP switch menus. Changed hilighting to be a bit less garish. Fixed
285repeat rates on keys to no longer be tied to the framerate.
286[Aaron Giles]
333287
288Added support for page up/page down generically in menus. Also made
289pause toggle work while menus are visible. [Aaron Giles]
334290
335New clones added
336----------------
337The Tin Star (set 2) [David Haywood]
338Car 2 (bootleg of Head On 2) [David Haywood]
339Radar Scope (TRS01) [couriersud]
340Crouching Tiger Hidden Dragon 2003 Super Plus alternate [JohnBoy]
341Pop Flamer (bootleg on Naughty Boy PCB) [David Haywood]
291Changed render_textures to allocate in a pool model, to avoid high
292memory overhead when allocating large numbers of textures (for example
293in the 14- and 16-segment LED displays). [Aaron Giles]
342294
295Fixed a number of 64-bit compiler warnings. [Aaron Giles]
343296
344297
345New games marked as GAME_NOT_WORKING
346------------------------------------
347Missile Combat (Videotron bootleg) [David Haywood]
348Aladdin (bootleg of Japanese Megadrive version) [David Haywood]
349298
299New games added or promoted from NOT_WORKING status
300---------------------------------------------------
301King Pin [Andrew Gardner]
302King Pin Multi-Game [Andrew Gardner]
350303
351304
3520.116u2
305
3060.117u1
353307-------
354308
355309
356310MAMETesters Bugs Fixed
357311----------------------
358adk0116yel [Zsolt Vasvari]
359neodrvr0116u1red [Zsolt Vasvari]
360strhoop0116u1red [Zsolt Vasvari]
361wb3_0116u1gre [Aaron Giles]
312brkthru091u1gra [Luigi30]
313debbuger+psx_0117ora [Aaron Giles]
314cbtime0117red [Zsolt Vasvari]
315hotpinbl0117gra [Roberto Fresca]
316batrider0114red [Alex Jackson]
317battleg0113u4red [Alex Jackson]
318battleg0116u1ora [Alex Jackson]
319   
320   
362321
363
364
365322Source Changes
366323--------------
367Fixed regressions in Gridlee and Gomoku. [Zsolt Vasvari]
324Fixed bug in screenless systems. [Nathan Woods]
368325
369Fixed some unicode build issues in the Windows code.
370[Oliver Stoneberg]
326Fixed crash in chd code if reading beyond the end of the file.
327[Roman Scherzer]
371328
372Updated a number of games to correctly use the SN76489 instead of the
373SN76496, which was a later design. [Justin Kerk, Lord Nightmare]
329Moved Sand Scorpian and Gals Panic over to use the Pandora emulation.
330Also fixed some problems in the pandora emulation which improves the
331sprites in Djboy. [David Haywood]
374332
375Cleaned up the exports from a number of drivers, adding static
376qualifiers to functions and variables t hat don't need to be exported
377and have generic sounding names. [Atari Ace]
333Added new function timer_call_after_resynch(), which effectively
334sets a zero-duration timer for resynchronization. Replaced instances
335of zero-duration timers in the code with this more descriptive call.
336[Zsolt Vasvari]
378337
379Updated numerous drivers to remove the use of global Machine wherever
380possible. Also reviewed the clipping regions and made changes to
381ensure the passed-in cliprect was honored. [Zsolt Vasvari]
338Defined new macro TIMER_CALLBACK, which should be used to wrap
339timer callbacks. Added a running_machine * parameter to timer
340callbacks. Updated all existing timer callbacks to use the new
341macro. [Zsolt Vasvari]
382342
383Cleaned 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
343Added more opcode decryption to gussun. [Robiza]
390344
391Changed a number of mame timer objects from void * to mame_timer *.
392[Atari Ace]
345Added discrete sound to headon and clones in vicdual.c. [couriersud]
393346
394Fixed a couple more Irem CPU opcodes to improve Match It 2.
395[Robiza]
347Added two inverter oscillators supporting enable and mixing in signals
348to discrete.h / disc_wav.c. [couriersud]
396349
397Fixed collision detection bug in thunderX. [Shimapong]
350Fixed a few bugs in the change lanes video emulation. [Adam Bousley]
398351
399Initial cut at working CPS3 driver. Basically works but has a lot
400more work to be done to finish it up.
401[David Haywood, Andreas Naive, Tomasz Slanina, ElSemi, Philip Bennett]
352Updated the monzagp driver into a somewhat playable state. There are
353still some graphics problems. LEDs still need to be hooked up for
354score/time-remaining display. [Phil Stroffolino]
402355
403Fixed minor cycle timing issue in 6809 CPU core. [Ernesto Corvi]
356Neo-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
404361
405Neo-Geo updates: [Zsolt Vasvari]
406 * Fixed several regressions from previous update
407 * Added LED outputs
408 * Improved smaller visible area configuration
362Improvements 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
409371
410Fixed some incorrect information in the Neo Geo ROMsets. [JohnBoy]
411 
412Integrated platform-specific changes into the core makefile, mostly
413taken from the SDLMAME makefile. Changed the MAMEOS configuration
414variable to OSD, indicating which OSD layer is being compiled. Added
415a new configuration variable TARGETOS which specifies the target OS
416platform. [Aaron Giles]
372Reworked input system to push more features into the core. Cleaned
373up architecture to properly separate dependencies. Please note that
374this change only addresses the lower layer of input handling. The
375upper layer (i.e., input port handling at the driver layer) remains
376the same. [Aaron Giles]
417377
378Major changes include:
418379
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.
419418
420New clones added
421----------------
422Punch-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.
423422
423Added support for frame update callbacks, similar to pause and exit
424callbacks but called at the same time as osd_update(). [Aaron Giles]
424425
426Changed osd_init() to no longer return a value. OSD initialization
427should now rely on fatalerror() to report fatal initialization
428problems. [Aaron Giles]
425429
426New games marked as GAME_NOT_WORKING
427------------------------------------
428Mini Boy 7 [Roberto Fresca]
430Added new function mame_schedule_new_driver() which allows for a new
431driver to be queued after a hard reset. [Aaron Giles]
429432
433Added experimental new minimal game selection user interface. This
434interface can be accessed if MAME is started with no parameters, or
435via the main menu by choosing "Select a New Game". This interface
436allows you to select a game driver by typing in the name of the game.
437As you type, MAME's fuzzy name matching code will list the top 15
438selections that match. The interface will only display games that
439it finds in your rompath. [Aaron Giles]
430440
441Added "empty" driver which is used to host the game selection screen
442when no valid game is selected. [Aaron Giles]
431443
4320.116u1
433-------
444Changed behavior in the Windows build so that double-clicking on
445MAME brings up the new game selection interface. [Aaron Giles]
434446
447Removed the NOT_A_DRIVER flag which was overloaded to mean two
448different things. There are now two new flags: GAME_IS_BIOS_ROOT
449indicates that a particular driver represents a BIOS rather than
450a full game. And GAME_NO_STANDALONE indicates that the given driver
451should not be listed or permitted to execute on its own. For MAME,
452most BIOSes are executable on their own, so they have the
453GAME_IS_BIOS_ROOT flag set but not the GAME_NO_STANDALONE flag.
454[Aaron Giles]
435455
436MAMETesters Bugs Fixed
437----------------------
438shanghai0116red [Aaron Giles]
439bldwolf061gre [Robiza]
440superx0116gre [Robiza]
441matchit2_0116ora [Robiza]
442qix0116yel [Aaron Giles]
456Added new routines mame_openpath(), mame_readpath(), and
457mame_closepath() for iterating over all files in a path specification,
458including support for multiple paths. [Aaron Giles]
443459
460Changed audit interfaces to take a game_driver * instead of a game
461index. [Aaron Giles]
444462
463Changed driver_get_approx_matches() and driver_get_count() APIs to
464work on arbitrary driver lists rather than being hard-coded to the
465static driver list. Renamed the functions from driver_get_* to
466driver_list_get_* [Aaron Giles]
445467
446Source Changes
447--------------
448Fixed scanline address reporting in the qix driver. [Zsolt Vasvari]
449468
450Rewrote Neo-Geo driver again based on information from Charles
451MacDonald. This update fixes a number of issues with the previous
452attempt. [Zsolt Vasvari]
453469
454Added 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
470New games added or promoted from NOT_WORKING status
471---------------------------------------------------
472Sliver [Tomasz Slanina]
458473
459Fixed the reset mode in CDP1802. [Curt Coder]
460474
461Fixed a number of errors and simplified the code significantly in the
462ptm6840 code. [Atari Ace]
463475
464Fixed offset for sprite and layers in fcrash driver. [Robiza]
476New clones added
477----------------
478Space Dragon (Moon Cresta bootleg) [David Haywood]
479Battle Garegga - Type 2 (Europe / USA / Japan / Asia) [Alex Jackson]
465480
466SH4 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
482481
483Updated CPS2 decryption bit order to match what is likely the original
484order. [Nicola Salmoria]
485482
486Fixed a few warnings that show up with -Wextra.
487[Atari Ace, Zsolt Vasvari]
488
489Fixed toaplan2.c so that OKI6295 sample ROM bankswitching via one
490of the spare data lines on the coin mechanism port is only hooked up
491in the one game that's actually wired this way (shippumd). [AWJ]
492
493Updated the scrambls protection implementation to use equations based
494on the implementation from fpgaarcade.com. [Mark McDougall]
495
496Improved GCD computations in the rendlay.c code. [Christophe Jaillet]
497
498Fixed numerous regressions in the 0.116 release.
499[Zsolt Vasvari, Aaron Giles]
500
501Switched driver code to exclusively using mame_rand() instead of
502rand(), to improve consistency of results. [Aaron Giles]
503
504Improved MCU timing and communication in the qix driver. Still a few
505issues remain. [Aaron Giles]
506
507
508
509New games added or promoted from NOT_WORKING status
510---------------------------------------------------
511Match It II [Robiza]
483New games marked as GAME_NOT_WORKING
484------------------------------------
485Gals Panic (US, EXPRO-02 PCB) [David Haywood]
486Balloon & Balloon [Pierpaolo Prazzoli]

Previous 15994 Revisions Next


© 1998-2018 The MESS Team