Previous 15994 Revisions Next

r1419 Tuesday 18th December, 2007 at 14:32:56 UTC by Nathan Woods
Updated to MAME 0.122 core
[ROOT]whatsnew.txt
[docs]messnew.txt
[src]version.c
[src/emu]sndintrf.c sndintrf.h
[src/emu/cpu/m68000]m68k.h m68k_in.c m68kconf.h m68kcpu.c m68kcpu.h m68kdasm.c m68kmake.c m68kmame.c
[src/emu/cpu/mips]mdrc64.c
[src/emu/sound]m58817.c* m58817.h* scsp.c sidvoice.c sound.mak
[src/mame]mame.mak mamedriv.c
[src/mame/audio]bzone.c dkong.c snes.c
[src/mame/drivers]cave.c dkong.c firebeat.c gotya.c itech32.c itech8.c ksys573.c midzeus.c namcoic.c namcond1.c neodrvr.c neogeo.c peplus.c policetr.c raiden2.c rpunch.c segas18.c seta.c stv.c taito_f3.c tmnt.c
[src/mame/includes]dkong.h itech8.h
[src/mame/machine]bonzeadv.c namcos1.c opwolf.c slikshot.c stvcd.c stvcd.h tx1.c
[src/mame/video]aeroboto.c bfm_adr2.c bking2.c digdug.c dkong.c fastfred.c galaxian.c mermaid.c midzeus.c model1.c naughtyb.c neogeo.c pacman.c pingpong.c retofinv.c taito_f2.c taitosj.c thepit.c travrusa.c vigilant.c wiz.c yard.c zaccaria.c
[src/mess]mess.mak
[src/osd/windows]input.c
[src/tools]chdman.c regrep.c romcmp.c

src/mame/audio/snes.c
r1418r1419
149149static const int               TS_CYC = CPU_RATE / SAMP_FREQ;
150150
151151/* Ptrs to Gaussian table */
152static const int *      G1 = &gauss[ 256 ];
153static const int *      G2 = &gauss[ 512 ];
154static const int *      G3 = &gauss[ 255 ];
155static const int *      G4 = &gauss[ -1  ];
152static const int *const G1 = &gauss[ 256 ];
153static const int *const G2 = &gauss[ 512 ];
154static const int *const G3 = &gauss[ 255 ];
155static const int *const G4 = &gauss[ -1  ];
156156
157157static const int        mask = 0xFF;
158158
src/mame/audio/bzone.c
r1418r1419
176176
177177      if( latch & 0x80 )
178178      {
179         static double r0 = 1.0/1e12, r1 = 1.0/1e12;
180
181179         /* NE5555 timer
182180             * C = 0.018u, Ra = 100k, Rb = 125k
183181             * charge time = 0.693 * (Ra + Rb) * C = 3870us
r1418r1419
201199         motor_counter -= motor_rate;
202200         while( motor_counter <= 0 )
203201         {
202            double r0, r1;
203
204204            motor_counter += OUTPUT_RATE;
205205
206206            r0 = 1.0/1e12;
src/mame/audio/dkong.c
r1418r1419
66#include "sound/discrete.h"
77#include "sound/dac.h"
88
9#include "sound/m58817.h"
10
911#include "includes/dkong.h"
1012
1113/****************************************************************
r1418r1419
1416 *
1517 ****************************************************************/
1618
17#define DEBUG_SPEECH   (0)
19/* Set to 1 to use speech synthesizer instead of samples.
20 * Disabled by default since M58817 emulation is not
21 * complete due to missing information about coefficients.
22 */
1823
24#define RADARSC1_USE_M58817      (0)
25
1926#define ACTIVELOW_PORT_BIT(P,A,D)   (((P) & (~(1 << (A)))) | (((D) ^ 1) << (A)))
2027
2128/* Needed for dkongjr ... FIXME */
22#define I8035_T_R(N) ((portT >> (N)) & 1)
23#define I8035_T_W_AL(N,D) do { portT = ACTIVELOW_PORT_BIT(portT,N,D); soundlatch2_w(0, portT); } while (0)
29//#define I8035_T_R(N) ((portT >> (N)) & 1)
30#define I8035_T_R(N) ((soundlatch2_r(0) >> (N)) & 1)
31#define I8035_T_W_AL(N,D) do { state->portT = ACTIVELOW_PORT_BIT(state->portT,N,D); soundlatch2_w(0, state->portT); } while (0)
2432
2533#define I8035_P1_R() (soundlatch3_r(0))
2634#define I8035_P2_R() (soundlatch4_r(0))
r1418r1419
8593 *
8694 ****************************************************************/
8795
88static UINT8 dkongjr_latch[10];
89static UINT8 sh_climb_count;
9096
91static UINT8 has_discrete_interface;
9297
93static UINT8 page,mcustatus;
94static double envelope,tt;
95static UINT8 decay;
96static UINT8 sh1_count;
97static UINT8 portT;
98
99enum {
100   WAIT_CMD,
101   WAIT_WRITE,
102   WAIT_DONE1,
103   WAIT_DONE2
104} m58817_states;
105
106static UINT8 m58817_state;
107static UINT8 m58817_drq;
108static UINT8 m58817_nibbles[4];
109static INT32 m58817_count;
110static INT32 m58817_address;
111
11298/****************************************************************
11399 *
114100 * Dkong Discrete Sound Interface
r1418r1419
669655
670656static SOUND_START( dkong )
671657{
672   state_save_register_global(page);
673   state_save_register_global(mcustatus);
674   state_save_register_global(envelope);
675   state_save_register_global(tt);
676   state_save_register_global(decay);
677   state_save_register_global(sh1_count);
678   state_save_register_global(portT);
658   dkong_state *state = machine->driver_data;
679659
680   has_discrete_interface = 1;
660   state_save_register_global(state->page);
661   state_save_register_global(state->mcustatus);
662   state_save_register_global(state->portT);
681663
664   state->has_discrete_interface = 1;
682665
666
683667}
684668
685static SOUND_RESET( dkong )
669static SOUND_START( dkongjr )
686670{
671   dkong_state *state = machine->driver_data;
687672
688   sh1_count = 0;
689   mcustatus = 0;
690   envelope = 0;
691   tt = 0;
692   decay = 0;
673   sound_start_dkong(machine);
693674
694   page = 0;
675   state_save_register_global(state->sh_climb_count);
676   state_save_register_global_array(state->dkongjr_latch);
677   state_save_register_global(state->envelope);
678   state_save_register_global(state->tt);
679   state_save_register_global(state->decay);
695680
696   I8035_T_W_AL(0,0);
697   I8035_T_W_AL(1,0);
698   I8035_P1_W(255);
699   I8035_P2_W(255);
700
681   state->has_discrete_interface = 0;
701682}
702683
703static SOUND_START( dkongjr )
684static SOUND_START( radarsc1 )
704685{
686   dkong_state *state = machine->driver_data;
687
705688   sound_start_dkong(machine);
706689
707   state_save_register_global(sh_climb_count);
708   state_save_register_global_array(dkongjr_latch);
709
710   sh_climb_count = 0;
711
712   has_discrete_interface = 0;
690   state->has_discrete_interface = 1;
713691}
714692
715static SOUND_START( radarsc1 )
693static SOUND_RESET( dkong )
716694{
717   sound_start_dkong(machine);
695   dkong_state *state = machine->driver_data;
718696
719   state_save_register_global(m58817_state);
720   state_save_register_global(m58817_drq);
721   state_save_register_global_array(m58817_nibbles);
722   state_save_register_global(m58817_count);
723   state_save_register_global(m58817_address);
697   state->mcustatus = 0;
698   state->page = 0;
724699
725   has_discrete_interface = 1;
700   I8035_T_W_AL(0,0);
701   I8035_T_W_AL(1,0);
702   I8035_P1_W(255);
703   I8035_P2_W(255);
726704}
727705
728static SOUND_RESET( radarsc1 )
706static SOUND_RESET( dkongjr )
729707{
708   dkong_state *state = machine->driver_data;
709   int i;
710
730711   sound_reset_dkong(machine);
731712
732   m58817_state=WAIT_CMD;
733   m58817_drq=0;
734   m58817_count=0;
735   m58817_address=0;
713   state->envelope = 0;
714   state->tt = 0;
715   state->decay = 0;
716   state->sh_climb_count = 0;
736717
718   for (i=0;i<10;i++)
719      state->dkongjr_latch[i]=0;
737720}
738721
739722/****************************************************************
740723 *
741724 * M58817 Speech
742725 *
743 * Fixme: Move to src/emu/audio
744 *
745726 ****************************************************************/
746727
747/* @0x510, cpu2
728/*
729
730http://www.freepatentsonline.com/4633500.html
731
732
733  @0x510, cpu2
748734 10: 0000 00 00000000 ... 50 53 01010000 01010011 "scramble"
749735 12: 007a 44 01000100 ... 00 0f 00000000 00001111 "all pilots climb up"
750736 14: 018b 13 00010011 ... dc f0 11011100 11110000
r1418r1419
778764 7: 20          engine trouble
779765*/
780766
781#if DEBUG_SPEECH
782static UINT8 m58817_getbit(int bitnum)
783{
784   const UINT8 *table = memory_region(REGION_SOUND1);
785   return (table[bitnum >> 3] >> (0x07 - (bitnum & 0x07))) & 1;
786}
787
788static UINT32 m58817_getbits(int startbit, int num)
789{
790   int i;
791   UINT32 r=0;
792
793   for (i=0;i<num;i++)
794   {
795      r = r << 1;
796      r = r | m58817_getbit(startbit++);
797   }
798   return r;
799}
800
801static int m58817_decodeframe(int startbit)
802{
803   int energy;
804   int pitch;
805   int repeat;
806   UINT32 kx;
807
808   energy = m58817_getbits(startbit, 4);
809   logerror("frame @ bit %04d (%02x):", startbit, startbit>>3);
810   logerror(" energy = %d ", energy);
811   startbit += 4;
812   if (energy==0)
813   {
814      logerror(" - silence\n");
815      return startbit;
816   }
817   if (energy==15)
818   {
819      logerror(" - stop\n");
820      return -1; /* stop ... */
821   }
822   repeat = m58817_getbits(startbit, 1);
823   startbit += 1;
824   pitch = m58817_getbits(startbit, 6);
825   startbit += 6;
826   logerror(" pitch = %d ", pitch);
827   if (repeat)
828   {
829      logerror(" - repeat\n");
830      return startbit;
831   }
832   if (pitch == 0)
833   {
834      logerror(" - unvoiced skip %d\n", 18);
835      kx = m58817_getbits(startbit, 18);
836      startbit += 18;
837      return startbit;
838   }
839   else
840   {
841      logerror(" - voiced skip %d\n", 37);
842      kx = m58817_getbits(startbit, 30);
843      startbit += 30;
844      kx = m58817_getbits(startbit, 7);
845      startbit += 7;
846      return startbit;
847   }
848}
849
850static int m58817_dumpframe(int startbit)
851{
852   while (startbit>=0)
853      startbit=m58817_decodeframe(startbit);
854   logerror("\n");
855   return startbit;
856}
857#endif
858
859static void m58817_sampleframe(int addr)
860{
861   printf("0x%x\n", addr);
862   switch (addr)
863   {
864      case 0x0000:   /* 10 */
865         sample_start (0,0,0);
866         break;
867      case 0x007a:   /* 12 */
868         sample_start (0,1,0);
869         break;
870      case 0x018b:   /* 14 */
871         sample_start (0,2,0);
872         break;
873      case 0x0320:   /* 16 */
874         sample_start (0,3,0);
875         break;
876      case 0x036c:   /* 18 */
877         sample_start (0,4,0);
878         break;
879      case 0x03c4:   /* 1A */
880         sample_start (0,5,0);
881         break;
882      case 0x041c:   /* 1C */
883         sample_start (0,6,0);
884         break;
885      case 0x0520:   /* 1E */
886         sample_start (0,7,0);
887         break;
888      case 0x063e:   /* 20 */
889         sample_start (0,8,0);
890         break;
891   }
892}
893
894static void m58817_state_loop(int data)
895{
896   int i;
897   switch (m58817_state)
898   {
899      case WAIT_CMD:
900         switch (data)
901         {
902            case 0x00: // reset ????
903               m58817_count=0;
904               break;
905            case 0x02: // latch next nibbel
906               m58817_state=WAIT_WRITE;
907               break;
908            case 0x08: // play ????
909               m58817_state=WAIT_DONE1;
910               break;
911            default:
912               logerror("m58817: unknown cmd : 0x%02x\n", data);
913         }
914         break;
915      case WAIT_WRITE:
916         m58817_nibbles[m58817_count++] = data & 0x0f;
917         m58817_state=WAIT_CMD;
918         break;
919      case WAIT_DONE1:
920         if (data != 0x0A)
921            logerror("m58817: expected 0x0A got 0x%02x\n", data);
922         m58817_address = 0;
923         for (i=0;i<m58817_count;i++)
924         {
925            m58817_address |= (m58817_nibbles[i] << (i*4));
926         }
927         logerror("m58817: address: 0x%04x\n", m58817_address);
928         //m58817_dumpframe(m58817_address * 8);
929         m58817_sampleframe(m58817_address);
930         m58817_state=WAIT_CMD;
931         break;
932   }
933}
934
935
936static READ8_HANDLER( M58817_status_r )
937{
938   //return !(m58817_state == WAIT_CMD);
939   return sample_playing(0);
940}
941
942767static WRITE8_HANDLER( M58817_command_w )
943768{
944   int drq = (data>>4) & 0x01; // FIXME 0x20 ??
945   int dat = data & 0x0f;
946769   logerror("PA Write %x\n", data);
947   if (!drq & m58817_drq)
948      m58817_state_loop(dat);
949   m58817_drq = drq;
770
771   m58817_CTL_w(0, data & 0x0f);
772   m58817_DRQ_w(0, (data>>4) & 0x01); // FIXME 0x20 ??
950773}
951774
952775/****************************************************************
r1418r1419
977800
978801static READ8_HANDLER( dkong_sh_tune_r )
979802{
803   dkong_state *state = Machine->driver_data;
980804   UINT8 *SND = memory_region(REGION_CPU2);
981   if ( page & 0x40 )
805
806   if ( state->page & 0x40 )
982807   {
983      return soundlatch_r(0);
808      return soundlatch_r(0) & 0x0F;
984809   }
985810   else
986      return (SND[2048+(page & 7)*256+offset]);
811      return (SND[0x1000+(state->page & 7)*256+offset]);
987812}
988813
814static READ8_HANDLER( dkongjr_sh_tune_r )
815{
816   return soundlatch_r(0) & 0x01F;
817}
818
989819#define TSTEP 0.001
990820
991821static WRITE8_HANDLER( dkong_sh_p1_w )
992822{
823   dkong_state *state = Machine->driver_data;
993824
994   if (has_discrete_interface)
825   if (state->has_discrete_interface)
995826      discrete_sound_w(DS_DAC,data);
996827   else
997828   {
998      envelope=exp(-tt);
999      DAC_data_w(0,(int)(data*envelope));
1000      if (decay)
1001         tt+=TSTEP;
829      state->envelope=exp(-state->tt);
830      DAC_data_w(0,(int)(data*state->envelope));
831      if (state->decay)
832         state->tt+=TSTEP;
1002833      else
1003         tt=0;
834         state->tt=0;
1004835   }
1005836}
1006837
r1418r1419
1008839static READ8_HANDLER( radarsc1_sh_p1_r )
1009840{
1010841   int r;
1011   r = (I8035_P1_R() & 0x80) | (M58817_status_r(0)<<6);
842
843   r = (I8035_P1_R() & 0x80) | (m58817_status_r(0)<<6);
1012844   return r;
1013845}
1014846
1015static WRITE8_HANDLER( radarsc1_sh_p1_w )
1016{
1017   M58817_command_w(0,data);
1018}
1019
1020static WRITE8_HANDLER( radarsc1_sh_p2_w )
1021{
1022   /*   If P2.Bit7 -> external signal decay
1023     *   If P2.Bit6 -> not connected
1024     *   If P2.Bit5 -> Signal ANSN ==> Grid enable
1025     *   If P2.Bit4 -> status code to main cpu
1026     *   P2.Bit2-0  -> select the 256 byte bank for external ROM
1027     */
1028
1029   if (has_discrete_interface)
1030      discrete_sound_w(DS_DAC_DISCHARGE, (data & 0x80) ? 0 : 1 );
1031   else
1032      decay = !(data & 0x80);
1033   page = (data & 0x07);
1034   mcustatus = ((~data & 0x10) >> 4);
1035   radarsc1_ansn_w(0, (data & 0x20) >> 5);
1036}
1037
1038847static WRITE8_HANDLER( dkong_sh_p2_w )
1039848{
1040849   /*   If P2.Bit7 -> is apparently an external signal decay or other output control
1041     *   If P2.Bit6 -> activates the external compressed sample ROM
850     *   If P2.Bit6 -> activates the external compressed sample ROM (not radarsc1)
851     *   If P2.Bit5 -> Signal ANSN ==> Grid enable (radarsc1)
1042852     *   If P2.Bit4 -> status code to main cpu
1043853     *   P2.Bit2-0  -> select the 256 byte bank for external ROM
1044854     */
1045855
1046   if (has_discrete_interface)
856   dkong_state *state = Machine->driver_data;
857
858   if (state->has_discrete_interface)
1047859      discrete_sound_w(DS_DAC_DISCHARGE, (data & 0x80) ? 0 : 1 );
1048860   else
1049      decay = !(data & 0x80);
1050   page = (data & 0x47);
1051   mcustatus = ((~data & 0x10) >> 4);
861      state->decay = !(data & 0x80);
862   state->mcustatus = ((~data & 0x10) >> 4);
863   radarsc1_ansn_w(0, (data & 0x20) >> 5);
864   state->page = (data & 0x47);
1052865}
1053866
1054static READ8_HANDLER( radarsc1_sh_tune_r )
1055{
1056   return soundlatch_r(0);
1057}
1058
1059
1060867/****************************************************************
1061868 *
1062869 * I/O Handlers - global
r1418r1419
1076883
1077884READ8_HANDLER( dkong_audio_status_r )
1078885{
1079   return mcustatus;
886   dkong_state *state = Machine->driver_data;
887
888   return state->mcustatus;
1080889}
1081890
1082891WRITE8_HANDLER( dkong_audio_irq_w )
r1418r1419
1091900{
1092901   dkong_state *state = Machine->driver_data;
1093902
1094   if (!has_discrete_interface && (offset<3))
903   if (!state->has_discrete_interface && (offset<3))
1095904   {
1096905      logerror("dkong.c: Write to snd port %d (%d)\n", offset, data);
1097906      return;
r1418r1419
1122931         I8035_T_W_AL(0, data & 1);
1123932         break;
1124933      case 6:
1125         if (has_discrete_interface)
934         if (state->has_discrete_interface)
1126935            discrete_sound_w(DS_SOUND6_INP,data & 1);
1127936         break;
1128937      case 7:
1129         if (has_discrete_interface)
938         if (state->has_discrete_interface)
1130939            discrete_sound_w(DS_SOUND7_INP,data & 1);
1131940         break;
1132941    }
r1418r1419
1140949
1141950WRITE8_HANDLER( dkongjr_snd_w1 )
1142951{
952   dkong_state *state = Machine->driver_data;
1143953   static const int sample_order[7] = {1,2,1,2,0,1,0};
1144954
1145   if (dkongjr_latch[offset] != data)
955   if (state->dkongjr_latch[offset] != data)
1146956   {
1147957      switch (offset)
1148958      {
1149959         case 0:         /* climb */
1150            if (data && dkongjr_latch[7] == 0)
960            if (data && state->dkongjr_latch[7] == 0)
1151961            {
1152               sample_start (3,sample_order[sh_climb_count]+3,0);
1153               sh_climb_count++;
1154               if (sh_climb_count == 7) sh_climb_count = 0;
962               sample_start (3,sample_order[state->sh_climb_count]+3,0);
963               state->sh_climb_count++;
964               if (state->sh_climb_count == 7) state->sh_climb_count = 0;
1155965            }
1156            else if (data && dkongjr_latch[7] == 1)
966            else if (data && state->dkongjr_latch[7] == 1)
1157967            {
1158               sample_start (3,sample_order[sh_climb_count]+8,0);
1159               sh_climb_count++;
1160               if (sh_climb_count == 7) sh_climb_count = 0;
968               sample_start (3,sample_order[state->sh_climb_count]+8,0);
969               state->sh_climb_count++;
970               if (state->sh_climb_count == 7) state->sh_climb_count = 0;
1161971            }
1162972            break;
1163973         case 1:         /* jump */
r1418r1419
1169979               sample_stop (7);
1170980            sample_start (4,1,0);
1171981            break;
982         case 3: /* Port 3 write ==> PB 5 */
983            I8035_P2_W_AL(5,data & 1);
984            break;
985#if 0 // above verified from schematics
1172986         case 3:         /* roar */
1173987            if (data)
1174988               sample_start (7,2,0);
1175989            break;
990#endif
1176991         case 4:         /* Port 4 write */
1177992            I8035_T_W_AL(1, data & 1);
1178993            break;
1179994         case 5:         /* Port 5 write */
1180995            I8035_T_W_AL(0, data & 1);
1181996            break;
997         case 6:         /* Port 6 write ==> PB 4 */
998            I8035_P2_W_AL(4,data & 1);
999            break;
1000#if 0 // above verified from schematics
11821001         case 6:         /* snapjaw */
11831002            if (data)
11841003               sample_stop (7);
11851004            sample_start (4,11,0);
11861005            break;
1006#endif
11871007         case 7:         /* walk */
11881008            //walk = data;
11891009            break;
11901010            }
1191      dkongjr_latch[offset] = data;
1011      state->dkongjr_latch[offset] = data;
11921012   }
11931013}
11941014
11951015WRITE8_HANDLER( dkongjr_snd_w2 )
11961016{
1197   if (dkongjr_latch[offset+8] != data)
1017   dkong_state *state = Machine->driver_data;
1018   if (state->dkongjr_latch[offset+8] != data)
11981019   {
11991020      switch (offset)
12001021      {
1022      case 0:
1023         dkong_audio_irq_w(0, data & 1);
1024         break;
1025#if 0 // above verified from schematics
12011026      case 0:         /* death */
12021027         if (data)
12031028            sample_stop (7);
12041029         sample_start (6, 6, 0);
12051030         break;
1031#endif
12061032      case 1:         /* drop */
12071033         if (data)
12081034            sample_start (7, 7, 0);
12091035         break;
12101036      }
1211      dkongjr_latch[offset+8] = data;
1037      state->dkongjr_latch[offset+8] = data;
12121038   }
12131039}
12141040
r1418r1419
12331059   AM_RANGE(I8039_t1, I8039_t1) AM_READ(dkong_sh_t1_r)
12341060ADDRESS_MAP_END
12351061
1062static ADDRESS_MAP_START( dkongjr_sound_io_map, ADDRESS_SPACE_IO, 8 )
1063   AM_RANGE(0x00, 0xff) AM_READ(dkongjr_sh_tune_r)
1064   AM_RANGE(I8039_p1, I8039_p1) AM_READWRITE(dkong_sh_p1_r, dkong_sh_p1_w)
1065   AM_RANGE(I8039_p2, I8039_p2) AM_READWRITE(dkong_sh_p2_r, dkong_sh_p2_w)
1066   AM_RANGE(I8039_t0, I8039_t0) AM_READ(dkong_sh_t0_r)
1067   AM_RANGE(I8039_t1, I8039_t1) AM_READ(dkong_sh_t1_r)
1068ADDRESS_MAP_END
1069
12361070static ADDRESS_MAP_START( radarsc1_sound_io_map, ADDRESS_SPACE_IO, 8 )
1237   AM_RANGE(0x00, 0xff) AM_READ(radarsc1_sh_tune_r)
1071   AM_RANGE(0x00, 0xff) AM_READ(soundlatch_r)
12381072   AM_RANGE(0x00, 0xff) AM_WRITE(dkong_sh_p1_w) // DAC here
1239   AM_RANGE(I8039_p1, I8039_p1) AM_READWRITE(radarsc1_sh_p1_r, radarsc1_sh_p1_w)
1240   AM_RANGE(I8039_p2, I8039_p2) AM_READWRITE(dkong_sh_p2_r, radarsc1_sh_p2_w)
1073   AM_RANGE(I8039_p1, I8039_p1) AM_READWRITE(radarsc1_sh_p1_r, M58817_command_w)
1074   AM_RANGE(I8039_p2, I8039_p2) AM_READWRITE(dkong_sh_p2_r, dkong_sh_p2_w)
12411075   AM_RANGE(I8039_t0, I8039_t0) AM_READ(dkong_sh_t0_r)
12421076   AM_RANGE(I8039_t1, I8039_t1) AM_READ(dkong_sh_t1_r)
12431077ADDRESS_MAP_END
r1418r1419
12651099 *
12661100 *************************************/
12671101
1268static const char *const dkongjr_sample_names[] =
1102static const char *dkongjr_sample_names[] =
12691103{
12701104   "*dkongjr",
12711105   "jump.wav",
r1418r1419
12831117   0   /* end of array */
12841118};
12851119
1286static const struct Samplesinterface dkongjr_samples_interface =
1120static struct Samplesinterface dkongjr_samples_interface =
12871121{
12881122   8,   /* 8 channels */
12891123   dkongjr_sample_names
12901124};
12911125
1292static const char *const radarsc1_sample_names[] =
1126#if !RADARSC1_USE_M58817
1127static const char *radarsc1_sample_names[] =
12931128{
12941129   "*radarsc1",
12951130   "10.wav",
r1418r1419
13041139   0   /* end of array */
13051140};
13061141
1307static const struct Samplesinterface radarsc1_samples_interface =
1142static struct Samplesinterface radarsc1_samples_interface =
13081143{
13091144   8,   /* 8 channels */
13101145   radarsc1_sample_names
13111146};
1147#endif
13121148
1313static const struct NESinterface nes_interface_1 = { REGION_CPU2 };
1314static const struct NESinterface nes_interface_2 = { REGION_CPU3 };
1149static struct NESinterface nes_interface_1 = { REGION_CPU2 };
1150static struct NESinterface nes_interface_2 = { REGION_CPU3 };
13151151
1152static struct M58817interface m58817_interface =
1153{
1154#if !RADARSC1_USE_M58817
1155   -1,
1156#else
1157   REGION_SOUND1,      /* Sample Rom */
1158#endif
1159   { 0x0000, 0x007a, 0x018b, 0x0320, 0x036c, 0x03c4, 0x041c, 0x0520, 0x063e }      /* sample address map */
1160};
1161
13161162/*************************************
13171163 *
13181164 *  Machine driver
r1418r1419
13521198   MDRV_CPU_IO_MAP(radarsc1_sound_io_map, 0)
13531199
13541200   MDRV_SOUND_START(radarsc1)
1355   MDRV_SOUND_RESET(radarsc1)
13561201
1202   MDRV_SOUND_ADD(M58817, 640000)
1203   MDRV_SOUND_CONFIG(m58817_interface)
1204   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.7)
1205
1206#if !RADARSC1_USE_M58817
13571207   MDRV_SOUND_ADD(SAMPLES, 0)
13581208   MDRV_SOUND_CONFIG(radarsc1_samples_interface)
13591209   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 3.0)
1210#endif
13601211
13611212MACHINE_DRIVER_END
13621213
13631214MACHINE_DRIVER_START( dkongjr_audio )
13641215
1365   MDRV_CPU_ADD(I8035,I8035_CLOCK)
1216   MDRV_CPU_ADD_TAG("sound", I8035,I8035_CLOCK)
13661217   MDRV_CPU_PROGRAM_MAP(dkong_sound_map,0)
1367   MDRV_CPU_IO_MAP(dkong_sound_io_map, 0)
1218   MDRV_CPU_IO_MAP(dkongjr_sound_io_map, 0)
13681219
13691220   MDRV_SOUND_START(dkongjr)
1370   MDRV_SOUND_RESET(dkong)
1221   MDRV_SOUND_RESET(dkongjr)
13711222
13721223   MDRV_SPEAKER_STANDARD_MONO("mono")
13731224   MDRV_SOUND_ADD(DAC, 0)
src/mame/machine/bonzeadv.c
r1418r1419
295295   { 0xff }
296296};
297297
298static const struct cchip_mapping* levelData[]=
298static const struct cchip_mapping *const levelData[]=
299299{
300300   level00,
301301   level01,
src/mame/machine/stvcd.c
r1418r1419
15501550   }
15511551}
15521552
1553void stvcd_exit(running_machine* machine)
1554{
1555   if (curdir != (direntryT *)NULL)
1556   {
1557      free((void *)curdir);
1558      curdir = (direntryT *)NULL;
1559   }
1560}
1561
15531562static void cd_readTOC(void)
15541563{
15551564   int i, ntrks, toclen, tocptr, fad;
src/mame/machine/stvcd.h
r1418r1419
1010#define __STVCD_H__
1111
1212void stvcd_reset(void);
13void stvcd_exit(running_machine* machine);
1314
1415READ32_HANDLER( stvcd_r );
1516WRITE32_HANDLER( stvcd_w );
src/mame/machine/namcos1.c
r1418r1419
660660}
661661
662662/* Main bankswitching routine */
663static void set_bank(int banknum, bankhandler *handler)
663static void set_bank(int banknum, const bankhandler *handler)
664664{
665665   int bankstart = (banknum & 7) * 0x2000;
666666   int cpunum = (banknum >> 3) & 1;
r1418r1419
834834
835835MACHINE_RESET( namcos1 )
836836{
837   static bankhandler unknown_handler = { unknown_r, unknown_w, 0, NULL };
837   static const bankhandler unknown_handler = { unknown_r, unknown_w, 0, NULL };
838838   int bank;
839839
840840   /* Point all of our bankhandlers to the error handlers */
src/mame/machine/tx1.c
r1418r1419
77#include "driver.h"
88
99static INT16 AU_DATA;
10static INT16 *AU_PTR = &AU_DATA;
10static INT16 *const AU_PTR = &AU_DATA;
1111static UINT16 inst_index;
1212
1313/* Internal registers and so forth */
src/mame/machine/slikshot.c
r1418r1419
9090static int last_ytotal;
9191
9292static UINT8 crosshair_vis;
93static int crosshair_min;
94static int crosshair_max;
9593
9694
9795
r1418r1419
534532
535533/*************************************
536534 *
537 *  slikshot_set_crosshair_range
538 *
539 *  set the range for the crosshair
540 *
541 *************************************/
542
543void slikshot_set_crosshair_range(int miny, int maxy)
544{
545   crosshair_min = miny;
546   crosshair_max = maxy;
547}
548
549
550
551/*************************************
552 *
553535 *  video_update_slikshot
554536 *
555537 *************************************/
r1418r1419
612594      memset(ybuffer, 0, sizeof(ybuffer));
613595   }
614596
615   /* draw a crosshair (rotated) */
616   if (crosshair_vis)
617   {
618//      if ((machine->gamedrv->flags & ORIENTATION_MASK) == ROT90)
619//          draw_crosshair(bitmap, 256 - 48, (crosshair_min + crosshair_max) / 2 - (curxpos * (crosshair_max - crosshair_min) / 0x100), cliprect, 0);
620//      else
621//          draw_crosshair(bitmap, 48, (crosshair_min + crosshair_max) / 2 + (curxpos * (crosshair_max - crosshair_min) / 0x100), cliprect, 0);
622   }
623597   return 0;
624598}
625599
src/mame/machine/opwolf.c
r1418r1419
272272   0x0300,0x4e01,0x5006,0x0042
273273};
274274
275static const UINT16* level_data_lookup[] =
275static const UINT16 *const level_data_lookup[] =
276276{
277277   level_data_00,
278278   level_data_01,
src/mame/mamedriv.c
r1418r1419
950950   DRIVER( 8ballat2 )   /* (c) 1984 Seatongrove Ltd (Magic Eletronics USA licence) */
951951   DRIVER( shootgal )   /* (c) 1984 Seatongrove Ltd (Zaccaria licence) */
952952   DRIVER( drakton )   /* (c) 1984 Epos Corporation */
953   DRIVER( drktnjr )   /* (c) 1984 Epos Corporation */
953954   DRIVER( strtheat )   /* (c) 1985 Epos Corporation */
954955   DRIVER( hunchbkd )   /* (c) 1983 Century */
955956   DRIVER( sbdk )      /* (c) 1984 Century */
r1418r1419
54585459   DRIVER( 2020bba )   /* 0030 (c) 1991 SNK / Pallas */
54595460   DRIVER( 2020bbh )   /* 0030 (c) 1991 SNK / Pallas */
54605461   DRIVER( socbrawl )   /* 0031 (c) 1991 SNK */
5462   DRIVER( socbrala )   /* 0031 (c) 1991 SNK */
54615463   DRIVER( roboarmy )   /* 0032 (c) 1991 SNK */
54625464   DRIVER( roboarma )   /* 0032 (c) 1991 SNK */
54635465   DRIVER( fatfury1 )   /* 0033 (c) 1991 SNK */
r1418r1419
55395541   DRIVER( sonicwi3 )   /* 0097 (c) 1995 Video System Co. */
55405542            /* 0098 Idol Mahjong - final romance 2 (CD only? not confirmed, MVS might exist) */
55415543            /* 0099 Neo Pool Masters */
5544            /* 0160 Japanese MVS cart; No bootleg (c) 1997/1998 SNK */
55425545   DRIVER( turfmast )   /* 0200 (c) 1996 Nazca */
55435546   DRIVER( mslug )      /* 0201 (c) 1996 Nazca */
55445547   DRIVER( puzzledp )   /* 0202 (c) 1995 Taito (Visco license) */
r1418r1419
61736176   DRIVER( raiden2a )   /* (c) 1993 Seibu Kaihatsu + Metrotainment license */
61746177   DRIVER( raiden2b )   /* (c) 1993 Seibu Kaihatsu */
61756178   DRIVER( raiden2c )   /* (c) 1993 Seibu Kaihatsu */
6179   DRIVER( raiden2d )   /* (c) 1993 Seibu Kaihatsu */
61766180   DRIVER( raiden2e )   /* (c) 1993 Seibu Kaihatsu */
61776181   DRIVER( raidndx )   /* (c) 1993 Seibu Kaihatsu */
61786182   DRIVER( raidndxa )   /* (c) 1993 Seibu Kaihatsu */
r1418r1419
66536657   DRIVER( eightfrc )   /* (c) 1994 Tecmo */
66546658   DRIVER( kiwame )   /* (c) 1994 Athena */
66556659   DRIVER( krzybowl )   /* (c) 1994 American Sammy */
6660   DRIVER( orbs )      /* (c) 1994 American Sammy */
66566661   DRIVER( extdwnhl )   /* (c) 1995 Sammy Japan */
66576662   DRIVER( gundhara )   /* (c) 1995 Banpresto */
66586663   DRIVER( sokonuke )   /* (c) 1995 Sammy Industries */
src/mame/includes/itech8.h
r1418r1419
1919READ8_HANDLER( slikshot_z80_control_r );
2020WRITE8_HANDLER( slikshot_z80_control_w );
2121
22void slikshot_set_crosshair_range(int miny, int maxy);
2322VIDEO_UPDATE( slikshot );
2423
2524
src/mame/includes/dkong.h
r1418r1419
6363   UINT8   hardware_type;
6464
6565   /* sound state */
66   UINT8 dkongjr_latch[10];
67   UINT8 sh_climb_count;
6668
69   UINT8 has_discrete_interface;
70
71   UINT8 page,mcustatus;
72
73   double envelope,tt;
74   UINT8 decay;
75   UINT8 portT;
76
6777   /* video state */
6878   tilemap *bg_tilemap;
6979
src/mame/mame.mak
r1418r1419
287287SOUNDS += SPEAKER
288288SOUNDS += CDP1869
289289SOUNDS += S14001A
290SOUNDS += M58817
290291SOUNDS += BEEP
291292#SOUNDS += WAVE
292293#SOUNDS += SID6581
src/mame/video/midzeus.c
r1418r1419
1818 *
1919 *************************************/
2020
21#define DUMP_WAVE_RAM   0
22
2123#define WAVERAM_WIDTH   512
2224#define WAVERAM_HEIGHT   2048
2325
r1418r1419
243245
244246static void exit_handler(running_machine *machine)
245247{
248#if DUMP_WAVE_RAM
246249   FILE *f = fopen("waveram.dmp", "w");
247250   int bank;
248251   int i;
r1418r1419
255258         if (i % 4 == 3) fprintf(f, "\n");
256259      }
257260   fclose(f);
261#endif
258262
259263   poly_free(poly);
260264}
src/mame/video/fastfred.c
r1418r1419
2020UINT8 *imago_fg_videoram;
2121
2222
23static rectangle spritevisiblearea =
23static const rectangle spritevisiblearea =
2424{
2525      2*8, 32*8-1,
2626      2*8, 30*8-1
2727};
2828
29static rectangle spritevisibleareaflipx =
29static const rectangle spritevisibleareaflipx =
3030{
3131        0*8, 30*8-1,
3232        2*8, 30*8-1
src/mame/video/dkong.c
r1418r1419
547547   dkong_state *state = Machine->driver_data;
548548
549549   state->grid_col = (data & 0x07) ^ 0x07;
550   popmessage("Gridcol: %d", state->grid_col);
550   //popmessage("Gridcol: %d", state->grid_col);
551551}
552552
553553WRITE8_HANDLER( dkong_flipscreen_w )
r1418r1419
662662 * a period of roughly 4.4 ms
663663 */
664664
665#define RC1      (2.2e3 * 22e-6) // 22e-6;
666#define RC2      (10e3 * 33e-6)
667#define RC31   (18e3 * 33e-6)
668#define RC32   ((18e3 + 68e3) * 33e-6)
669#define RC4      (90e3 * 0.47e-6)
670#define dt      (1./60./(double) VTOTAL)
671#define period2 (((long long)(PIXEL_CLOCK) * ( 33L * 68L )) / (long)10000000L / 3)  // period/2 in pixel ...
672
665673static void radarscp_step(running_machine *machine, int line_cnt)
666674{
667675   dkong_state *state = machine->driver_data;
668676   /* Condensator is illegible in schematics for TRS2 board.
669677     * TRS1 board states 3.3u.
670678     */
671   const double RC1= 2.2e3 * 22e-6;// 22e-6;
672   const double RC2= 10e3 * 33e-6;
673   const double RC31= 18e3 * 33e-6;
674   const double RC32= (18e3 + 68e3) * 33e-6;
675   const double RC4= 90e3 * 0.47e-6;
676   const double dt= 1./60./(double) VTOTAL;
677   const int period2 = ((long long)(PIXEL_CLOCK) * ( 33L * 68L )) / (long)10000000L / 3;  // period/2 in pixel ...
678   static double cv1=0,cv2=0,vg1=0,vg2=0,vg3=0,vg3i=0,cv3=0,cv4=0;
679
680   static double cv1=0,cv2=0,vg1=0,vg2=0,vg3=0,cv3=0,cv4=0;
681   double vg3i;
679682   static int pixelcnt = 0;
680683   double diff;
681684   int sig;
r1418r1419
683686   line_cnt += 256;
684687   if (line_cnt>511)
685688      line_cnt -= VTOTAL;
686   //FIXME: remove after testing
687   //return;
689
688690   /* sound2 mixes in a 30Hz noise signal.
689691     * With the current model this has no real effect
690692     * Included for completeness
r1418r1419
693695   line_cnt++;
694696   if (line_cnt>=512)
695697      line_cnt=512-VTOTAL;
698
696699   if ( ( !(line_cnt & 0x40) && ((line_cnt+1) & 0x40) ) && (mame_rand(Machine) > RAND_MAX/2))
697700      state->sig30Hz = (1-state->sig30Hz);
701
698702   state->rflip_sig = state->snd02_enable & state->sig30Hz;
699703   sig = state->rflip_sig ^ ((line_cnt & 0x80)>>7);
704
700705   if (state->hardware_type == HARDWARE_TRS01)
701706      state->rflip_sig = !state->rflip_sig;
707
702708   if  (sig) // 128VF
703709      diff = (0.0 - cv1);
704710   else
src/mame/video/travrusa.c
r1418r1419
279279static void draw_sprites(running_machine *machine, mame_bitmap *bitmap,const rectangle *cliprect)
280280{
281281   int offs;
282   static rectangle spritevisiblearea =
282   static const rectangle spritevisiblearea =
283283   {
284284      1*8, 31*8-1,
285285      0*8, 24*8-1
286286   };
287   static rectangle spritevisibleareaflip =
287   static const rectangle spritevisibleareaflip =
288288   {
289289      1*8, 31*8-1,
290290      8*8, 32*8-1
src/mame/video/model1.c
r1418r1419
571571   return pointpt++;
572572}
573573
574static struct {
574static const struct {
575575   int (*isclipped)(struct point *p);
576576   struct point *(*clip)(struct point *p1, struct point *p2);
577577} clipfn[4] = {
src/mame/video/wiz.c
r1418r1419
99#include "driver.h"
1010
1111
12static rectangle spritevisiblearea =
12static const rectangle spritevisiblearea =
1313{
1414   2*8, 32*8-1,
1515   2*8, 30*8-1
1616};
1717
18static rectangle spritevisibleareaflipx =
18static const rectangle spritevisibleareaflipx =
1919{
2020   0*8, 30*8-1,
2121   2*8, 30*8-1
src/mame/video/mermaid.c
r1418r1419
88
99static int rougien_gfxbank1, rougien_gfxbank2;
1010
11static rectangle spritevisiblearea =
11static const rectangle spritevisiblearea =
1212{
1313   0*8, 26*8-1,
1414   2*8, 30*8-1
1515};
1616
17static rectangle flip_spritevisiblearea =
17static const rectangle flip_spritevisiblearea =
1818{
1919   6*8, 31*8-1,
2020   2*8, 30*8-1
src/mame/video/galaxian.c
r1418r1419
77#include "driver.h"
88#include "includes/galaxian.h"
99
10static rectangle _spritevisiblearea =
10static const rectangle _spritevisiblearea =
1111{
1212   2*8+1, 32*8-1,
1313   2*8,   30*8-1
1414};
15static rectangle _spritevisibleareaflipx =
15static const rectangle _spritevisibleareaflipx =
1616{
1717   0*8, 30*8-2,
1818   2*8, 30*8-1
1919};
2020
21static rectangle* spritevisiblearea;
22static rectangle* spritevisibleareaflipx;
21static const rectangle* spritevisiblearea;
22static const rectangle* spritevisibleareaflipx;
2323
2424
2525#define STARS_COLOR_BASE       (memory_region_length(REGION_PROMS))
src/mame/video/zaccaria.c
r1418r1419
1414
1515static tilemap *bg_tilemap;
1616
17static rectangle spritevisiblearea =
17static const rectangle spritevisiblearea =
1818{
1919   2*8+1, 29*8-1,
2020   2*8, 30*8-1
2121};
22static rectangle spritevisiblearea_flipx =
22static const rectangle spritevisiblearea_flipx =
2323{
2424   3*8+1, 30*8-1,
2525   2*8, 30*8-1
src/mame/video/bfm_adr2.c
r1418r1419
212212}
213213
214214// video update ///////////////////////////////////////////////////////////
215static rectangle visible1 = { 0, 400-1,  0,  280-1 };  //minx,maxx, miny,maxy
215static const rectangle visible1 = { 0, 400-1,  0,  280-1 };  //minx,maxx, miny,maxy
216216
217217VIDEO_UPDATE( adder2 )
218218{
src/mame/video/bking2.c
r1418r1419
284284
285285VIDEO_EOF( bking2 )
286286{
287   static rectangle rect = { 0, 7, 0, 15 };
287   static const rectangle rect = { 0, 7, 0, 15 };
288288
289289   int xld = 0;
290290   int yld = 0;
src/mame/video/taitosj.c
r1418r1419
644644       Note that the clipping is asymmetrical. This matches the real thing.
645645       I'm not sure of what should happen when the screen is flipped, though.
646646     */
647   static rectangle spritevisiblearea =
647   static const rectangle spritevisiblearea =
648648   {
649649      0*8+3, 32*8-1-1,
650650      2*8, 30*8-1
651651   };
652   static rectangle spritevisibleareaflip =
652   static const rectangle spritevisibleareaflip =
653653   {
654654      0*8+1, 32*8-3-1,
655655      2*8, 30*8-1
src/mame/video/vigilant.c
r1418r1419
1717#include "driver.h"
1818
1919
20static rectangle bottomvisiblearea =
20static const rectangle bottomvisiblearea =
2121{
2222   16*8, 48*8-1,
2323   6*8, 32*8-1
src/mame/video/pingpong.c
r1418r1419
1414/* This is strange; it's unlikely that the sprites actually have a hardware */
1515/* clipping region, but I haven't found another way to have them masked by */
1616/* the characters at the top and bottom of the screen. */
17static rectangle spritevisiblearea =
17static const rectangle spritevisiblearea =
1818{
1919   0*8, 32*8-1,
2020   4*8, 29*8-1
src/mame/video/retofinv.c
r1418r1419
185185static void draw_sprites(running_machine *machine, mame_bitmap *bitmap)
186186{
187187   int offs;
188   static rectangle spritevisiblearea =
188   static const rectangle spritevisiblearea =
189189   {
190190      2*8, 34*8-1,
191191      0*8, 28*8-1
src/mame/video/aeroboto.c
r1418r1419
144144
145145VIDEO_UPDATE( aeroboto )
146146{
147   static rectangle splitrect1 = { 0, 255, 0, 39 };
148   static rectangle splitrect2 = { 0, 255, 40, 255 };
147   static const rectangle splitrect1 = { 0, 255, 0, 39 };
148   static const rectangle splitrect2 = { 0, 255, 40, 255 };
149149   static int sx=0, sy=0;
150150   static UINT8 ox=0, oy=0;
151151   UINT8 *src_base, *src_colptr, *src_rowptr;
src/mame/video/naughtyb.c
r1418r1419
2626// true if cabinet == cocktail -AND- handling player 2
2727int naughtyb_cocktail;
2828
29static rectangle scrollvisiblearea =
29static const rectangle scrollvisiblearea =
3030{
3131   2*8, 34*8-1,
3232   0*8, 28*8-1
3333};
3434
35static rectangle leftvisiblearea =
35static const rectangle leftvisiblearea =
3636{
3737   0*8, 2*8-1,
3838   0*8, 28*8-1
3939};
4040
41static rectangle rightvisiblearea =
41static const rectangle rightvisiblearea =
4242{
4343   34*8, 36*8-1,
4444   0*8, 28*8-1
src/mame/video/digdug.c
r1418r1419
248248
249249***************************************************************************/
250250
251static rectangle spritevisiblearea =
251static const rectangle spritevisiblearea =
252252{
253253   2*8, 34*8-1,
254254   0*8, 28*8-1
src/mame/video/neogeo.c
r1418r1419
864864   pens = auto_malloc(NUM_PENS * sizeof(pen_t));
865865   neogeo_videoram = auto_malloc(0x20000);
866866
867   /* clear allocated memory */
868   memset(palettes[0],0x00, NUM_PENS * sizeof(UINT16));
869   memset(palettes[1],0x00, NUM_PENS * sizeof(UINT16));
870   memset(pens,0x00, NUM_PENS * sizeof(pen_t));
871   memset(neogeo_videoram,0x00, 0x20000);
872
867873   compute_rgb_weights();
868874   create_sprite_line_timer();
869875   create_auto_animation_timer();
src/mame/video/taito_f2.c
r1418r1419
7070static int f2_tilemap_col_base = 0;
7171
7272static INT32 f2_game = 0;
73static INT32 FOOTCHMP = 1;
7473
7574static UINT8 f2_tilepri[6]; // todo - move into taitoic.c
7675static UINT8 f2_spritepri[6]; // todo - move into taitoic.c
7776static UINT8 f2_spriteblendmode; // todo - move into taitoic.c
7877
78enum
79{
80   FOOTCHMP = 1
81};
82
83
7984/***********************************************************************************/
8085
8186static void taitof2_core_vh_start (running_machine *machine, int sprite_type,int hide,int flip_hide,int x_offs,int y_offs,
src/mame/video/pacman.c
r1418r1419
3232UINT8 *s2650games_spriteram;
3333UINT8 *s2650games_tileram;
3434
35static rectangle spritevisiblearea =
35static const rectangle spritevisiblearea =
3636{
3737   2*8, 34*8-1,
3838   0*8, 28*8-1
src/mame/video/thepit.c
r1418r1419
2323static UINT8 *dummy_tile;
2424
2525
26static rectangle spritevisiblearea =
26static const rectangle spritevisiblearea =
2727{
2828   2*8+1, 32*8-1,
2929   2*8, 30*8-1
3030};
3131
32static rectangle spritevisibleareaflipx =
32static const rectangle spritevisibleareaflipx =
3333{
3434   0*8, 30*8-2,
3535   2*8, 30*8-1
src/mame/video/yard.c
r1418r1419
2626#define TOTAL_COLORS(gfxn) (machine->gfx[gfxn]->total_colors * machine->gfx[gfxn]->color_granularity)
2727#define COLOR(gfxn,offs) (colortable[machine->drv->gfxdecodeinfo[gfxn].color_codes_start + offs])
2828
29static rectangle clippanel =
29static const rectangle clippanel =
3030{
3131   26*8, 32*8-1,
3232   1*8, 31*8-1
3333};
3434
35static rectangle clippanelflip =
35static const rectangle clippanelflip =
3636{
3737   0*8, 6*8-1,
3838   1*8, 31*8-1
src/mame/drivers/policetr.c
r1418r1419
413413   PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_X ) PORT_CROSSHAIR(X, 1.012, 0.008, 0) PORT_SENSITIVITY(50) PORT_KEYDELTA(10)
414414
415415   PORT_START_TAG("GUNY1")            /* fake analog Y */
416   PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_Y ) PORT_CROSSHAIR(Y, 1.0, 0.002, 0) PORT_SENSITIVITY(70) PORT_KEYDELTA(10)
416   PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_Y ) PORT_CROSSHAIR(Y, 1.05, 0.002, 0) PORT_SENSITIVITY(70) PORT_KEYDELTA(10)
417417
418418   PORT_START_TAG("GUNX2")            /* fake analog X */
419419   PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_X ) PORT_CROSSHAIR(X, 1.012, 0.008, 0) PORT_SENSITIVITY(50) PORT_KEYDELTA(10) PORT_PLAYER(2)
420420
421421   PORT_START_TAG("GUNY2")            /* fake analog Y */
422   PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_Y ) PORT_CROSSHAIR(Y, 1.0, 0.002, 0) PORT_SENSITIVITY(70) PORT_KEYDELTA(10) PORT_PLAYER(2)
422   PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_Y ) PORT_CROSSHAIR(Y, 1.05, 0.002, 0) PORT_SENSITIVITY(70) PORT_KEYDELTA(10) PORT_PLAYER(2)
423423INPUT_PORTS_END
424424
425425
src/mame/drivers/itech32.c
r1418r1419
15931593   MDRV_NVRAM_HANDLER( gt3dt ) /* Make Tournament sets load/store the Timekeeper info */
15941594MACHINE_DRIVER_END
15951595
1596
15961597static MACHINE_DRIVER_START( wcbowlt )
15971598
15981599   /* basic machine hardware */
r1418r1419
16021603MACHINE_DRIVER_END
16031604
16041605
1606
16051607/*************************************
16061608 *
16071609 *  ROM definitions
src/mame/drivers/midzeus.c
r1418r1419
185185      if (((old_control ^ gun_control) & pmask) != 0 && (gun_control & pmask) == 0)
186186      {
187187         const rectangle *visarea = &Machine->screen[0].visarea;
188         static const char *names[2][2] =
188         static const char *const names[2][2] =
189189         {
190190            { "GUNX1", "GUNY1" },
191191            { "GUNX2", "GUNY2" }
src/mame/drivers/dkong.c
r1418r1419
99  Clarify
1010- 8ballact: read 1507 no mapped
1111- drakton - add dkongjr conversion
12- dkong3 dma (Z80 dma)
1213- implement 74LS259 (8bit addressable latches), 74LS175 (QUAD D FlipFlop), 74LS373 (Octal transparent latch)
1314
14
1515Done:
1616- when i am retired: implement 8257 DMA controller
1717- radarscp_grid_color_w() is wrong, it probably isn't supposed to change
r1418r1419
5454      Schematics show, that these boards actually were based on TRS-02
5555    - TKG-4 is a 2 board set.
5656
57  Couriersud: 12/2007
58
59    - changed dkong/radarscp based games to use hardware-conformant I8035 memory maps
60    - Added drakton clone drktnjr on dkongjr hardware
61    - wrote M58817 sound driver and hooked it up
62         Uses tms5110 speech synthesis. LPC format is identical, however coefficients
63         seem to be different. Until coefficients are known, samples are used.
64    - moved address remapping proms to REGION_USER1 (hunchbkd & co)
65    - Service now adds credit
66    - Hooked up coin_counters
67    - remove GAME_NOT_WORKING GAME_WRONG_COLORS from hunchbkd
68    - fixed shootgal0121u4red
69    - dkongjr: mapped more interface lines between sound board and cpu board
70    - tagged all inputs, all reads use tag names
71    - moved more static vars into dkong_state
72
73  General notes
74
75  The dma8257 is responsible for copying sprite data from 0x6900 (or where ever it is located) to 0x7400 (sprite banks).
76  2650 based games had a rom for address lookups. This is needed for proper operation of the 8257 code.
77  Where this was missing, I copied the entry from hunchbkd and marked it as BAD_DUMP.
78  Additional protection was done by pals. The only driver with a PAL entry is herbiedk.
79  I added NO_DUMP entries for the other 2650 games.
80
81  Thanks to Mike I was able to closer analyze TKG02/03/04 schematics. The radar scope to donkey kong conversions done
82  should lead to the same discrete sound as TKG04 (2 board boards). However the colours are different.
83  Red girders are back. Until the release of TKG04, the 2 board release, schematics were largely identical with radar scope.
84  There were slight modifications from release to release in the analog video logic. Already at TKG2-02(03) the
85  darlington amplifier for the blue channel was replaced with a emitter one by leaving away (OMIT in schematics)
86  a resistor and transistor. Later on, TKG3-06, 4066 switches and background generation circuits for radarscope were removed.
87  I have added a driver configuration switch to switch between TKG4 and TKG2-01 (radarscope) palettes.
88  At a later stage, a TKG2-02 will be added as well.
89
90
5791Donkey Kong and Donkey Kong Jr. memory map (preliminary) (DKong 3 follows)
5892
59930000-3fff ROM (Donkey Kong Jr.and Donkey Kong 3: 0000-5fff)
r1418r1419
290324
291325static MACHINE_START( hunchbkd )
292326{
293   UINT8   *p = memory_region(REGION_PROMS);
327   UINT8   *p = memory_region(REGION_USER1);
294328   int i;
295329
296330   dkong_state *state = Machine->driver_data;
r1418r1419
301335   for (i=0;i<0x200;i++)
302336      state->rev_map[i] = -1;
303337   for (i=0;i<0x200;i++)
304      state->rev_map[p[0x300+i]] = i;
338      state->rev_map[p[0x0000+i]] = i;
305339
306340   state_save_register_global(state->hunchloopback);
307341
r1418r1419
438472 *
439473 *************************************/
440474
475static WRITE8_HANDLER( dkong3_coin_counter_w )
476{
477   coin_counter_w(offset, data & 0x01);
478}
479
441480static WRITE8_HANDLER( p8257_drq_w )
442481{
443482   dma8257_drq_write(0, 0, data & 0x01);
r1418r1419
446485
447486static READ8_HANDLER( dkong_in2_r )
448487{
449   return (readinputportbytag("IN2") & 0xBF) | (dkong_audio_status_r(0) << 6);
488   UINT8 r;
489
490   r = (readinputportbytag("IN2") & 0xBF) | (dkong_audio_status_r(0) << 6);
491   coin_counter_w(offset, r >> 7);
492   if (r & 0x10)
493      r = (r & ~0x10) | 0x80; /* service ==> coint */
494   return r;
450495}
451496
452497static READ8_HANDLER( hunchbkd_mirror_r )
r1418r1419
574619   }
575620}
576621
577/*************************************
578 *
579 *  NVRAM handling
580 *
581 *************************************/
582622
583
584
585623/*************************************
586624 *
587625 *  Main CPU memory handlers
r1418r1419
591629static ADDRESS_MAP_START( dkong_map, ADDRESS_SPACE_PROGRAM, 8 )
592630   AM_RANGE(0x0000, 0x3fff) AM_ROM
593631   AM_RANGE(0x6000, 0x6bff) AM_RAM
594   AM_RANGE(0x7000, 0x73ff) AM_RAM AM_BASE(&spriteram) AM_SIZE(&spriteram_size) /* sprite set 1 */
632   AM_RANGE(0x7000, 0x73ff) AM_RAM AM_BASE(&spriteram) AM_SIZE(&spriteram_size) /* sprite set 1 */
595633   AM_RANGE(0x7400, 0x77ff) AM_READWRITE(MRA8_RAM, dkong_videoram_w) AM_BASE(&videoram)
596   AM_RANGE(0x7800, 0x780f) AM_READWRITE(dma8257_0_r, dma8257_0_w)            /* P8257 control registers */
597   AM_RANGE(0x7c00, 0x7c00) AM_READWRITE(input_port_0_r, dkong_sh_tuneselect_w) /* IN0, sound CPU intf */
598   AM_RANGE(0x7c80, 0x7c80) AM_READWRITE(input_port_1_r, radarscp_grid_color_w)      /* IN1 */
599   AM_RANGE(0x7d00, 0x7d00) AM_READ(dkong_in2_r)                        /* IN2/DSW2 */
600   AM_RANGE(0x7d00, 0x7d07) AM_WRITE(dkong_snd_disc_w)                     /* Sound signals */
601   AM_RANGE(0x7d80, 0x7d80) AM_READWRITE(input_port_3_r, dkong_audio_irq_w)         /* DSW1 */
634   AM_RANGE(0x7800, 0x780f) AM_READWRITE(dma8257_0_r, dma8257_0_w)              /* P8257 control registers */
635   AM_RANGE(0x7c00, 0x7c00) AM_READ_PORT("IN0") AM_WRITE(dkong_sh_tuneselect_w)  /* IN0, sound CPU intf */
636   AM_RANGE(0x7c80, 0x7c80) AM_READ_PORT("IN1") AM_WRITE(radarscp_grid_color_w)  /* IN1 */
637   AM_RANGE(0x7d00, 0x7d00) AM_READ(dkong_in2_r)                          /* IN2 */
638   AM_RANGE(0x7d00, 0x7d07) AM_WRITE(dkong_snd_disc_w)                       /* Sound signals */
639   AM_RANGE(0x7d80, 0x7d80) AM_READ_PORT("DSW0") AM_WRITE(dkong_audio_irq_w)     /* DSW0 */
602640   AM_RANGE(0x7d81, 0x7d81) AM_WRITE(radarscp_grid_enable_w)
603641   AM_RANGE(0x7d82, 0x7d82) AM_WRITE(dkong_flipscreen_w)
604   AM_RANGE(0x7d83, 0x7d83) AM_WRITE(dkong_spritebank_w)                  /* 2 PSL Signal */
642   AM_RANGE(0x7d83, 0x7d83) AM_WRITE(dkong_spritebank_w)                    /* 2 PSL Signal */
605643   AM_RANGE(0x7d84, 0x7d84) AM_WRITE(interrupt_enable_w)
606   AM_RANGE(0x7d85, 0x7d85) AM_WRITE(p8257_drq_w)                        /* P8257 ==> /DRQ0 /DRQ1 */
644   AM_RANGE(0x7d85, 0x7d85) AM_WRITE(p8257_drq_w)                          /* P8257 ==> /DRQ0 /DRQ1 */
607645   AM_RANGE(0x7d86, 0x7d87) AM_WRITE(dkong_palettebank_w)
608646ADDRESS_MAP_END
609647
r1418r1419
614652
615653static ADDRESS_MAP_START( hunchbkd_map, ADDRESS_SPACE_PROGRAM, 8 )
616654   AM_RANGE(0x0000, 0x0fff) AM_ROM
617   AM_RANGE(0x1000, 0x13ff) AM_RAM AM_BASE(&spriteram) AM_SIZE(&spriteram_size)         /* 0x7000 */
618   AM_RANGE(0x1400, 0x1400) AM_READWRITE(input_port_0_r, dkong_sh_tuneselect_w)
619   AM_RANGE(0x1480, 0x1480) AM_READ(input_port_1_r)
620   AM_RANGE(0x1500, 0x1500) AM_READ(input_port_2_r)   /* IN2/DSW2 */
621   AM_RANGE(0x1580, 0x1580) AM_READWRITE(input_port_3_r, dkong_audio_irq_w) /* DSW1 */
655   AM_RANGE(0x1000, 0x13ff) AM_RAM AM_BASE(&spriteram) AM_SIZE(&spriteram_size)  /* 0x7000 */
656   AM_RANGE(0x1400, 0x1400) AM_READ_PORT("IN0") AM_WRITE(dkong_sh_tuneselect_w)
657   AM_RANGE(0x1480, 0x1480) AM_READ_PORT("IN1")
658   AM_RANGE(0x1500, 0x1500) AM_READ(dkong_in2_r)                                 /* IN2 */
659   AM_RANGE(0x1500, 0x1507) AM_WRITE(dkong_snd_disc_w)                       /* Sound signals */
660   AM_RANGE(0x1580, 0x1580) AM_READ_PORT("DSW0") AM_WRITE(dkong_audio_irq_w)     /* DSW0 */
622661   AM_RANGE(0x1582, 0x1582) AM_WRITE(dkong_flipscreen_w)
623   AM_RANGE(0x1584, 0x1584) AM_NOP         /* Possibly still interupt enable */
624   AM_RANGE(0x1585, 0x1585) AM_WRITE(p8257_drq_w)                        /* P8257 ==> /DRQ0 /DRQ1 */
662   AM_RANGE(0x1583, 0x1583) AM_WRITE(dkong_spritebank_w)                    /* 2 PSL Signal */
663   AM_RANGE(0x1584, 0x1584) AM_NOP                                               /* Possibly still interupt enable */
664   AM_RANGE(0x1585, 0x1585) AM_WRITE(p8257_drq_w)                          /* P8257 ==> /DRQ0 /DRQ1 */
625665   AM_RANGE(0x1586, 0x1587) AM_WRITE(dkong_palettebank_w)
626   AM_RANGE(0x1600, 0x17ff) AM_RAM /* 0x6400  spriteram location */
666   AM_RANGE(0x1600, 0x17ff) AM_RAM                                               /* 0x6400  spriteram location */
627667   AM_RANGE(0x1800, 0x1bff) AM_READWRITE(MRA8_RAM, dkong_videoram_w) AM_BASE(&videoram) /* 0x7400 */
628   AM_RANGE(0x1C00, 0x1f7f) AM_RAM /* 0x6000 */
629   AM_RANGE(0x1f80, 0x1f8f) AM_READWRITE(dma8257_0_r, dma8257_0_w)            /* P8257 control registers */
668   AM_RANGE(0x1C00, 0x1f7f) AM_RAM                                               /* 0x6000 */
669   AM_RANGE(0x1f80, 0x1f8f) AM_READWRITE(dma8257_0_r, dma8257_0_w)              /* P8257 control registers */
630670   /* 0x6800 not remapped */
631671   AM_RANGE(0x2000, 0x2fff) AM_ROM
632672   AM_RANGE(0x3000, 0x3fff) AM_READWRITE(hunchbkd_mirror_r, hunchbkd_mirror_w)
r1418r1419
639679static ADDRESS_MAP_START( hunchbkd_io_map, ADDRESS_SPACE_IO, 8 )
640680   AM_RANGE(0x00, 0x00) AM_READ(hunchbkd_port0_r)
641681   AM_RANGE(0x01, 0x01) AM_READ(hunchbkd_port1_r)
642   AM_RANGE(S2650_SENSE_PORT, S2650_SENSE_PORT) AM_READ(input_port_4_r)
682   AM_RANGE(S2650_SENSE_PORT, S2650_SENSE_PORT) AM_READ_PORT("SENSE")
643683   AM_RANGE(S2650_DATA_PORT, S2650_DATA_PORT) AM_WRITE(hunchbkd_data_w)
644684ADDRESS_MAP_END
645685
646686static ADDRESS_MAP_START( herbiedk_io_map, ADDRESS_SPACE_IO, 8 )
647687   AM_RANGE(0x01, 0x01) AM_READ(herbiedk_port1_r)
648   AM_RANGE(S2650_SENSE_PORT, S2650_SENSE_PORT) AM_READ(input_port_4_r)
688   AM_RANGE(S2650_SENSE_PORT, S2650_SENSE_PORT) AM_READ_PORT("SENSE")
649689   AM_RANGE(S2650_DATA_PORT, S2650_DATA_PORT) AM_WRITE(hunchbkd_data_w)
650690ADDRESS_MAP_END
651691
652692static ADDRESS_MAP_START( spclforc_io_map, ADDRESS_SPACE_IO, 8 )
653693   AM_RANGE(0x00, 0x00) AM_READ(spclforc_port0_r)
654   AM_RANGE(S2650_SENSE_PORT, S2650_SENSE_PORT) AM_READ(input_port_4_r)
694   AM_RANGE(S2650_SENSE_PORT, S2650_SENSE_PORT) AM_READ_PORT("SENSE")
655695   AM_RANGE(S2650_DATA_PORT, S2650_DATA_PORT) AM_WRITE(hunchbkd_data_w)
656696ADDRESS_MAP_END
657697
658698static ADDRESS_MAP_START( eightact_io_map, ADDRESS_SPACE_IO, 8 )
659699   AM_RANGE(0x01, 0x01) AM_READ(eightact_port1_r)
660   AM_RANGE(S2650_SENSE_PORT, S2650_SENSE_PORT) AM_READ(input_port_4_r)
700   AM_RANGE(S2650_SENSE_PORT, S2650_SENSE_PORT)AM_READ_PORT("SENSE")
661701   AM_RANGE(S2650_DATA_PORT, S2650_DATA_PORT) AM_WRITE(hunchbkd_data_w)
662702ADDRESS_MAP_END
663703
664704static ADDRESS_MAP_START( shootgal_io_map, ADDRESS_SPACE_IO, 8 )
665705   AM_RANGE(0x00, 0x00) AM_READ(shootgal_port0_r)
666   AM_RANGE(S2650_SENSE_PORT, S2650_SENSE_PORT) AM_READ(input_port_4_r)
706   AM_RANGE(S2650_SENSE_PORT, S2650_SENSE_PORT) AM_READ_PORT("SENSE")
667707   AM_RANGE(S2650_DATA_PORT, S2650_DATA_PORT) AM_WRITE(hunchbkd_data_w)
668708ADDRESS_MAP_END
669709
r1418r1419
674714   AM_RANGE(0x6a80, 0x6cff) AM_RAM /* 0x6b00: sprite set 2 */
675715   AM_RANGE(0x6d00, 0x6fff) AM_RAM /* ???? */
676716   AM_RANGE(0x7400, 0x77ff) AM_READWRITE(MRA8_RAM, dkong_videoram_w) AM_BASE(&videoram)
677   AM_RANGE(0x7c00, 0x7c00) AM_READWRITE(input_port_0_r, soundlatch_w)
678   AM_RANGE(0x7c80, 0x7c80) AM_READWRITE(input_port_1_r, soundlatch2_w)
679   AM_RANGE(0x7d00, 0x7d00) AM_READWRITE(input_port_2_r, soundlatch3_w)
680   AM_RANGE(0x7d80, 0x7d80) AM_READWRITE(input_port_3_r, dkong3_2a03_reset_w)
717   AM_RANGE(0x7c00, 0x7c00) AM_READ_PORT("IN0")  AM_WRITE(soundlatch_w)
718   AM_RANGE(0x7c80, 0x7c80) AM_READ_PORT("IN1")  AM_WRITE(soundlatch2_w)
719   AM_RANGE(0x7d00, 0x7d00) AM_READ_PORT("DSW0") AM_WRITE(soundlatch3_w)
720   AM_RANGE(0x7d80, 0x7d80) AM_READ_PORT("DSW1") AM_WRITE(dkong3_2a03_reset_w)
721   AM_RANGE(0x7e80, 0x7e80) AM_WRITE(dkong3_coin_counter_w)
681722   AM_RANGE(0x7e81, 0x7e81) AM_WRITE(dkong3_gfxbank_w)
682723   AM_RANGE(0x7e82, 0x7e82) AM_WRITE(dkong_flipscreen_w)
724   AM_RANGE(0x7e83, 0x7e83) AM_WRITE(dkong_spritebank_w)                  /* 2 PSL Signal */
683725   AM_RANGE(0x7e84, 0x7e84) AM_WRITE(interrupt_enable_w)
684726   AM_RANGE(0x7e85, 0x7e85) AM_NOP                     /* ==> DMA Chip */
685727   AM_RANGE(0x7e86, 0x7e87) AM_WRITE(dkong_palettebank_w)
686   AM_RANGE(0x8000, 0x9fff) AM_ROM   /* DK3 and bootleg DKjr only */
728   AM_RANGE(0x8000, 0x9fff) AM_ROM                           /* DK3 and bootleg DKjr only */
687729ADDRESS_MAP_END
688730
689731static ADDRESS_MAP_START( dkong3_io_map, ADDRESS_SPACE_IO, 8 )
r1418r1419
694736static ADDRESS_MAP_START( dkongjr_map, ADDRESS_SPACE_PROGRAM, 8 )
695737   AM_RANGE(0x0000, 0x5fff) AM_ROM
696738   AM_RANGE(0x6000, 0x6bff) AM_RAM
697   AM_RANGE(0x6c00, 0x6fff) AM_RAM /* DK3 bootleg only */
739   AM_RANGE(0x6c00, 0x6fff) AM_RAM                                              /* DK3 bootleg only */
698740   AM_RANGE(0x7000, 0x73ff) AM_RAM AM_BASE(&spriteram) AM_SIZE(&spriteram_size) /* sprite set 1 */
699741   AM_RANGE(0x7400, 0x77ff) AM_READWRITE(MRA8_RAM, dkong_videoram_w) AM_BASE(&videoram)
700742   AM_RANGE(0x7800, 0x780f) AM_READWRITE(dma8257_0_r, dma8257_0_w)            /* P8257 control registers */
701   AM_RANGE(0x7c00, 0x7c00) AM_READWRITE(input_port_0_r, dkongjr_sh_tuneselect_w)
702   AM_RANGE(0x7c80, 0x7c80) AM_READWRITE(input_port_1_r, dkongjr_gfxbank_w)
743   AM_RANGE(0x7c00, 0x7c00) AM_READ_PORT("IN0") AM_WRITE(dkongjr_sh_tuneselect_w)
744   AM_RANGE(0x7c80, 0x7c80) AM_READ_PORT("IN1") AM_WRITE(dkongjr_gfxbank_w)
703745   AM_RANGE(0x7c81, 0x7c81) AM_WRITE(dkongjr_sh_test6_w)
704   AM_RANGE(0x7d00, 0x7d00) AM_READ(dkong_in2_r)   /* IN2/DSW2 */
705   AM_RANGE(0x7d00, 0x7d07) AM_WRITE(dkongjr_snd_w1)       /* Sound addrs */
706   AM_RANGE(0x7d80, 0x7d80) AM_READ(input_port_3_r)   /* DSW1 */
707   AM_RANGE(0x7d80, 0x7d81) AM_WRITE(dkongjr_snd_w2)       /* Sound addrs */
746   AM_RANGE(0x7d00, 0x7d00) AM_READ(dkong_in2_r)                               /* IN2 */
747   AM_RANGE(0x7d80, 0x7d80) AM_READ_PORT("DSW0")                               /* DSW0 */
748   AM_RANGE(0x7d00, 0x7d07) AM_WRITE(dkongjr_snd_w1)                           /* Sound addrs */
749   AM_RANGE(0x7d80, 0x7d81) AM_WRITE(dkongjr_snd_w2)                           /* Sound addrs */
708750   AM_RANGE(0x7d82, 0x7d82) AM_WRITE(dkong_flipscreen_w)
709751   AM_RANGE(0x7d83, 0x7d83) AM_WRITE(dkong_spritebank_w)                  /* 2 PSL Signal */
710752   AM_RANGE(0x7d84, 0x7d84) AM_WRITE(interrupt_enable_w)
711753   AM_RANGE(0x7d85, 0x7d85) AM_WRITE(p8257_drq_w)                        /* P8257 ==> /DRQ0 /DRQ1 */
712754   AM_RANGE(0x7d86, 0x7d87) AM_WRITE(dkong_palettebank_w)
713   AM_RANGE(0x8000, 0x9fff) AM_ROM   /* bootleg DKjr only */
714   AM_RANGE(0xb000, 0xbfff) AM_ROM /* pestplce only */
715   AM_RANGE(0xd000, 0xdfff) AM_ROM   /* DK3 bootleg only */
755   AM_RANGE(0x8000, 0x9fff) AM_ROM                                               /* bootleg DKjr only */
756   AM_RANGE(0xb000, 0xbfff) AM_ROM                                             /* pestplce only */
757   AM_RANGE(0xd000, 0xdfff) AM_ROM                                               /* DK3 bootleg only */
716758ADDRESS_MAP_END
717759
718760
r1418r1419
800842     * It should be a IPT_UNKNOWN. In fact, it will reset the game.
801843     */
802844   PORT_START_TAG("IN2")      /* IN2 */
803   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SERVICE ) PORT_NAME(DEF_STR( Service_Mode )) PORT_CODE(KEYCODE_F2)
804   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) /* connection not labeled in schematics */
805                                      /* This may freeze or reset dkong       */
845   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN  ) /* connection not labeled in schematics - reset */
846   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) /* connection not labeled in schematics - freeze or reset */
806847   PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_START1 )
807848   PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_START2 )
808   PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNKNOWN )   /* not connected - held to high */
849   PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_SERVICE )    /* not connected - held to high - used as service */
809850   PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNKNOWN )   /* not connected - held to high */
810851   PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_SPECIAL )   /* status from sound cpu */
811852   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_COIN1 )
r1418r1419
860901static INPUT_PORTS_START( radarscp )
861902   PORT_INCLUDE( radarscp_in0_2 )
862903   PORT_INCLUDE( radarscp_in1_2 )
863   /* Bit 0x80 is (SERVICE OR COIN) !
864     * Bit 0x01 is going to the connector and is labeled test switch
865     * It should be a IPT_UNUSED. In fact, it will reset the game.
866     */
904
867905   PORT_INCLUDE( dkong_in2 )
868   PORT_MODIFY("IN2")
869   PORT_DIPNAME( 0x10, 0x10, "TP3" )
870   PORT_DIPSETTING(    0x00, "Gnd" )
871   PORT_DIPSETTING(    0x10, "Open" )
872   PORT_DIPNAME( 0x20, 0x20, "TP5" )
873   PORT_DIPSETTING(    0x00, "Gnd" )
874   PORT_DIPSETTING(    0x20, "Open" )
875906
876907   PORT_INCLUDE( dkong_dsw0 )
877908
r1418r1419
10071038   PORT_DIPSETTING(    0x08, "40000" )
10081039   PORT_DIPSETTING(    0x0c, "80000" )
10091040
1010   PORT_START /* Sense */
1041   PORT_START_TAG("SENSE") /* Sense */
10111042   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_VBLANK )
10121043
10131044   PORT_INCLUDE( dkong_config )
r1418r1419
10221053
10231054   PORT_INCLUDE( dkong_in2 )
10241055   PORT_MODIFY("IN2")
1025   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN )
1026   PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN )
1056   PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_NAME("Start 1 / P1 Button 1") PORT_PLAYER(1)
1057   PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_NAME("Start 2 / P1 Button 2") PORT_PLAYER(1)
1058   //PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN )
1059   //PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN )
10271060
10281061   PORT_START_TAG("DSW0")      /* DSW0 */
10291062   PORT_DIPNAME( 0x01, 0x00, "1" )
r1418r1419
11711204   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN )
11721205
11731206   PORT_INCLUDE( dkong_in2 )
1174   PORT_MODIFY("IN2")
1175   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN )
11761207
11771208   PORT_START_TAG("DSW0")      /* DSW0 */
11781209   PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) )
r1418r1419
12881319   PORT_INCLUDE( dkong_in1_4 )
12891320
12901321   PORT_INCLUDE( dkong_in2 )
1291   PORT_MODIFY("IN2")
1292   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN )
12931322
12941323   PORT_START_TAG("DSW0")      /* DSW0 */
12951324   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Demo_Sounds ) )
r1418r1419
13431372   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN )
13441373
13451374   PORT_INCLUDE( dkong_in2 )
1346   PORT_MODIFY("IN2")
1347   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN )
13481375
13491376   PORT_START_TAG("DSW0")      /* DSW0 */
13501377   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Demo_Sounds ) )
r1418r1419
13871414 *
13881415 *************************************/
13891416
1390static const gfx_layout charlayout =
1391{
1392   8,8,   /* 8*8 characters */
1393   RGN_FRAC(1,2),
1394   2,   /* 2 bits per pixel */
1395   { RGN_FRAC(1,2), RGN_FRAC(0,2) },   /* the two bitplanes are separated */
1396   { 0, 1, 2, 3, 4, 5, 6, 7 },   /* pretty straightforward layout */
1397   { 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8 },
1398   8*8   /* every char takes 8 consecutive bytes */
1399};
1400
14011417static const gfx_layout spritelayout =
14021418{
1403   16,16,   /* 16*16 sprites */
1404   RGN_FRAC(1,4),   /* 128 sprites */
1405   2,   /* 2 bits per pixel */
1406   { RGN_FRAC(1,2), RGN_FRAC(0,2) },   /* the two bitplanes are separated */
1407   { 0, 1, 2, 3, 4, 5, 6, 7,   /* the two halves of the sprite are separated */
1408         RGN_FRAC(1,4)+0, RGN_FRAC(1,4)+1, RGN_FRAC(1,4)+2, RGN_FRAC(1,4)+3, RGN_FRAC(1,4)+4, RGN_FRAC(1,4)+5, RGN_FRAC(1,4)+6, RGN_FRAC(1,4)+7 },
1409   { 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8,
1410         8*8, 9*8, 10*8, 11*8, 12*8, 13*8, 14*8, 15*8 },
1411   16*8   /* every sprite takes 16 consecutive bytes */
1419   16,16,                                   /* 16*16 sprites */
1420   RGN_FRAC(1,4),                           /* 128 sprites */
1421   2,                                       /* 2 bits per pixel */
1422   { RGN_FRAC(1,2), RGN_FRAC(0,2) },       /* the two bitplanes are separated */
1423   { STEP8(0,1), STEP8(RGN_FRAC(1,4),1) }, /* the two halves of the sprite are separated */
1424   { STEP16(0,8) },
1425   16*8                                   /* every sprite takes 16 consecutive bytes */
14121426};
14131427
14141428static const gfx_layout pestplce_spritelayout =
14151429{
1416   16,16,   /* 16*16 sprites */
1417   256,   /* 256 sprites */
1418   2,   /* 2 bits per pixel */
1419   { 0, 256*16*16 },   /* the two bitplanes are separated */
1420   { 0, 1, 2, 3, 4, 5, 6, 7,      /* the two halves of the sprite are separated */
1421         256*16*8+0, 256*16*8+1, 256*16*8+2, 256*16*8+3, 256*16*8+4, 256*16*8+5, 256*16*8+6, 256*16*8+7 },
1422   { 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8,
1423         8*8, 9*8, 10*8, 11*8, 12*8, 13*8, 14*8, 15*8 },
1424   16*8   /* every sprite takes 16 consecutive bytes */
1430   16,16,                                   /* 16*16 sprites */
1431   RGN_FRAC(1,2),                           /* 256 sprites */
1432   2,                                       /* 2 bits per pixel */
1433   { RGN_FRAC(1,2), RGN_FRAC(0,2) },       /* the two bitplanes are separated */
1434   { STEP8(0,1), STEP8(RGN_FRAC(1,4),1) }, /* the two halves of the sprite are separated */
1435   { STEP16(0,8) },
1436   16*8                                   /* every sprite takes 16 consecutive bytes */
14251437};
14261438
14271439static GFXDECODE_START( dkong )
1428   GFXDECODE_ENTRY( REGION_GFX1, 0x0000, charlayout,   0, 64 )
1429   GFXDECODE_ENTRY( REGION_GFX2, 0x0000, spritelayout, 0, 64 )
1440   GFXDECODE_ENTRY( REGION_GFX1, 0x0000, gfx_8x8x2_planar,   0, 64 )
1441   GFXDECODE_ENTRY( REGION_GFX2, 0x0000, spritelayout,       0, 64 )
14301442GFXDECODE_END
14311443
14321444static GFXDECODE_START( pestplce )
1433   GFXDECODE_ENTRY( REGION_GFX1, 0x0000, charlayout,            0, 64 )
1434   GFXDECODE_ENTRY( REGION_GFX2, 0x0000, pestplce_spritelayout, 0, 64 )
1445   GFXDECODE_ENTRY( REGION_GFX1, 0x0000, gfx_8x8x2_planar,         0, 64 )
1446   GFXDECODE_ENTRY( REGION_GFX2, 0x0000, pestplce_spritelayout,   0, 64 )
14351447GFXDECODE_END
14361448
1437/*************************************
1438 *
1439 *  Sound interfaces
1440 *
1441 *************************************/
14421449
1443
14441450/*************************************
14451451 *
14461452 *  Machine driver
r1418r1419
15271533
15281534MACHINE_DRIVER_END
15291535
1530static MACHINE_DRIVER_START( epos )
1531
1532   MDRV_IMPORT_FROM(dkong2b)
1533
1534   MDRV_CPU_MODIFY("main")
1535   MDRV_CPU_IO_MAP(epos_readport,0)
1536
1537MACHINE_DRIVER_END
1538
15391536static MACHINE_DRIVER_START( dkong3 )
15401537
15411538   /* driver data */
15421539   MDRV_DRIVER_DATA(dkong_state)
15431540
15441541   /* basic machine hardware */
1545   MDRV_CPU_ADD(Z80,8000000/2)   /* 4 MHz */
1542   MDRV_CPU_ADD_TAG("main", Z80, 8000000/2)   /* 4 MHz */
15461543   MDRV_CPU_PROGRAM_MAP(dkong3_map, 0)
15471544   MDRV_CPU_IO_MAP(0, dkong3_io_map)
15481545   MDRV_CPU_VBLANK_INT(nmi_line_pulse,1)
r1418r1419
16281625   MDRV_CPU_IO_MAP(shootgal_io_map, 0)
16291626MACHINE_DRIVER_END
16301627
1631
16321628static MACHINE_DRIVER_START( dkong3b )
16331629
16341630   /* basic machine hardware */
r1418r1419
16361632   MDRV_PALETTE_INIT(dkong3)
16371633MACHINE_DRIVER_END
16381634
1639
16401635static MACHINE_DRIVER_START( strtheat )
16411636   /* basic machine hardware */
1642   MDRV_IMPORT_FROM(epos)
1637   MDRV_IMPORT_FROM(dkong2b)
1638
1639   MDRV_CPU_MODIFY("main")
1640   MDRV_CPU_IO_MAP(epos_readport,0)
1641
16431642   MDRV_MACHINE_RESET(strtheat)
16441643MACHINE_DRIVER_END
16451644
16461645static MACHINE_DRIVER_START( drakton )
16471646   /* basic machine hardware */
1648   MDRV_IMPORT_FROM(epos)
1647   MDRV_IMPORT_FROM(dkong2b)
1648
1649   MDRV_CPU_MODIFY("main")
1650   MDRV_CPU_IO_MAP(epos_readport,0)
1651
16491652   MDRV_MACHINE_RESET(drakton)
16501653MACHINE_DRIVER_END
16511654
1655static MACHINE_DRIVER_START( drktnjr )
1656   /* basic machine hardware */
1657   MDRV_IMPORT_FROM(dkongjr)
16521658
1659   MDRV_CPU_MODIFY("main")
1660   MDRV_CPU_IO_MAP(epos_readport,0)
1661
1662   MDRV_MACHINE_RESET(drakton)
1663MACHINE_DRIVER_END
1664
16531665/*************************************
16541666 *
16551667 *  ROM definitions
r1418r1419
16641676   ROM_LOAD( "trs2c5kc",     0x3000, 0x1000, CRC(1f0101f7) SHA1(b9f988847fdefa64dfeae06c2244215cb0d64dbe) )
16651677   /* space for diagnostic ROM */
16661678
1667   ROM_REGION( 0x1000, REGION_CPU2, 0 )   /* sound */
1679   ROM_REGION( 0x1800, REGION_CPU2, 0 )   /* sound */
16681680   ROM_LOAD( "trs2s3i",      0x0000, 0x0800, CRC(78034f14) SHA1(548b44ac69f39df6687da1c0f60968009b1e0767) )
1681   ROM_RELOAD(               0x0800, 0x0800 )
1682   ROM_FILL(                 0x1000, 0x0800, 0xFF )
16691683   /* socket 3J is empty */
16701684
16711685   ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE )
r1418r1419
16951709   ROM_LOAD( "trs01_5k",     0x3000, 0x1000, CRC(1f0101f7) SHA1(b9f988847fdefa64dfeae06c2244215cb0d64dbe) )
16961710   /* space for diagnostic ROM */
16971711
1698   //FIXME other drivers need to be updated
1699   ROM_REGION( 0x1000, REGION_CPU2, 0 )   /* sound */
1700   ROM_LOAD( "trs015aa.bin",      0x0000, 0x0800, CRC(5166554c) SHA1(00bf501ca448929f6187598da6fdbc1ea488745a) )
1712   ROM_REGION( 0x1800, REGION_CPU2, 0 )   /* sound */
1713   ROM_LOAD( "trs015aa.bin", 0x0000, 0x0800, CRC(5166554c) SHA1(00bf501ca448929f6187598da6fdbc1ea488745a) )
1714   ROM_RELOAD(               0x0800, 0x0800 )
1715   ROM_FILL(                 0x1000, 0x0800, 0xFF )
17011716
17021717   ROM_REGION( 0x0800, REGION_SOUND1, 0 )   /* speech rom */
17031718   ROM_LOAD( "trs014ha.bin",      0x0000, 0x0800, CRC(d1f1b48c) SHA1(ee5584368d2e9f7bde271f5004585b53f5ff5c3f) ) // speech rom
r1418r1419
17361751   ROM_LOAD( "c_5at_g.bin",  0x3000, 0x1000, CRC(b9005ac0) SHA1(3fe3599f6fa7c496f782053ddf7bacb453d197c4) )
17371752   /* space for diagnostic ROM */
17381753
1739   ROM_REGION( 0x1000, REGION_CPU2, 0 )   /* sound */
1754   ROM_REGION( 0x1800, REGION_CPU2, 0 )   /* sound */
17401755   ROM_LOAD( "s_3i_b.bin",   0x0000, 0x0800, CRC(45a4ed06) SHA1(144d24464c1f9f01894eb12f846952290e6e32ef) )
1741   ROM_LOAD( "s_3j_b.bin",   0x0800, 0x0800, CRC(4743fe92) SHA1(6c82b57637c0212a580591397e6a5a1718f19fd2) )
1756   ROM_RELOAD(               0x0800, 0x0800 )
1757   ROM_LOAD( "s_3j_b.bin",   0x1000, 0x0800, CRC(4743fe92) SHA1(6c82b57637c0212a580591397e6a5a1718f19fd2) )
17421758
17431759   ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE )
17441760   ROM_LOAD( "v_5h_b.bin",   0x0000, 0x0800, CRC(12c8c95d) SHA1(a57ff5a231c45252a63b354137c920a1379b70a3) )
r1418r1419
17641780   ROM_LOAD( "tkg3c.5k",     0x3000, 0x1000, CRC(553b89bb) SHA1(61611df9e2748fdcd31821038dcc0e16dc933873) )
17651781   /* space for diagnostic ROM */
17661782
1767   ROM_REGION( 0x1000, REGION_CPU2, 0 )   /* sound */
1783   ROM_REGION( 0x1800, REGION_CPU2, 0 )   /* sound */
17681784   ROM_LOAD( "s_3i_b.bin",   0x0000, 0x0800, CRC(45a4ed06) SHA1(144d24464c1f9f01894eb12f846952290e6e32ef) )
1769   ROM_LOAD( "s_3j_b.bin",   0x0800, 0x0800, CRC(4743fe92) SHA1(6c82b57637c0212a580591397e6a5a1718f19fd2) )
1785   ROM_RELOAD(               0x0800, 0x0800 )
1786   ROM_LOAD( "s_3j_b.bin",   0x1000, 0x0800, CRC(4743fe92) SHA1(6c82b57637c0212a580591397e6a5a1718f19fd2) )
17701787
17711788   ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE )
17721789   ROM_LOAD( "v_5h_b.bin",   0x0000, 0x0800, CRC(12c8c95d) SHA1(a57ff5a231c45252a63b354137c920a1379b70a3) )
r1418r1419
17911808   ROM_LOAD( "5h.cpu",       0x2000, 0x1000, CRC(ff31ac89) SHA1(9626a9e6df0d1b0ff273dbbe986f670200f91f75) )
17921809   ROM_LOAD( "c_5k_b.bin",   0x3000, 0x1000, CRC(394d6007) SHA1(57e5ae76ef5d4a2fa9cd860b6c6be03b6d5ed5ba) )
17931810
1794   ROM_REGION( 0x1000, REGION_CPU2, 0 )   /* sound */
1811   ROM_REGION( 0x1800, REGION_CPU2, 0 )   /* sound */
17951812   ROM_LOAD( "s_3i_b.bin",   0x0000, 0x0800, CRC(45a4ed06) SHA1(144d24464c1f9f01894eb12f846952290e6e32ef) )
1796   ROM_LOAD( "s_3j_b.bin",   0x0800, 0x0800, CRC(4743fe92) SHA1(6c82b57637c0212a580591397e6a5a1718f19fd2) )
1813   ROM_RELOAD(               0x0800, 0x0800 )
1814   ROM_LOAD( "s_3j_b.bin",   0x1000, 0x0800, CRC(4743fe92) SHA1(6c82b57637c0212a580591397e6a5a1718f19fd2) )
17971815
17981816   ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE )
17991817   ROM_LOAD( "v_5h_b.bin",   0x0000, 0x0800, CRC(12c8c95d) SHA1(a57ff5a231c45252a63b354137c920a1379b70a3) )
r1418r1419
18181836   ROM_LOAD( "c_5h_b.bin",   0x2000, 0x1000, CRC(1d28895d) SHA1(63792cab215fc2a7b0e8ee61d8115045571e9d42) )
18191837   ROM_LOAD( "c_5k_b.bin",   0x3000, 0x1000, CRC(394d6007) SHA1(57e5ae76ef5d4a2fa9cd860b6c6be03b6d5ed5ba) )
18201838
1821   ROM_REGION( 0x1000, REGION_CPU2, 0 )   /* sound */
1839   ROM_REGION( 0x1800, REGION_CPU2, 0 )   /* sound */
18221840   ROM_LOAD( "s_3i_b.bin",   0x0000, 0x0800, CRC(45a4ed06) SHA1(144d24464c1f9f01894eb12f846952290e6e32ef) )
1823   ROM_LOAD( "s_3j_b.bin",   0x0800, 0x0800, CRC(4743fe92) SHA1(6c82b57637c0212a580591397e6a5a1718f19fd2) )
1841   ROM_RELOAD(               0x0800, 0x0800 )
1842   ROM_LOAD( "s_3j_b.bin",   0x1000, 0x0800, CRC(4743fe92) SHA1(6c82b57637c0212a580591397e6a5a1718f19fd2) )
18241843
18251844   ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE )
18261845   ROM_LOAD( "v_5h_b.bin",   0x0000, 0x0800, CRC(12c8c95d) SHA1(a57ff5a231c45252a63b354137c920a1379b70a3) )
r1418r1419
18451864   ROM_LOAD( "c_5h_b.bin",   0x2000, 0x1000, CRC(1d28895d) SHA1(63792cab215fc2a7b0e8ee61d8115045571e9d42) )
18461865   ROM_LOAD( "5k.bin",       0x3000, 0x1000, CRC(7961599c) SHA1(698a4c2b8d67840dca7526efb1ac0d3370a86925) )
18471866
1848   ROM_REGION( 0x1000, REGION_CPU2, 0 )   /* sound */
1867   ROM_REGION( 0x1800, REGION_CPU2, 0 )   /* sound */
18491868   ROM_LOAD( "s_3i_b.bin",   0x0000, 0x0800, CRC(45a4ed06) SHA1(144d24464c1f9f01894eb12f846952290e6e32ef) )
1850   ROM_LOAD( "s_3j_b.bin",   0x0800, 0x0800, CRC(4743fe92) SHA1(6c82b57637c0212a580591397e6a5a1718f19fd2) )
1869   ROM_RELOAD(               0x0800, 0x0800 )
1870   ROM_LOAD( "s_3j_b.bin",   0x1000, 0x0800, CRC(4743fe92) SHA1(6c82b57637c0212a580591397e6a5a1718f19fd2) )
18511871
18521872   ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE )
18531873   ROM_LOAD( "v_5h_b.bin",   0x0000, 0x0800, CRC(12c8c95d) SHA1(a57ff5a231c45252a63b354137c920a1379b70a3) )
r1418r1419
21602180   ROM_LOAD( "hb.5b",        0x4000, 0x1000, CRC(4cde80f3) SHA1(3d93d8e454b2c517971a99c5700b6e943f975a11) )
21612181   ROM_LOAD( "hb.5a",        0x6000, 0x1000, CRC(d60ef5b2) SHA1(b2b5528cb837d58ef632d7670820ad8b07e5af1b) )
21622182
2163   ROM_REGION( 0x1000, REGION_CPU2, 0 )   /* sound */
2183   ROM_REGION( 0x1800, REGION_CPU2, 0 )   /* sound */
21642184   ROM_LOAD( "hb.3h",        0x0000, 0x0800, CRC(a3c240d4) SHA1(8cb6057ca617909c73b09988ba65a1176696cb5d) )
2185   ROM_RELOAD(               0x0800, 0x0800 )
2186   ROM_FILL(                 0x1000, 0x0800, 0xFF )
21652187
21662188   ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE )
21672189   ROM_LOAD( "hb.3n",        0x0000, 0x0800, CRC(443ed5ac) SHA1(febed689e03abf25452aab6eff85ea01883e929c) )
r1418r1419
21732195   ROM_LOAD( "hb.7e",        0x1000, 0x0800, CRC(f845e8ca) SHA1(4bedbbc74a637f6d60b3b2dbf41efc7390ee9091) )
21742196   ROM_LOAD( "hb.7f",        0x1800, 0x0800, CRC(52d20fea) SHA1(e3825f75f312d1e256f78a89098e328e8f307577) )
21752197
2176   ROM_REGION( 0x0500, REGION_PROMS, 0 )
2198   ROM_REGION( 0x0300, REGION_PROMS, 0 )
21772199   ROM_LOAD( "hbprom.2e",    0x0000, 0x0100, CRC(37aab98f) SHA1(0b002ab82158854bdd4a9db05eee037711017313) )   /* palette low 4 bits (inverted) */
21782200   ROM_LOAD( "hbprom.2f",    0x0100, 0x0100, CRC(845b8dcc) SHA1(eebd0c024172e54b509f1f99d9159438d5f3a905) )   /* palette high 4 bits (inverted) */
21792201   ROM_LOAD( "hbprom.2n",    0x0200, 0x0100, CRC(dff9070a) SHA1(307b95749343b5106247d842f773b2b445faa156) )   /* character color codes on a per-column basis */
2180   ROM_LOAD( "82s147.prm",   0x0300, 0x0200, CRC(46e5bc92) SHA1(f4171f8650818c017d58ad7131a7aff100b1b99c) )   /* address mapping */
21812202
2203   ROM_REGION( 0x0200, REGION_USER1, 0 )
2204   ROM_LOAD( "82s147.prm",   0x0000, 0x0200, CRC(46e5bc92) SHA1(f4171f8650818c017d58ad7131a7aff100b1b99c) )   /* address mapping */
2205
21822206   ROM_REGION( 0x0100, REGION_PLDS, ROMREGION_DISPOSE )
21832207   ROM_LOAD( "pls153h.bin", 0x0000, 0x00eb, NO_DUMP ) /* missing - pls153 ??? */
21842208ROM_END
r1418r1419
21902214   ROM_LOAD( "sb-dk.as",     0x4000, 0x1000, CRC(e6d200f3) SHA1(3787334df76e629baa9ef5362495cd3af7777358) )
21912215   ROM_LOAD( "sb-dk.5a",     0x6000, 0x1000, CRC(ca41ca56) SHA1(d862172b1cc6639d540efc140b63d1a598f75656) )
21922216
2193   ROM_REGION( 0x1000, REGION_CPU2, 0 )   /* sound */
2217   ROM_REGION( 0x1800, REGION_CPU2, 0 )   /* sound */
21942218   ROM_LOAD( "sb-dk.3h",     0x0000, 0x0800, CRC(13e60b6e) SHA1(f5dca15db0f1a225ff0116726bb055bb7b9655cc) )
2219   ROM_RELOAD(               0x0800, 0x0800 )
2220   ROM_FILL(                 0x1000, 0x0800, 0xFF )
21952221
21962222   ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE )
21972223   ROM_LOAD( "sb-dk.3n",     0x0000, 0x0800, CRC(b1d76b59) SHA1(aed57ec67d80abdff1a4bfc3a713fa01c0dd15a2) )
r1418r1419
22072233   ROM_LOAD( "sb.2e",        0x0000, 0x0100, CRC(4f06f789) SHA1(0b2775dd8da1c20121639871ed291a015a34e1f6) )
22082234   ROM_LOAD( "sb.2f",        0x0100, 0x0100, CRC(2c15b1b2) SHA1(7c80eb77ba47e2f4d889fc10663a0391d4329a1d) )
22092235   ROM_LOAD( "sb.2n",        0x0200, 0x0100, CRC(dff9070a) SHA1(307b95749343b5106247d842f773b2b445faa156) )
2210   ROM_LOAD( "82s147.prm",   0x0300, 0x0200, CRC(46e5bc92) SHA1(f4171f8650818c017d58ad7131a7aff100b1b99c) )   /* address mapping */
22112236
2237   ROM_REGION( 0x0200, REGION_USER1, 0 )
2238   ROM_LOAD( "82s147.prm",   0x0000, 0x0200, CRC(46e5bc92) SHA1(f4171f8650818c017d58ad7131a7aff100b1b99c) )   /* address mapping */
2239
22122240   ROM_REGION( 0x0100, REGION_PLDS, ROMREGION_DISPOSE )
22132241   ROM_LOAD( "pls153h.bin", 0x0000, 0x00eb, NO_DUMP ) /* missing - pls153 ??? */
22142242ROM_END
r1418r1419
22202248   ROM_LOAD( "5h.cpu",        0x4000, 0x1000, CRC(c0daf551) SHA1(f39058fa05ad69e839e7c0281cb1fad80cfa3134) )
22212249   ROM_LOAD( "5k.cpu",        0x6000, 0x1000, CRC(67442242) SHA1(0241281e8cc721f7fe22822f2cf168c2eed7983d) )
22222250
2223   ROM_REGION( 0x1000, REGION_CPU2, 0 )   /* sound */
2251   ROM_REGION( 0x1800, REGION_CPU2, 0 )   /* sound */
22242252   ROM_LOAD( "3i.snd",        0x0000, 0x0800, CRC(20e30406) SHA1(e2b9c6b731e53651d26455c2753a6dc3d5e9d066) )
2253   ROM_RELOAD(               0x0800, 0x0800 )
2254   ROM_FILL(                 0x1000, 0x0800, 0xFF )
22252255
22262256   ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE )
22272257   ROM_LOAD( "5h.vid",        0x0000, 0x0800, CRC(ea2a2547) SHA1(ec714abe43ab86ef615e1105688bf3df209c8f5f) )
r1418r1419
22372267   ROM_LOAD( "74s287.2k",     0x0000, 0x0100, CRC(7dc0a381) SHA1(7d974b2249392160e3b800e7113d4899c3600b7f) ) /* palette high 4 bits (inverted) */
22382268   ROM_LOAD( "74s287.2j",     0x0100, 0x0100, CRC(0a440c00) SHA1(e3249a646cd8aa50739e09ae101e796ea3aac37a) ) /* palette low 4 bits (inverted) */
22392269   ROM_LOAD( "74s287.vid",    0x0200, 0x0100, CRC(5a3446cc) SHA1(158de015006e6c400cb7ee758fda7ff760eb5835) ) /* character color codes on a per-column basis */
2240   ROM_LOAD( "82s147.hh",     0x0300, 0x0200, CRC(46e5bc92) SHA1(f4171f8650818c017d58ad7131a7aff100b1b99c) )   /* address mapping */
22412270
2271   ROM_REGION( 0x0200, REGION_USER1, 0 )
2272   ROM_LOAD( "82s147.hh",     0x0000, 0x0200, CRC(46e5bc92) SHA1(f4171f8650818c017d58ad7131a7aff100b1b99c) )   /* address mapping */
2273
22422274   ROM_REGION( 0x0100, REGION_PLDS, ROMREGION_DISPOSE )
22432275   ROM_LOAD( "pls153h.bin", 0x0000, 0x00eb, CRC(d6a04bcc) SHA1(ef1ed4311869d46dec95c2bfb31875c2f022da4f) )
22442276ROM_END
r1418r1419
22552287   ROM_CONTINUE(             0x6000, 0x0e00 )
22562288   ROM_CONTINUE(             0x2e00, 0x0200 )
22572289
2258   ROM_REGION( 0x1000, REGION_CPU2, 0 )   /* sound */
2290   ROM_REGION( 0x1800, REGION_CPU2, 0 )   /* sound */
22592291   ROM_LOAD( "silver.3h",    0x0000, 0x0800, CRC(67863ce9) SHA1(2b78e3d32a64cdef34afc476fed7ff0ab6a0277c) )
2292   ROM_RELOAD(               0x0800, 0x0800 )
2293   ROM_FILL(                 0x1000, 0x0800, 0xFF )
22602294
22612295   ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE )
22622296   ROM_LOAD( "pnk.3n",       0x0000, 0x0800, CRC(574dfd7a) SHA1(78bbe4ea83fdaec14ca92ceae03e8a3d0877d14b) )
r1418r1419
22722306   ROM_LOAD( "82s129.2e",    0x0000, 0x0100, CRC(da4b47e6) SHA1(2cfc7d489002113eb91048cc29d24831dadbfabb) )   /* palette low 4 bits (inverted) */
22732307   ROM_LOAD( "82s129.2f",    0x0100, 0x0100, CRC(96e213a4) SHA1(38f21e7bce96fd2159aa61e64d66aa574d85873c) )   /* palette high 4 bits (inverted) */
22742308   ROM_LOAD( "82s126.2n",    0x0200, 0x0100, CRC(37aece4b) SHA1(08dbb470644278132b8126649fe41d70e7750bee) )   /* character color codes on a per-column basis */
2275   ROM_LOAD( "82s147.prm",   0x0300, 0x0200, BAD_DUMP CRC(46e5bc92) SHA1(f4171f8650818c017d58ad7131a7aff100b1b99c) )   /* no dump - taken from hunchbkd */
22762309
2310   ROM_REGION( 0x0200, REGION_USER1, 0 )
2311   ROM_LOAD( "82s147.prm",  0x0000, 0x0200, BAD_DUMP CRC(46e5bc92) SHA1(f4171f8650818c017d58ad7131a7aff100b1b99c) )   /* no dump - taken from hunchbkd */
2312
22772313   ROM_REGION( 0x0100, REGION_PLDS, ROMREGION_DISPOSE )
22782314   ROM_LOAD( "pls153h.bin", 0x0000, 0x00eb, NO_DUMP ) /* missing - pls153 ??? */
22792315ROM_END
r1418r1419
22882324   ROM_LOAD( "2764.8f",      0x4000, 0x1000, CRC(835e0074) SHA1(187358973f595033a4745759f554a3dfd398889b) )
22892325   ROM_CONTINUE(             0x6000, 0x1000 )
22902326
2291   ROM_REGION( 0x1000, REGION_CPU2, 0 )   /* sound */
2327   ROM_REGION( 0x1800, REGION_CPU2, 0 )   /* sound */
22922328   ROM_LOAD( "2716.3h",      0x0000, 0x0800, CRC(caf57bef) SHA1(60c19c65bf312b36c68631ccea5434ad8cf0f3df) )
2329   ROM_RELOAD(               0x0800, 0x0800 )
2330   ROM_FILL(                 0x1000, 0x0800, 0xFF )
22932331
22942332   ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE )
22952333   ROM_LOAD( "pnk.3n",       0x0000, 0x0800, CRC(574dfd7a) SHA1(78bbe4ea83fdaec14ca92ceae03e8a3d0877d14b) )
r1418r1419
23052343   ROM_LOAD( "82s129.2e",    0x0000, 0x0100, CRC(da4b47e6) SHA1(2cfc7d489002113eb91048cc29d24831dadbfabb) )   /* palette low 4 bits (inverted) */
23062344   ROM_LOAD( "82s129.2f",    0x0100, 0x0100, CRC(96e213a4) SHA1(38f21e7bce96fd2159aa61e64d66aa574d85873c) )   /* palette high 4 bits (inverted) */
23072345   ROM_LOAD( "82s126.2n",    0x0200, 0x0100, CRC(37aece4b) SHA1(08dbb470644278132b8126649fe41d70e7750bee) )   /* character color codes on a per-column basis */
2308   ROM_LOAD( "82s147.prm",   0x0300, 0x0200, BAD_DUMP CRC(46e5bc92) SHA1(f4171f8650818c017d58ad7131a7aff100b1b99c) )   /* no dump - taken from hunchbkd */
23092346
2347   ROM_REGION( 0x0200, REGION_USER1, 0 )
2348   ROM_LOAD( "82s147.prm",  0x0000, 0x0200, BAD_DUMP CRC(46e5bc92) SHA1(f4171f8650818c017d58ad7131a7aff100b1b99c) )   /* no dump - taken from hunchbkd */
2349
23102350   ROM_REGION( 0x0100, REGION_PLDS, ROMREGION_DISPOSE )
23112351   ROM_LOAD( "pls153h.bin", 0x0000, 0x00eb, NO_DUMP ) /* missing - pls153 ??? */
23122352ROM_END
r1418r1419
23322372   ROM_LOAD( "82s126.2e",    0x0000, 0x0100, CRC(b3751a25) SHA1(4b444e8fd02ac8674ecaba2fee083cb9feb99fa0) )
23332373   ROM_LOAD( "82s126.2f",    0x0100, 0x0100, CRC(1026d438) SHA1(927009e6ed520c39c36c1d7966589c6778df1a3a) )
23342374   ROM_LOAD( "82s126.2n",    0x0200, 0x0100, CRC(9735998d) SHA1(c3f50f97369547b1fd25da64507a5c8b725de6d0) )
2335   ROM_LOAD( "82s147.prm",   0x0300, 0x0200, BAD_DUMP CRC(46e5bc92) SHA1(f4171f8650818c017d58ad7131a7aff100b1b99c) )   /* no dump - taken from hunchbkd */
23362375
2376   ROM_REGION( 0x0200, REGION_USER1, 0 )
2377   ROM_LOAD( "82s147.prm",  0x0000, 0x0200, BAD_DUMP CRC(46e5bc92) SHA1(f4171f8650818c017d58ad7131a7aff100b1b99c) )   /* no dump - taken from hunchbkd */
2378
23372379   ROM_REGION( 0x0100, REGION_PLDS, ROMREGION_DISPOSE )
23382380   ROM_LOAD( "pls153h.bin", 0x0000, 0x00eb, NO_DUMP ) /* missing - pls153 ??? */
23392381ROM_END
r1418r1419
23592401   ROM_LOAD( "spfc2.2e",     0x0000, 0x0100, CRC(b3751a25) SHA1(4b444e8fd02ac8674ecaba2fee083cb9feb99fa0) )
23602402   ROM_LOAD( "spfc2.2f",     0x0100, 0x0100, CRC(1026d438) SHA1(927009e6ed520c39c36c1d7966589c6778df1a3a) )
23612403   ROM_LOAD( "spfc2.2n",     0x0200, 0x0100, CRC(9735998d) SHA1(c3f50f97369547b1fd25da64507a5c8b725de6d0) )
2362   ROM_LOAD( "82s147.prm",   0x0300, 0x0200, BAD_DUMP CRC(46e5bc92) SHA1(f4171f8650818c017d58ad7131a7aff100b1b99c) )   /* no dump - taken from hunchbkd */
23632404
2405   ROM_REGION( 0x0200, REGION_USER1, 0 )
2406   ROM_LOAD( "82s147.prm",  0x0000, 0x0200, BAD_DUMP CRC(46e5bc92) SHA1(f4171f8650818c017d58ad7131a7aff100b1b99c) )   /* no dump - taken from hunchbkd */
2407
23642408   ROM_REGION( 0x0100, REGION_PLDS, ROMREGION_DISPOSE )
23652409   ROM_LOAD( "pls153h.bin", 0x0000, 0x00eb, NO_DUMP ) /* missing - pls153 ??? */
23662410ROM_END
r1418r1419
23752419   ROM_LOAD( "8b-dk.5b",     0x4000, 0x1000, CRC(f836a962) SHA1(5a45514ea59cd92092523d116b0dc4a1f8fc46b7) )
23762420   ROM_LOAD( "8b-dk.5a",     0x6000, 0x1000, CRC(d45866d4) SHA1(5dfb121aa87bc5e6efadd9412b9f8d360c3dabd3) )
23772421
2378   ROM_REGION( 0x1000, REGION_CPU2, 0 )   /* sound */
2422   ROM_REGION( 0x1800, REGION_CPU2, 0 )   /* sound */
23792423   ROM_LOAD( "8b-dk.3h",     0x0000, 0x0800, CRC(a8752c60) SHA1(0d7d35fd271d796e884a33071b83c000b91208a0) )
2424   ROM_RELOAD(               0x0800, 0x0800 )
2425   ROM_FILL(                 0x1000, 0x0800, 0xFF )
23802426
23812427   ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE )
23822428   ROM_LOAD( "8b-dk.3n",     0x0000, 0x0800, CRC(44830867) SHA1(29d34792b9193edcdac427367c360d6f01e1e094) )
r1418r1419
23922438   ROM_LOAD( "8b.2e",        0x0000, 0x0100, CRC(c7379a12) SHA1(e128e7d7c71ec61b934651c29648d0d2fc69e306) )
23932439   ROM_LOAD( "8b.2f",        0x0100, 0x0100, CRC(116612b4) SHA1(9a7c5329f211b13d5a757fdac761d7096d78b65a) )
23942440   ROM_LOAD( "8b.2n",        0x0200, 0x0100, CRC(30586988) SHA1(a9c246fd01cb3ff371ad33b55d5b2fe4898c4d1b) )
2395   ROM_LOAD( "82s147.prm",   0x0300, 0x0200, BAD_DUMP CRC(46e5bc92) SHA1(f4171f8650818c017d58ad7131a7aff100b1b99c) )   /* no dump - taken from hunchbkd */
23962441
2442   ROM_REGION( 0x0200, REGION_USER1, 0 )
2443   ROM_LOAD( "82s147.prm",  0x0000, 0x0200, BAD_DUMP CRC(46e5bc92) SHA1(f4171f8650818c017d58ad7131a7aff100b1b99c) )   /* no dump - taken from hunchbkd */
2444
23972445   ROM_REGION( 0x0100, REGION_PLDS, ROMREGION_DISPOSE )
23982446   ROM_LOAD( "pls153h.bin", 0x0000, 0x00eb, NO_DUMP ) /* missing - pls153 ??? */
23992447ROM_END
r1418r1419
24252473   ROM_LOAD( "8b.2e",        0x0000, 0x0100, CRC(c7379a12) SHA1(e128e7d7c71ec61b934651c29648d0d2fc69e306) )
24262474   ROM_LOAD( "8b.2f",        0x0100, 0x0100, CRC(116612b4) SHA1(9a7c5329f211b13d5a757fdac761d7096d78b65a) )
24272475   ROM_LOAD( "8b.2n",        0x0200, 0x0100, CRC(30586988) SHA1(a9c246fd01cb3ff371ad33b55d5b2fe4898c4d1b) )
2428   ROM_LOAD( "82s147.prm",   0x0300, 0x0200, BAD_DUMP CRC(46e5bc92) SHA1(f4171f8650818c017d58ad7131a7aff100b1b99c) )   /* no dump - taken from hunchbkd */
24292476
2477   ROM_REGION( 0x0200, REGION_USER1, 0 )
2478   ROM_LOAD( "82s147.prm",  0x0000, 0x0200, BAD_DUMP CRC(46e5bc92) SHA1(f4171f8650818c017d58ad7131a7aff100b1b99c) )   /* no dump - taken from hunchbkd */
2479
24302480   ROM_REGION( 0x0100, REGION_PLDS, ROMREGION_DISPOSE )
24312481   ROM_LOAD( "pls153h.bin", 0x0000, 0x00eb, NO_DUMP ) /* missing - pls153 ??? */
24322482ROM_END
r1418r1419
24372487   ROM_LOAD( "2764.u2",      0x0000, 0x2000, CRC(d9a33205) SHA1(06dc96412e7162fd8a4f6ef4d14d1510c06b1d00) )
24382488   ROM_LOAD( "2764.u3",      0x2000, 0x2000, CRC(69583a35) SHA1(061271be4e9ddfd8dff4217f1434215ad35ba505) )
24392489
2440   ROM_REGION( 0x1000, REGION_CPU2, 0 )   /* sound */
24412490   /* one is used for dkong conversions, the other one for dkongjr conversions */
2491   ROM_REGION( 0x1800, REGION_CPU2, 0 )   /* sound */
24422492   ROM_LOAD( "2716.3h",      0x0000, 0x0800, CRC(3489a35b) SHA1(9ebcf4b20b212d54e6b1a6d9abbda3109298631b) ) /* dkong */
2443   ROM_LOAD( "2716.3h1",     0x0800, 0x0800, CRC(2a6ec016) SHA1(c95e185a39c8029f00798ce0a00759a4deb45677) ) /* dkongjr */
2493   ROM_RELOAD(               0x0800, 0x0800 )
2494   ROM_FILL(                 0x1000, 0x0800, 0x00 )
24442495
24452496   ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE )
24462497   ROM_LOAD( "2716.3n",      0x0000, 0x0800, CRC(ea0e7f9a) SHA1(a8e2b43e15281d45e414eaae98e5248bad79c41b) )
r1418r1419
24592510ROM_END
24602511
24612512/* encrypted */
2513ROM_START( drktnjr )
2514   ROM_REGION( 0x20000, REGION_CPU1, 0 )   /* 64k for code + 4*16k for decrypted code */
2515   ROM_LOAD( "2764.u2",      0x0000, 0x2000, CRC(d9a33205) SHA1(06dc96412e7162fd8a4f6ef4d14d1510c06b1d00) )
2516   ROM_LOAD( "2764.u3",      0x2000, 0x2000, CRC(69583a35) SHA1(061271be4e9ddfd8dff4217f1434215ad35ba505) )
2517
2518   ROM_REGION( 0x1000, REGION_CPU2, 0 )   /* sound */
2519   /* one is used for dkong conversions, the other one for dkongjr conversions */
2520   ROM_LOAD( "2716.3h1",     0x0000, 0x0800, CRC(2a6ec016) SHA1(c95e185a39c8029f00798ce0a00759a4deb45677) ) /* dkongjr */
2521   //ROM_RELOAD(               0x0800, 0x0800 )
2522   //ROM_FILL(                 0x0800, 0x0800, 0xFF )
2523
2524   ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE )
2525   ROM_LOAD( "2716.3n",      0x0000, 0x0800, CRC(ea0e7f9a) SHA1(a8e2b43e15281d45e414eaae98e5248bad79c41b) )
2526   ROM_LOAD( "2716.3p",      0x0800, 0x0800, CRC(46f51b68) SHA1(7d1c3a61cdd0ad471cb0064c0cbaf758325fc267) )
2527
2528   ROM_REGION( 0x2000, REGION_GFX2, ROMREGION_DISPOSE )
2529   ROM_LOAD( "2716.7c",      0x0000, 0x0800, CRC(2925dc2d) SHA1(721748031714ba488191eb074643093c906e8ce2) )
2530   ROM_LOAD( "2716.7d",      0x0800, 0x0800, CRC(bdf6b1b4) SHA1(ea9076a2bba909bfae8a10a92d857e8f0644fc8b) )
2531   ROM_LOAD( "2716.7e",      0x1000, 0x0800, CRC(4d62e62f) SHA1(01e757110edcb24600a27b1505f54e3bd04b9e58) )
2532   ROM_LOAD( "2716.7f",      0x1800, 0x0800, CRC(81d200e5) SHA1(5eb74f319756ba3fbc6d0d918799337f911e9419) )
2533
2534   ROM_REGION( 0x0300, REGION_PROMS, 0 )
2535   ROM_LOAD( "82s126.2e",    0x0000, 0x0100, CRC(3ff45f76) SHA1(4068b5568f9e22e54f0df8a9e02bfed0bfb00db7) )
2536   ROM_LOAD( "82s126.2f",    0x0100, 0x0100, CRC(38f905be) SHA1(a963aea9a92ac95850c90c43085376cb4e06696b) )
2537   ROM_LOAD( "82s126.2n",    0x0200, 0x0100, CRC(3c343b9b) SHA1(f84f5fddcccc8499a2511877f5d706b37ddc7db8) )
2538ROM_END
2539
2540/* encrypted */
24622541ROM_START( strtheat )
24632542   ROM_REGION( 0x20000, REGION_CPU1, 0 )   /* 64k for code + 4*16k for decrypted code */
24642543   ROM_LOAD( "2764.u2",   0x0000, 0x2000, CRC(8d3e82c3) SHA1(ec26fb1c6015721da1f61eca76a4b3390d8dcc76) )
24652544   ROM_LOAD( "2764.u3",   0x2000, 0x2000, CRC(f0759e76) SHA1(e086f02d1861269194c4cd2ada71696b48ed1a1d) )
24662545
2467   ROM_REGION( 0x1000, REGION_CPU2, 0 )   /* sound */
2546   ROM_REGION( 0x1800, REGION_CPU2, 0 )   /* sound */
24682547   ROM_LOAD( "2716.3h",   0x0000, 0x0800, CRC(4cd17174) SHA1(5ed9b5275b0779d1ca05d6e62d3ad8a682ebde37) )
24692548   ROM_RELOAD(            0x0800, 0x0800 )
2549   ROM_FILL(              0x1000, 0x0800, 0xFF )
24702550
24712551   ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE )
24722552   ROM_LOAD( "2716.3n",   0x0000, 0x0800, CRC(29e57678) SHA1(cbbb980c44c7f5c45d5f0b85209658f53b7ba4a7) )
r1418r1419
25602640   ROM_LOAD( "sg-01snd",    0x0000, 0x1000, CRC(644a0728) SHA1(e249fd57bc49572a2246aaf7c68a547f319f51bc) ) //sg-01-snd
25612641   ROM_LOAD( "sg-01spk",    0x1000, 0x0800, CRC(aacaf730) SHA1(cd562093ab8931d165cb0877e332474fce131c67) ) //sg-01-spk
25622642
2563   ROM_REGION( 0x2000, REGION_USER1, 0 ) // gun proms?
2643   ROM_REGION( 0x2000, REGION_USER2, 0 ) // gun proms?
25642644   ROM_LOAD( "sg-1",        0x0000, 0x0200, CRC(fda82517) SHA1(b36bac69b6f8218b280aae59133ea0d22d7a99f6) )
25652645   ROM_LOAD( "sg-2",        0x0200, 0x091d, CRC(6e065613) SHA1(26d048af5c302f921de8e2c1bc7c7bf48dc21b5a) )
25662646
r1418r1419
25782658   ROM_LOAD( "sg-01-2e",    0x0000, 0x0200, CRC(34fb23ea) SHA1(6bd6de791c9e0a5f9c833c287663e9755e01c573) )
25792659   ROM_LOAD( "sg-01-2f",    0x0100, 0x0200, CRC(c29b880a) SHA1(950017a0298f91e41db9865ed8ce388f4095f6cf) )
25802660   ROM_LOAD( "sg-01-2n",    0x0200, 0x0200, CRC(e08ed788) SHA1(6982f6bcc70dbf4c75ff538a5df70da11bc89bb4) )
2661
2662   ROM_REGION( 0x0200, REGION_USER1, 0 )
2663   ROM_LOAD( "82s147.prm",  0x0000, 0x0200, BAD_DUMP CRC(46e5bc92) SHA1(f4171f8650818c017d58ad7131a7aff100b1b99c) )   /* no dump - taken from hunchbkd */
25812664ROM_END
25822665
25832666/*************************************
r1418r1419
26332716
26342717GAME( 1984, herbiedk, huncholy, herbiedk, herbiedk,       0,  ROT90, "CVS", "Herbie at the Olympics (DK conversion)", GAME_SUPPORTS_SAVE )
26352718
2636GAME( 1983, hunchbkd, hunchbak, hunchbkd, hunchbkd,       0,  ROT90, "Century Electronics", "Hunchback (DK conversion)", GAME_WRONG_COLORS | GAME_NOT_WORKING | GAME_SUPPORTS_SAVE )
2719GAME( 1983, hunchbkd, hunchbak, hunchbkd, hunchbkd,       0,  ROT90, "Century Electronics", "Hunchback (DK conversion)", GAME_SUPPORTS_SAVE )
26372720
26382721GAME( 1984, sbdk,     superbik,   hunchbkd, sbdk,            0,  ROT90, "Century Electronics", "Super Bike (DK conversion)", GAME_SUPPORTS_SAVE )
26392722
r1418r1419
26502733GAME( 1985, spclforc, 0,      spclforc, spclforc,       0,  ROT90, "Senko Industries (Magic Eletronics Inc. licence)", "Special Forces", GAME_NO_SOUND | GAME_SUPPORTS_SAVE )
26512734GAME( 1985, spcfrcii, 0,      spclforc, spclforc,       0,  ROT90, "Senko Industries (Magic Eletronics Inc. licence)", "Special Forces II", GAME_NO_SOUND | GAME_SUPPORTS_SAVE )
26522735
2653//FIXME: move DRIVER_INIT here
2654GAME( 1984, drakton,  0,        drakton,  drakton,  drakton,  ROT90, "Epos Corporation", "Drakton", GAME_SUPPORTS_SAVE )
2736GAME( 1984, drakton,  0,        drakton,  drakton,  drakton,  ROT90, "Epos Corporation", "Drakton (DK conversion)", GAME_SUPPORTS_SAVE )
2737GAME( 1984, drktnjr,  drakton,  drktnjr,  drakton,  drakton,  ROT90, "Epos Corporation", "Drakton (DKJr conversion)", GAME_SUPPORTS_SAVE )
26552738GAME( 1985, strtheat, 0,        strtheat, strtheat, strtheat, ROT90, "Epos Corporation", "Street Heat - Cardinal Amusements", GAME_SUPPORTS_SAVE )
src/mame/drivers/itech8.c
r1418r1419
26282628   memory_install_read8_handler (0, ADDRESS_SPACE_PROGRAM, 0x0180, 0x0180, 0, 0, slikshot_z80_r);
26292629   memory_install_read8_handler (0, ADDRESS_SPACE_PROGRAM, 0x01cf, 0x01cf, 0, 0, slikshot_z80_control_r);
26302630   memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0x01cf, 0x01cf, 0, 0, slikshot_z80_control_w);
2631
2632   slikshot_set_crosshair_range(116 - 80, 116 + 80);
26332631}
26342632
26352633
r1418r1419
26382636   memory_install_read8_handler (0, ADDRESS_SPACE_PROGRAM, 0x1180, 0x1180, 0, 0, slikshot_z80_r);
26392637   memory_install_read8_handler (0, ADDRESS_SPACE_PROGRAM, 0x11cf, 0x11cf, 0, 0, slikshot_z80_control_r);
26402638   memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0x11cf, 0x11cf, 0, 0, slikshot_z80_control_w);
2641
2642   slikshot_set_crosshair_range(186 - 40, 186 + 40);
26432639}
26442640
26452641
src/mame/drivers/tmnt.c
r1418r1419
43514351GAME( 1991, glfgreat, 0,        glfgreat, glfgreat, glfgreat, ROT0,  "Konami", "Golfing Greats", GAME_UNEMULATED_PROTECTION | GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
43524352GAME( 1991, glfgretj, glfgreat, glfgreat, glfgreat, glfgreat, ROT0,  "Konami", "Golfing Greats (Japan)", GAME_UNEMULATED_PROTECTION | GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
43534353
4354GAME( 1991, tmnt2,    0,        tmnt2,    ssridr4p, gfx,      ROT0,  "Konami", "Teenage Mutant Ninja Turtles - Turtles in Time (4 Players ver UAA)", GAME_UNEMULATED_PROTECTION ) // ver. UAA
4355GAME( 1991, tmnt2a,   tmnt2,    tmnt2,    ssrid4ps, gfx,      ROT0,  "Konami", "Teenage Mutant Ninja Turtles - Turtles in Time (4 Players ver ADA)", GAME_UNEMULATED_PROTECTION ) // ver. ADA
4356GAME( 1991, tmht22pe, tmnt2,    tmnt2,    ssriders, gfx,      ROT0,  "Konami", "Teenage Mutant Hero Turtles - Turtles in Time (2 Players ver EBA)",  GAME_UNEMULATED_PROTECTION ) // ver. EBA
4357GAME( 1991, tmnt22pu, tmnt2,    tmnt2,    ssriders, gfx,      ROT0,  "Konami", "Teenage Mutant Ninja Turtles - Turtles in Time (2 Players ver UDA)", GAME_UNEMULATED_PROTECTION ) // ver. UDA
4354GAME( 1991, tmnt2,    0,        tmnt2,    ssridr4p, gfx,      ROT0,  "Konami", "Teenage Mutant Ninja Turtles - Turtles in Time (4 Players ver UAA)", 0 ) // ver. UAA
4355GAME( 1991, tmnt2a,   tmnt2,    tmnt2,    ssrid4ps, gfx,      ROT0,  "Konami", "Teenage Mutant Ninja Turtles - Turtles in Time (4 Players ver ADA)", 0 ) // ver. ADA
4356GAME( 1991, tmht22pe, tmnt2,    tmnt2,    ssriders, gfx,      ROT0,  "Konami", "Teenage Mutant Hero Turtles - Turtles in Time (2 Players ver EBA)",  0 ) // ver. EBA
4357GAME( 1991, tmnt22pu, tmnt2,    tmnt2,    ssriders, gfx,      ROT0,  "Konami", "Teenage Mutant Ninja Turtles - Turtles in Time (2 Players ver UDA)", 0 ) // ver. UDA
43584358
43594359GAME( 1993, qgakumon, 0,        tmnt2,    qgakumon, gfx,      ROT0,  "Konami", "Quiz Gakumon no Susume (Japan ver. JA2 Type L)", 0 )
43604360
src/mame/drivers/raiden2.c
r1418r1419
14171417   ROM_LOAD( "r2_voi2.bin", 0x80000, 0x40000, CRC(8cf0d17e) SHA1(0fbe0b1e1ca5360c7c8329331408e3d799b4714c) )
14181418ROM_END
14191419
1420ROM_START( raiden2d )
1421   ROM_REGION( 0x200000, REGION_USER1, 0 ) /* v30 main cpu */
1422   ROM_LOAD16_BYTE("seibu1",   0x000000, 0x80000, CRC(c1fc70f5) SHA1(a054f5ae9583972c406d9cf871340d5e072d71a3) )
1423   ROM_LOAD16_BYTE("seibu2",   0x000001, 0x80000, CRC(28d5365f) SHA1(21efe29c2d373229c2ff302d86e59c2c94fa6d03) )
14201424
1425   ROM_REGION( 0x20000, REGION_CPU2, 0 ) /* 64k code for sound Z80 */
1426   ROM_LOAD( "seibu5",  0x000000, 0x10000, CRC(5db9f922) SHA1(8257aab98657fe44df19d2a48d85fcf65b3d98c6) )
1427
1428   ROM_REGION( 0x020000, REGION_GFX1, ROMREGION_DISPOSE ) /* chars */
1429   ROM_LOAD( "seibu7",   0x000000,   0x020000, CRC(c9ec9469) SHA1(a29f480a1bee073be7a177096ef58e1887a5af24) )
1430
1431   ROM_REGION( 0x400000, REGION_GFX2, ROMREGION_DISPOSE ) /* background gfx */
1432   ROM_LOAD( "bg1",   0x000000, 0x200000, CRC(e61ad38e) SHA1(63b06cd38db946ad3fc5c1482dc863ef80b58fec) )
1433   ROM_LOAD( "bg2",   0x200000, 0x200000, CRC(a694a4bb) SHA1(39c2614d0effc899fe58f735604283097769df77) )
1434
1435   ROM_REGION( 0x800000, REGION_GFX3, ROMREGION_DISPOSE ) /* sprite gfx (encrypted) */
1436   ROM_LOAD32_WORD( "obj1",  0x000000, 0x200000, CRC(ff08ef0b) SHA1(a1858430e8171ca8bab785457ef60e151b5e5cf1) )
1437   ROM_LOAD32_WORD( "obj2",  0x000002, 0x200000, CRC(638eb771) SHA1(9774cc070e71668d7d1d20795502dccd21ca557b) )
1438   ROM_LOAD32_WORD( "obj3",  0x400000, 0x200000, CRC(897a0322) SHA1(abb2737a2446da5b364fc2d96524b43d808f4126) )
1439   ROM_LOAD32_WORD( "obj4",  0x400002, 0x200000, CRC(b676e188) SHA1(19cc838f1ccf9c4203cd0e5365e5d99ff3a4ff0f) )
1440
1441   ROM_REGION( 0x100000, REGION_SOUND1, 0 )   /* ADPCM samples */
1442   ROM_LOAD( "seibu6", 0x00000, 0x40000, CRC(fb0fca23) SHA1(4b2217b121a66c5ab6015537609cf908ffedaf86) )
1443   ROM_LOAD( "r2_voi2.bin", 0x80000, 0x40000, CRC(8cf0d17e) SHA1(0fbe0b1e1ca5360c7c8329331408e3d799b4714c) )
1444ROM_END
1445
1446
14211447/*
14221448
14231449Raiden 2, Seibu License, Easy Version
r1418r1419
14851511   ROM_LOAD( "r2_voi2.bin", 0x80000, 0x40000, CRC(8cf0d17e) SHA1(0fbe0b1e1ca5360c7c8329331408e3d799b4714c) )
14861512ROM_END
14871513
1514
1515
14881516/* Raiden DX sets */
14891517
14901518/*
r1418r1419
22912319GAME( 1993, raiden2a, raiden2, raiden2,  raiden2,  raiden2,  ROT270, "Seibu Kaihatsu", "Raiden 2 (set 2, Metrotainment)", GAME_NOT_WORKING|GAME_NO_SOUND)
22922320GAME( 1993, raiden2b, raiden2, raiden2,  raiden2,  raiden2,  ROT270, "Seibu Kaihatsu", "Raiden 2 (set 3, Japan)", GAME_NOT_WORKING|GAME_NO_SOUND)
22932321GAME( 1993, raiden2c, raiden2, raiden2,  raiden2,  raiden2,  ROT270, "Seibu Kaihatsu", "Raiden 2 (set 4, Japan)", GAME_NOT_WORKING|GAME_NO_SOUND)
2294GAME( 1993, raiden2e, raiden2, raiden2,  raiden2,  raiden2,  ROT270, "Seibu Kaihatsu", "Raiden 2 (easier?)", GAME_NOT_WORKING|GAME_NO_SOUND)
2322GAME( 1993, raiden2d, raiden2, raiden2,  raiden2,  raiden2,  ROT270, "Seibu Kaihatsu", "Raiden 2 (set 5)", GAME_NOT_WORKING|GAME_NO_SOUND)
2323GAME( 1993, raiden2e, raiden2, raiden2,  raiden2,  raiden2,  ROT270, "Seibu Kaihatsu", "Raiden 2 (set 6, Easy Version)", GAME_NOT_WORKING|GAME_NO_SOUND)
22952324GAME( 1993, raidndx,  0,       raiden2,  raidendx, raiden2,  ROT270, "Seibu Kaihatsu", "Raiden DX (set 1)", GAME_NOT_WORKING|GAME_NO_SOUND)
22962325GAME( 1993, raidndxa, raidndx, raiden2,  raidendx, raiden2,  ROT270, "Seibu Kaihatsu", "Raiden DX (set 2)", GAME_NOT_WORKING|GAME_NO_SOUND)
22972326GAME( 1993, raidndxm, raidndx, raiden2,  raidendx, raiden2,  ROT270, "Seibu Kaihatsu", "Raiden DX (Metrotainment license)", GAME_NOT_WORKING|GAME_NO_SOUND)
src/mame/drivers/namcond1.c
r1418r1419
410410    ROM_LOAD( "ncs1voic.7c",     0x000000, 0x200000, CRC(ed05fd88) SHA1(ad88632c89a9946708fc6b4c9247e1bae9b2944b) )
411411ROM_END
412412
413GAME( 1995, ncv1,      0, namcond1, namcond1, namcond1, ROT90, "Namco", "Namco Classics Collection Vol.1", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS | GAME_SUPPORTS_SAVE )
414GAME( 1995, ncv1j,  ncv1, namcond1, namcond1, namcond1, ROT90, "Namco", "Namco Classics Collection Vol.1 (Japan, v1.00)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS | GAME_SUPPORTS_SAVE )
415GAME( 1995, ncv1j2, ncv1, namcond1, namcond1, namcond1, ROT90, "Namco", "Namco Classics Collection Vol.1 (Japan, v1.03)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS | GAME_SUPPORTS_SAVE )
416GAME( 1996, ncv2,      0, namcond1, namcond1, namcond1, ROT90, "Namco", "Namco Classics Collection Vol.2", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS | GAME_UNEMULATED_PROTECTION | GAME_SUPPORTS_SAVE )
417GAME( 1996, ncv2j,  ncv2, namcond1, namcond1, namcond1, ROT90, "Namco", "Namco Classics Collection Vol.2 (Japan)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS | GAME_UNEMULATED_PROTECTION | GAME_SUPPORTS_SAVE )
413GAME( 1995, ncv1,      0, namcond1, namcond1, namcond1, ROT90, "Namco", "Namco Classics Collection Vol.1", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS )
414GAME( 1995, ncv1j,  ncv1, namcond1, namcond1, namcond1, ROT90, "Namco", "Namco Classics Collection Vol.1 (Japan, v1.00)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS )
415GAME( 1995, ncv1j2, ncv1, namcond1, namcond1, namcond1, ROT90, "Namco", "Namco Classics Collection Vol.1 (Japan, v1.03)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS )
416GAME( 1996, ncv2,      0, namcond1, namcond1, namcond1, ROT90, "Namco", "Namco Classics Collection Vol.2", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS | GAME_UNEMULATED_PROTECTION )
417GAME( 1996, ncv2j,  ncv2, namcond1, namcond1, namcond1, ROT90, "Namco", "Namco Classics Collection Vol.2 (Japan)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS | GAME_UNEMULATED_PROTECTION )
src/mame/drivers/firebeat.c
r1418r1419
850850   cpunum_set_input_line(0, INPUT_LINE_IRQ4, ASSERT_LINE);
851851}
852852
853static void atapi_init(void)
853static void atapi_exit(running_machine* machine)
854854{
855   SCSIDeleteInstance(atapi_device_data[1]);
856   SCSIDeleteInstance(atapi_device_data[0]);
857}
858
859static void atapi_init(running_machine *machine)
860{
855861   memset(atapi_regs, 0, sizeof(atapi_regs));
856862
857863   atapi_regs[ATAPI_REG_CMDSTATUS] = 0;
r1418r1419
866872   SCSIAllocInstance( SCSI_DEVICE_CDROM, &atapi_device_data[0], 0 );
867873   // TODO: the slave drive can be either CD-ROM, DVD-ROM or HDD
868874   SCSIAllocInstance( SCSI_DEVICE_CDROM, &atapi_device_data[1], 1 );
875   add_exit_callback(machine, atapi_exit);
869876}
870877
871878static void atapi_reset(void)
r1418r1419
22442251{
22452252   UINT8 *rom = memory_region(REGION_USER2);
22462253
2247   atapi_init();
2254   atapi_init(machine);
22482255   intelflash_init(0, FLASH_FUJITSU_29F016A, NULL);
22492256   intelflash_init(1, FLASH_FUJITSU_29F016A, NULL);
22502257   intelflash_init(2, FLASH_FUJITSU_29F016A, NULL);
src/mame/drivers/seta.c
r1418r1419
5555P0-100-A                93 Quiz Kokology 2                  Tecmo
5656P0-101-1                94 Pro Mahjong Kiwame               Athena
5757PO-102-A                93 Mad Shark                        Allumer
58PO-107-A (prototype?)   94 Orbs (prototype?)                American Sammy
5859P0-114-A (SKB-001)      94 Krazy Bowl                       American Sammy
5960P0-117-A (DH-01)        95 Extreme Downhill                 Sammy Japan
6061P0-117-A?               95 Sokonuke Taisen Game             Sammy Industries
r1418r1419
19921993   AM_RANGE(0xf00000, 0xf00001) AM_WRITE(MWA16_NOP                  )   // ? Sound  IRQ Ack
19931994ADDRESS_MAP_END
19941995
1996/***************************************************************************
1997        orbs
1998***************************************************************************/
19951999
2000static ADDRESS_MAP_START( orbs_readmem, ADDRESS_SPACE_PROGRAM, 16 )
2001   AM_RANGE(0x000000, 0x07ffff) AM_READ(MRA16_ROM            )   // ROM
2002   AM_RANGE(0xf00000, 0xf0ffff) AM_READ(MRA16_RAM            )   // RAM
2003   AM_RANGE(0x100000, 0x100001) AM_READ(MRA16_NOP            )   // ?
2004   AM_RANGE(0x200000, 0x200001) AM_READ(MRA16_NOP            )   // ?
2005   AM_RANGE(0x300000, 0x300003) AM_READ(seta_dsw_r         )   // DSW
2006   AM_RANGE(0x500000, 0x500001) AM_READ(input_port_0_word_r   )   // P1
2007   AM_RANGE(0x500002, 0x500003) AM_READ(input_port_1_word_r   )   // P2
2008   AM_RANGE(0x500004, 0x500005) AM_READ(input_port_2_word_r   )   // Coins
2009   //AM_RANGE(0x600000, 0x60000f) AM_READ(krzybowl_input_r     )   // P1
2010   AM_RANGE(0x8000f0, 0x8000f1) AM_READ(MRA16_RAM            )   // NVRAM
2011   AM_RANGE(0x800100, 0x8001ff) AM_READ(MRA16_RAM            )   // NVRAM
2012   AM_RANGE(0xa00000, 0xa03fff) AM_READ(seta_sound_word_r      )   // Sound
2013   AM_RANGE(0xb00000, 0xb003ff) AM_READ(MRA16_RAM            )   // Palette
2014   AM_RANGE(0xc00000, 0xc03fff) AM_READ(MRA16_RAM            )   // Sprites Code + X + Attr
2015/**/AM_RANGE(0xd00000, 0xd00001) AM_READ(MRA16_RAM            )   // ? 0x4000
2016/**/AM_RANGE(0xe00000, 0xe00607) AM_READ(MRA16_RAM            )   // Sprites Y
2017ADDRESS_MAP_END
19962018
2019static ADDRESS_MAP_START( orbs_writemem, ADDRESS_SPACE_PROGRAM, 16 )
2020   AM_RANGE(0x000000, 0x07ffff) AM_WRITE(MWA16_ROM               )   // ROM
2021   AM_RANGE(0xf00000, 0xf0ffff) AM_WRITE(MWA16_RAM               )   // RAM
2022   AM_RANGE(0x400000, 0x400001) AM_WRITE(MWA16_NOP               )   // ?
2023   AM_RANGE(0x8000f0, 0x8000f1) AM_WRITE(MWA16_RAM               )   // NVRAM
2024   AM_RANGE(0x800100, 0x8001ff) AM_WRITE(MWA16_RAM               )   // NVRAM
2025   AM_RANGE(0xa00000, 0xa03fff) AM_WRITE(seta_sound_word_w         )   // Sound
2026   AM_RANGE(0xb00000, 0xb003ff) AM_WRITE(paletteram16_xRRRRRGGGGGBBBBB_word_w) AM_BASE(&paletteram16   )   // Palette
2027   AM_RANGE(0xc00000, 0xc03fff) AM_WRITE(MWA16_RAM) AM_BASE(&spriteram16_2   )   // Sprites Code + X + Attr
2028   AM_RANGE(0xd00000, 0xd00001) AM_WRITE(MWA16_RAM               )   // ? 0x4000
2029   AM_RANGE(0xe00000, 0xe00607) AM_WRITE(MWA16_RAM) AM_BASE(&spriteram16   )   // Sprites Y
2030ADDRESS_MAP_END
2031
2032
19972033/***************************************************************************
19982034                                Block Carnival
19992035***************************************************************************/
r1418r1419
60266062   PORT_DIPSETTING(      0x0000, DEF_STR( Free_Play ) )
60276063INPUT_PORTS_END
60286064
6065/***************************************************************************
6066                                Orbs
6067***************************************************************************/
60296068
6069static INPUT_PORTS_START( orbs )
6070   PORT_START_TAG("IN0") //Player 1
6071   JOY_TYPE1_1BUTTON(1)
6072
6073   PORT_START_TAG("IN1") //Player 2 ??
6074   JOY_TYPE1_1BUTTON(2)
6075
6076   PORT_START_TAG("IN2") //Coins
6077   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_IMPULSE(5)
6078   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) PORT_IMPULSE(5)
6079   PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_SERVICE1 ) PORT_IMPULSE(5)
6080   PORT_BIT(  0x0008, IP_ACTIVE_LOW,  IPT_UNKNOWN )
6081   PORT_BIT(  0x0010, IP_ACTIVE_LOW,  IPT_UNKNOWN )
6082   PORT_BIT(  0x0020, IP_ACTIVE_LOW,  IPT_UNKNOWN )
6083   PORT_BIT(  0x0040, IP_ACTIVE_LOW,  IPT_UNKNOWN )
6084   PORT_BIT(  0x0080, IP_ACTIVE_LOW,  IPT_UNKNOWN )
6085
6086   PORT_START_TAG("IN3") //2 DSWs - $600001 & 3.b
6087   PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Flip_Screen ) )
6088   PORT_DIPSETTING(      0x0001, DEF_STR( Off ) )
6089   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
6090   PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Demo_Sounds ) )
6091   PORT_DIPSETTING(      0x0000, DEF_STR( Off ) )
6092   PORT_DIPSETTING(      0x0002, DEF_STR( On ) )
6093   PORT_DIPNAME( 0x000c, 0x000c, DEF_STR( Difficulty ) )
6094   PORT_DIPSETTING(      0x0008, DEF_STR( Easy ) )
6095   PORT_DIPSETTING(      0x000c, DEF_STR( Normal ) )
6096   PORT_DIPSETTING(      0x0004, DEF_STR( Hard ) )
6097   PORT_DIPSETTING(      0x0000, DEF_STR( Hardest ) )
6098   PORT_DIPNAME( 0x0010, 0x0010, "Stock" )
6099   PORT_DIPSETTING(      0x0010, "1" )
6100   PORT_DIPSETTING(      0x0000, "2" )
6101   PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Level_Select ) )
6102   PORT_DIPSETTING(      0x0020, DEF_STR( Off ) )
6103   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
6104   PORT_DIPNAME( 0x0040, 0x0040, "Timer speed" )
6105   PORT_DIPSETTING(      0x0040, DEF_STR( Normal ) )
6106   PORT_DIPSETTING(      0x0000, "Fast" )
6107   PORT_SERVICE( 0x0080, IP_ACTIVE_LOW )
6108
6109   PORT_DIPNAME( 0x0700, 0x0700, DEF_STR( Coin_A ) )
6110   PORT_DIPSETTING(      0x0500, DEF_STR( 3C_1C ) )
6111   PORT_DIPSETTING(      0x0600, DEF_STR( 2C_1C ) )
6112   PORT_DIPSETTING(      0x0700, DEF_STR( 1C_1C ) )
6113   PORT_DIPSETTING(      0x0400, DEF_STR( 1C_2C ) )
6114   PORT_DIPSETTING(      0x0300, DEF_STR( 1C_3C ) )
6115   PORT_DIPSETTING(      0x0200, DEF_STR( 1C_4C ) )
6116   PORT_DIPSETTING(      0x0100, DEF_STR( 1C_5C ) )
6117   PORT_DIPSETTING(      0x0000, DEF_STR( 1C_6C ) )
6118   PORT_DIPNAME( 0x3800, 0x3800, DEF_STR( Coin_B ) )
6119   PORT_DIPSETTING(      0x2800, DEF_STR( 3C_1C ) )
6120   PORT_DIPSETTING(      0x3000, DEF_STR( 2C_1C ) )
6121   PORT_DIPSETTING(      0x3800, DEF_STR( 1C_1C ) )
6122   PORT_DIPSETTING(      0x2000, DEF_STR( 1C_2C ) )
6123   PORT_DIPSETTING(      0x1800, DEF_STR( 1C_3C ) )
6124   PORT_DIPSETTING(      0x1000, DEF_STR( 1C_4C ) )
6125   PORT_DIPSETTING(      0x0800, DEF_STR( 1C_5C ) )
6126   PORT_DIPSETTING(      0x0000, DEF_STR( 1C_6C ) )
6127   PORT_DIPNAME( 0x4000, 0x4000, "Force Coinage (Half Coinn)" )
6128   PORT_DIPSETTING(      0x4000, DEF_STR( No ) )
6129   PORT_DIPSETTING(      0x0000, DEF_STR( 2C_1C ) )
6130   PORT_DIPNAME( 0x8000, 0x8000, "Unknown 2-7" )
6131   PORT_DIPSETTING(      0x8000, DEF_STR( Off ) )
6132   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
6133INPUT_PORTS_END
6134
60306135/***************************************************************************
60316136                                Crazy Fight
60326137***************************************************************************/
r1418r1419
62786383GFXDECODE_END
62796384
62806385/***************************************************************************
6386                                Orbs
6387***************************************************************************/
6388
6389static GFXDECODE_START( orbs )
6390   GFXDECODE_ENTRY( REGION_GFX1, 0, layout_planes, 512*0, 32 ) // [0] Sprites
6391GFXDECODE_END
6392
6393/***************************************************************************
62816394                                Wiggie Waggle
62826395****************************************************************************/
62836396
r1418r1419
71487261   MDRV_SOUND_ROUTE(1, "right", 1.0)
71497262MACHINE_DRIVER_END
71507263
7264/***************************************************************************
7265                                Orbs
7266***************************************************************************/
71517267
7268static MACHINE_DRIVER_START( orbs )
7269
7270   /* basic machine hardware */
7271   MDRV_CPU_ADD(M68000, 14318180)
7272   MDRV_CPU_PROGRAM_MAP(orbs_readmem,orbs_writemem)
7273   MDRV_CPU_VBLANK_INT(seta_interrupt_1_and_2,SETA_INTERRUPTS_NUM)
7274
7275   MDRV_SCREEN_REFRESH_RATE(60)
7276   MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION)
7277
7278   /* video hardware */
7279   MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER)
7280   MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16)
7281   MDRV_SCREEN_SIZE(64*8, 32*8)
7282   MDRV_SCREEN_VISIBLE_AREA(1*8, 39*8-1, 1*8, 31*8-1)
7283   MDRV_GFXDECODE(orbs)
7284   MDRV_PALETTE_LENGTH(512)   /* sprites only */
7285
7286   MDRV_VIDEO_START(seta_no_layers)
7287   MDRV_VIDEO_UPDATE(seta_no_layers) /* just draw the sprites */
7288
7289   /* sound hardware */
7290   MDRV_SPEAKER_STANDARD_STEREO("left", "right")
7291
7292   MDRV_SOUND_ADD(X1_010, 16000000)
7293   MDRV_SOUND_CONFIG(seta_sound_intf)
7294   MDRV_SOUND_ROUTE(0, "left", 1.0)
7295   MDRV_SOUND_ROUTE(1, "right", 1.0)
7296MACHINE_DRIVER_END
7297
7298
71527299/***************************************************************************
71537300                                Krazy Bowl
71547301***************************************************************************/
r1418r1419
86098756   ROM_LOAD( "fv001.006", 0x080000, 0x080000, CRC(572a15e7) SHA1(b6a3e99e14a473b78ff48d1a46b20a0862d128e9) )
86108757ROM_END
86118758
8759ROM_START( orbs )
8760//all eproms are socketed and labelled (handwritten) "ORBS 10\7\94"
8761//most of rom space is unused (filled with sound samples - same data in all roms)
8762
8763   ROM_REGION( 0x100000, REGION_CPU1, 0 )      /* 68000 Code */
8764   ROM_LOAD16_BYTE( "orbs.u10",  0x000000, 0x080000, CRC(10f079c8) SHA1(0baf2b7e1e8be116a6fab609481c87fc7c86f305) )
8765   ROM_LOAD16_BYTE( "orbs.u9",  0x000001, 0x080000, CRC(f269d16f) SHA1(34f38789cb3256e334b0ac8acd9f339d14481578) )
8766
8767   ROM_REGION( 0x200000, REGION_GFX1, ROMREGION_DISPOSE )   /* Sprites */
8768   ROM_LOAD( "orbs.u14",  0x000000, 0x080000, CRC(1cc76541) SHA1(d8a233212bfb9a9c686a40e470524f95b34417fa) )
8769   ROM_LOAD( "orbs.u13",  0x080000, 0x080000, CRC(784bdc1a) SHA1(de2c5b38561b8ba6bd800126d010b734c2751575) )
8770   ROM_LOAD( "orbs.u12",  0x100000, 0x080000, CRC(b8c352c2) SHA1(7d6fd1425d9d5cf6a14a1ddceba0ad10e472dfa5) )
8771   ROM_LOAD( "orbs.u11",  0x180000, 0x080000, CRC(58cb38ba) SHA1(1c6c5f7ccb9c81b71bc1cbad080799b97962f262) )
8772
8773   ROM_REGION( 0x100000, REGION_SOUND1, 0 )   /* Samples */
8774   ROM_LOAD( "orbs.u15",  0x000000, 0x080000, CRC(bc0e9fe3) SHA1(758a44d07d59af8bbc87602df25dfcdc6cb8d9b3) )
8775   ROM_LOAD( "orbs.u16",  0x080000, 0x080000, CRC(aecd8373) SHA1(5620bcb281a9ea4920cfe81d163827013289c5bf) )
8776ROM_END
8777
86128778ROM_START( extdwnhl )
86138779   ROM_REGION( 0x100000, REGION_CPU1, 0 )      /* 68000 Code */
86148780   ROM_LOAD16_BYTE( "fw001002.201",  0x000000, 0x080000, CRC(24d21924) SHA1(9914a68a578f884b06305ffcd9aeed7d83df1c7b) )
r1418r1419
90869252GAME( 1994, eightfrc, 0,        eightfrc, eightfrc, eightfrc, ROT90,  "Tecmo",                  "Eight Forces", 0 )
90879253GAME( 1994, kiwame,   0,        kiwame,   kiwame,   kiwame,   ROT0,   "Athena",                 "Pro Mahjong Kiwame", 0 )
90889254GAME( 1994, krzybowl, 0,        krzybowl, krzybowl, 0,        ROT270, "American Sammy",         "Krazy Bowl", 0 )
9255GAME( 1994, orbs,     0,        orbs,     orbs,     0,        ROT0,   "American Sammy",         "Orbs (10/7/94 prototype?)", 0 )
90899256GAME( 1995, extdwnhl, 0,        extdwnhl, extdwnhl, 0,        ROT0,   "Sammy Industries Japan", "Extreme Downhill (v1.5)", GAME_IMPERFECT_GRAPHICS )
90909257GAME( 1995, gundhara, 0,        gundhara, gundhara, 0,        ROT270, "Banpresto",              "Gundhara", 0 )
90919258GAME( 1995, sokonuke, 0,        extdwnhl, sokonuke, 0,        ROT0,   "Sammy Industries",       "Sokonuke Taisen Game (Japan)", GAME_IMPERFECT_SOUND )
src/mame/drivers/stv.c
r1418r1419
27042704   state_save_register_global(scsp_last_line);
27052705
27062706   stv_register_protection_savestates(); // machine/stvprot.c
2707
2708   add_exit_callback(machine, stvcd_exit);
27072709}
27082710
27092711static MACHINE_RESET( stv )
src/mame/drivers/gotya.c
r1418r1419
1010
1111      I think HD38880 is a CPU/MCU, because the game just sends it a sound command (0-0x1a)
1212
13      couriersud:
14         The chips above are speech synthesis chips. HD38880 is the main chip
15         whereas HD38882 is an eprom interface. PARCOR based.
16         http://www.freepatentsonline.com/4435832.html
17         Datasheet lists no parcor coefficients
18
1319****************************************************************************/
1420
1521/****************************************************************************
src/mame/drivers/ksys573.c
r1418r1419
876876    }
877877}
878878
879static void atapi_init(void)
879static void atapi_exit(running_machine* machine)
880880{
881881   int i;
882882
883   for( i = 0; i < 2; i++ )
884   {
885      if( get_disk_handle( i ) != NULL )
886      {
887         SCSIDeleteInstance( available_cdroms[ i ] );
888      }
889   }
890}
891
892static void atapi_init(running_machine *machine)
893{
894   int i;
895
883896   atapi_regs = auto_malloc( ATAPI_REG_MAX );
884897   memset(atapi_regs, 0, sizeof(atapi_regs));
885898
r1418r1419
906919         available_cdroms[ i ] = NULL;
907920      }
908921   }
922   add_exit_callback(machine, atapi_exit);
909923
910924   atapi_data = auto_malloc( ATAPI_DATA_SIZE );
911925
r1418r1419
14771491   int i;
14781492
14791493   psx_driver_init();
1480   atapi_init();
1494   atapi_init(machine);
14811495   psx_dma_install_read_handler(5, cdrom_dma_read);
14821496   psx_dma_install_write_handler(5, cdrom_dma_write);
14831497
src/mame/drivers/neodrvr.c
r1418r1419
309309   ROM_SYSTEM_BIOS( 7, "japan-s1",   "Japan MVS (Ver. 1)" ) \
310310   ROM_LOAD16_WORD_SWAP_BIOS( 7, "sp1.jipan.1024",0x00000, 0x020000,  CRC(9fb0abe4) SHA1(18a987ce2229df79a8cf6a84f968f0e42ce4e59d) ) /* Japan, Older */ \
311311
312//  ROM_SYSTEM_BIOS( 8, "uni-bios.10","Unibios MVS (Hack, Ver. 1.0)" )
313//  ROM_LOAD16_WORD_SWAP_BIOS( 8, "uni-bios.10",  0x00000, 0x020000, CRC(0ce453a0) SHA1(3b4c0cd26c176fc6b26c3a2f95143dd478f6abf9) ) /* Universe Bios v1.0 (hack) */
314//  ROM_SYSTEM_BIOS( 9, "uni-bios.11","Unibios MVS (Hack, Ver. 1.1)" )
315//  ROM_LOAD16_WORD_SWAP_BIOS( 9, "uni-bios.11",  0x00000, 0x020000, CRC(5dda0d84) SHA1(4153d533c02926a2577e49c32657214781ff29b7) ) /* Universe Bios v1.1 (hack) */
316//  ROM_SYSTEM_BIOS(10, "debug",      "Debug MVS (Hack?)" )
317//  ROM_LOAD16_WORD_SWAP_BIOS(10, "neodebug.rom", 0x00000, 0x020000, CRC(698ebb7d) SHA1(081c49aa8cc7dad5939833dc1b18338321ea0a07) ) /* Debug (Development) Bios */
318//  ROM_SYSTEM_BIOS(11, "asia-aes",   "Asia AES" )
319//  ROM_LOAD16_WORD_SWAP_BIOS(11, "aes-bios.bin", 0x00000, 0x020000, CRC(d27a71f1) SHA1(1b3b22092f30c4d1b2c15f04d1670eb1e9fbea07) ) /* AES Console (Asia?) Bios */
312//  ROM_SYSTEM_BIOS( 8, "uni-bios","Universe Bios (Hack, Ver. 2.3)" )
313//  ROM_LOAD16_WORD_SWAP_BIOS( 8, "uni-bios.rom",  0x00000, 0x020000, CRC(601720ae) SHA1(1b8a72c720cdb5ee3f1d735bbcf447b09204b8d9) ) /* Universe Bios v2.3 (hack) */
314//  ROM_SYSTEM_BIOS( 9, "debug",      "Debug MVS (Hack?)" )
315//  ROM_LOAD16_WORD_SWAP_BIOS( 9, "neodebug.rom", 0x00000, 0x020000, CRC(698ebb7d) SHA1(081c49aa8cc7dad5939833dc1b18338321ea0a07) ) /* Debug (Development) Bios */
316//  ROM_SYSTEM_BIOS(10, "asia-aes",   "Asia AES" )
317//  ROM_LOAD16_WORD_SWAP_BIOS(10, "neo-epo.bin", 0x00000, 0x020000, CRC(d27a71f1) SHA1(1b3b22092f30c4d1b2c15f04d1670eb1e9fbea07) ) /* AES Console (Asia?) Bios */
318//  ROM_SYSTEM_BIOS(11, "jap-aes",   "Japan AES" )
319//  ROM_LOAD16_WORD_SWAP_BIOS(11, "neo-po.bin", 0x00000, 0x020000, CRC(16d0c132) SHA1(4e4a440cae46f3889d20234aebd7f8d5f522e22c) ) /* AES Console (Japan) Bios */
320320
321321/* note you'll have to modify the last for lines of each block to use the extra bios roms,
322322   they're hacks / homebrew / console bios roms so MAME doesn't list them by default */
r1418r1419
404404   ROM_LOAD( "000-lo.lo", 0x00000, 0x10000, CRC(e09e253c) SHA1(2b1c719531dac9bb503f22644e6e4236b91e7cfc) )
405405
406406
407/***************************************************************************
407408
408/******************************************************************************/
409    Neo-Geo game pcb infos:
410    =======================
409411
412    The Neo-Geo games for AES (home) and MVS (arcade) systems are cartridge based.
413
414    Each cartridge consists of two pcb's: CHA and PROG.
415
416    CHA pcb contains gfx data ('C' - rom), text layer data ('S' - rom) and sound driver ('M' - rom).
417    PROG pcb contains sample data ('V' - rom) and program code ('P' - rom).
418
419    On most pcb's various custom/protection chips can also be found:
420
421    CHA:
422    . NEO-273
423    . NEO-CMC
424    . NEO-ZMC
425    . NEO-ZMC2
426    . PRO-CT0
427    . SNK-9201
428
429    PROG:
430    . ALTERA
431    . NEO-COMA
432    . NEO-PCM2 (SNK 1999)
433    . NEO-PCM2 (PLAYMORE 2002)
434    . NEO-PVC
435    . NEO-SMA
436    . PCM
437
438
439    Known pcb's:
440    ============
441
442    MVS CHA:
443    . NEO-MVS CHA-8M
444    . NEO-MVS CHA42G
445    . NEO-MVS CHA42G-1
446    . NEO-MVS CHA42G-2
447    . NEO-MVS CHA42G-3B
448    . NEO-MVS CHA256
449    . NEO-MVS CHA256B
450    . NEO-MVS PSTM CHA136
451    . NEO-MVS CHA512Y
452    . NEO-MVS CHAFIO
453
454    MVS PROG:
455    . NEO-MVS PROG8M42
456    . NEO-MVS PROG16
457    . NEO-MVS PROG42G
458    . NEO-MVS PROG42G-1
459    . NEO-MVS PROGGSC
460    . NEO-MVS PROGTOP
461    . NEO-MVS PROGSF1
462    . NEO-MVS PROGEOP
463    . NEO-MVS PROGLBA - LBA-SUB (2000.2.24)
464    . NEO-MVS PROGBK1
465    . NEO-MVS PROGBK2
466    . NEO-MVS PROGBK2R
467    . NEO-MVS PROGBK3R
468    . NEO-MVS PROGBK3S
469
470    AES CHA:
471    . NEO-AEG CHA-32
472    . NEO-AEG CHA42G-1
473    . NEO-AEG CHA42G-3
474    . NEO-AEG CHA42G-4
475    . NEO-AEG CHA256
476    . NEO-AEG CHA256[B]
477    . NEO-AEG CHA256RY
478    . NEO-AEG CHA512Y
479    . NEO-AEG CHAFIO (SNK 1999.8.10)
480
481    AES PROG:
482    . NEO-AEG PROG-NAM
483    . NEO-AEG PROG-HERO
484    . NEO-AEG PROG B
485    . NEO-AEG PROG-4A
486    . NEO-AEG PROG-4B
487    . NEO-AEG PROG16
488    . NEO-AEG PROG42G-COM
489    . NEO-AEG PROG42G-1
490    . NEO-AEG PROG4096B
491    . NEO-AEG PROGGS
492    . NEO-AEG PROGLBA
493    . NEO-AEG PROGRK
494    . NEO-AEG PROGRKB
495    . NEO-AEG PROGBK1Y
496    . NEO-AEG PROGBK2
497    . NEO-AEG PROGBK3R
498
499    The above only covers SNK / SNK-PLAYMORE pcb's. There also exists a
500    wide range of 'bootleg' pcb's.
501
502****************************************************************************/
503
504
410505ROM_START( nam1975 )
411506   ROM_REGION( 0x100000, NEOGEO_REGION_MAIN_CPU_CARTRIDGE, 0 )
412507   ROM_LOAD16_WORD_SWAP( "001-p1.bin", 0x000000, 0x080000, CRC(cc9fc951) SHA1(92f4e6ddeeb825077d92dbb70b50afea985f15c0) )
r1418r1419
710805ROM_START( superspy )
711806   ROM_REGION( 0x100000, NEOGEO_REGION_MAIN_CPU_CARTRIDGE, 0 )
712807   ROM_LOAD16_WORD_SWAP( "011-p1.bin", 0x000000, 0x080000, CRC(c7f944b5) SHA1(da7560e09187c68f1d9f7656218497b4464c56c9) )
713   ROM_LOAD16_WORD_SWAP( "011-p2.bin", 0x080000, 0x020000, CRC(811a4faf) SHA1(8169dfaf79f52d80ecec402ce1b1ab9cafb7ebdd) )
808   ROM_LOAD16_WORD_SWAP( "011-sp2.bin", 0x080000, 0x020000, CRC(811a4faf) SHA1(8169dfaf79f52d80ecec402ce1b1ab9cafb7ebdd) )
714809
715810   NEO_SFIX_128K( "011-s1.bin", CRC(ec5fdb96) SHA1(8003028025ac7bf531e568add6ba66c02d0b7e84) )
716811
717   NEO_BIOS_AUDIO_128K( "011-m1.bin", BAD_DUMP CRC(d59d5d12) SHA1(0692b6f35c9ee3840f945703c4eb51ab83eb0714) )
812   NEO_BIOS_AUDIO_128K( "011-m1.bin", CRC(6f737b5a) SHA1(d52f7b6786b6e33f09ba0cf30889082c1dfb9336) )
718813
719   ROM_REGION( 0x200000, NEOGEO_REGION_AUDIO_DATA_1, 0 )
814   ROM_REGION( 0x180000, NEOGEO_REGION_AUDIO_DATA_1, 0 )
720815   ROM_LOAD( "011-v11.bin", 0x000000, 0x100000, CRC(5c674d5c) SHA1(d7b9beddeb247b584cea9ca6c43ec6869809b673) )
721   ROM_LOAD( "011-v12.bin", 0x100000, 0x100000, CRC(7df8898b) SHA1(23dd6df47fa51b210af800ae551295300e125106) )
816   ROM_LOAD( "011-v12.bin", 0x100000, 0x080000, CRC(9f513d5a) SHA1(37b04962f0b8e2a74abd35c407337a6151dc4e95) )
722817
723   ROM_REGION( 0x100000, NEOGEO_REGION_AUDIO_DATA_2, 0 )
724   ROM_LOAD( "011-v21.bin", 0x000000, 0x100000, CRC(1ebe94c7) SHA1(c186810523a7df880cb080c62aa322bbcaefca17) )
818   ROM_REGION( 0x080000, NEOGEO_REGION_AUDIO_DATA_2, 0 )
819   ROM_LOAD( "011-v21.bin", 0x000000, 0x080000, CRC(426cd040) SHA1(b2b45189837c8287223c2b8bd4df9525b72a3f16) )
725820
726821   ROM_REGION( 0x400000, NEOGEO_REGION_SPRITES, ROMREGION_DISPOSE )
727822   ROM_LOAD16_BYTE( "011-c1.bin", 0x000000, 0x100000, CRC(cae7be57) SHA1(43b35b349594535689c358d9f324adda55e5281a) ) /* Plane 0,1 */
r1418r1419
9241019   ROM_LOAD16_BYTE( "020-c4.bin", 0x200001, 0x100000, CRC(edde439b) SHA1(79be7b10ecdab54c2f77062b8f5fda0e299fa982) )
9251020ROM_END
9261021
927ROM_START( joyjoy )
1022ROM_START( joyjoy ) /* MVS AND AES VERSION */
9281023   ROM_REGION( 0x100000, NEOGEO_REGION_MAIN_CPU_CARTRIDGE, 0 )
9291024   ROM_LOAD16_WORD_SWAP( "021-p1.bin", 0x000000, 0x080000, CRC(39c3478f) SHA1(06ebe54c9c4e14c5c31e770013d58b7162359ecc) )
9301025
r1418r1419
11341229
11351230   NEO_SFIX_128K( "031-s1.bin", CRC(4c117174) SHA1(26e52c4f628338a9aa1c159517cdf873f738fb98) )
11361231
1137   NEO_BIOS_AUDIO_64K( "031-m1.bin", BAD_DUMP CRC(2f38d5d3) SHA1(0fc01750277e554978e68e7e6d596f8bd6b1e178) )
1232   NEO_BIOS_AUDIO_128K( "031-m1.bin", CRC(3aa4e9e1) SHA1(65e53d799a0cb55b5bc55d57773e4682a72d7c2d) )
11381233
11391234   ROM_REGION( 0x200000, NEOGEO_REGION_AUDIO_DATA_1, 0 )
11401235   ROM_LOAD( "031-v1.bin", 0x000000, 0x100000, CRC(cc78497e) SHA1(895bd647150fae9b2259ef043ed681f4c4de66ea) )
r1418r1419
11491244   ROM_LOAD16_BYTE( "031-c4.bin", 0x200001, 0x080000, CRC(ed297de8) SHA1(616f8fa4c86231f3e79faf9f69f8bb909cbc35f0) ) /* Plane 2,3 */
11501245ROM_END
11511246
1247ROM_START( socbrala ) /* MVS VERSION */
1248   ROM_REGION( 0x100000, NEOGEO_REGION_MAIN_CPU_CARTRIDGE, 0 )
1249   ROM_LOAD16_WORD_SWAP( "031-pg1.bin", 0x000000, 0x080000, CRC(17f034a7) SHA1(2e66c7bd93a08efe63c4894494db50bbf58f60e4) )
1250
1251   NEO_SFIX_128K( "031-s1.bin", CRC(4c117174) SHA1(26e52c4f628338a9aa1c159517cdf873f738fb98) )
1252
1253   NEO_BIOS_AUDIO_128K( "031-m1.bin", CRC(3aa4e9e1) SHA1(65e53d799a0cb55b5bc55d57773e4682a72d7c2d) )
1254
1255   ROM_REGION( 0x200000, NEOGEO_REGION_AUDIO_DATA_1, 0 )
1256   ROM_LOAD( "031-v1.bin", 0x000000, 0x100000, CRC(cc78497e) SHA1(895bd647150fae9b2259ef043ed681f4c4de66ea) )
1257   ROM_LOAD( "031-v2.bin", 0x100000, 0x100000, CRC(dda043c6) SHA1(08165a59700ab6b1e523079dd2a3549e520cc594) )
1258
1259   NO_DELTAT_REGION
1260
1261   ROM_REGION( 0x300000, NEOGEO_REGION_SPRITES, ROMREGION_DISPOSE )
1262   ROM_LOAD16_BYTE( "031-c1.bin", 0x000000, 0x100000, CRC(bd0a4eb8) SHA1(b67988cb3e550d083e81c9bd436da55b242785ed) ) /* Plane 0,1 */
1263   ROM_LOAD16_BYTE( "031-c2.bin", 0x000001, 0x100000, CRC(efde5382) SHA1(e42789c8d87ee3d4549d0a903e990c03338cbbd8) ) /* Plane 2,3 */
1264   ROM_LOAD16_BYTE( "031-c3.bin", 0x200000, 0x080000, CRC(580f7f33) SHA1(f4f95a7c8de00e1366a723fc4cd0e8c1905af636) ) /* Plane 0,1 */
1265   ROM_LOAD16_BYTE( "031-c4.bin", 0x200001, 0x080000, CRC(ed297de8) SHA1(616f8fa4c86231f3e79faf9f69f8bb909cbc35f0) ) /* Plane 2,3 */
1266ROM_END
1267
11521268ROM_START( roboarmy )
11531269   ROM_REGION( 0x100000, NEOGEO_REGION_MAIN_CPU_CARTRIDGE, 0 )
11541270   ROM_LOAD16_WORD_SWAP( "032-p1.bin", 0x000000, 0x080000, CRC(cd11cbd4) SHA1(23163e3da2f07e830a7f4a02aea1cb01a54ccbf3) )
r1418r1419
12131329   ROM_LOAD16_BYTE( "033-c4.bin", 0x200001, 0x100000, CRC(9397476a) SHA1(a12dbb74020aeb6ebf24ec2abbfba5129cabcb7d) ) /* Plane 2,3 */
12141330ROM_END
12151331
1216ROM_START( fbfrenzy )
1332ROM_START( fbfrenzy ) /* MVS AND AES VERSION */
12171333   ROM_REGION( 0x100000, NEOGEO_REGION_MAIN_CPU_CARTRIDGE, 0 )
12181334   ROM_LOAD16_WORD_SWAP( "034-p1.bin", 0x000000, 0x080000, CRC(cdef6b19) SHA1(97482db0dffc6d625fb41fa38449c0a74d741a72) )
12191335
12201336   NEO_SFIX_128K( "034-s1.bin", CRC(8472ed44) SHA1(42e1a9671dddd090d2a634cff986f6c73ba08b70) )
12211337
1222   NEO_BIOS_AUDIO_128K( "034-m1.bin", BAD_DUMP CRC(f41b16b8) SHA1(f3e1cfc4cd2c5baece176f169906aa796367d303) )
1338   NEO_BIOS_AUDIO_128K( "034-m1.bin", CRC(f41b16b8) SHA1(f3e1cfc4cd2c5baece176f169906aa796367d303) )
12231339
12241340   ROM_REGION( 0x200000, NEOGEO_REGION_AUDIO_DATA_1, 0 )
12251341   ROM_LOAD( "034-v1.bin", 0x000000, 0x100000, CRC(50c9d0dd) SHA1(2b3f2875b00e5f307d274128bd73c1521a7d901b) )
r1418r1419
15821698   ROM_REGION( 0x100000, NEOGEO_REGION_AUDIO_DATA_1, 0 )
15831699   ROM_LOAD( "049-v1.bin", 0x000000, 0x080000, CRC(577c85b3) SHA1(2c3072401fe73497dca0e9009ae2ba4053fe936d) )
15841700   ROM_LOAD( "049-v2.bin", 0x080000, 0x080000, CRC(e14551c4) SHA1(763a9912b9df55defb190af3f29ae034f6dd78d6) )
1701   /* The MVS version has only v1 rom, size 8mbit. */
15851702
15861703   NO_DELTAT_REGION
15871704
r1418r1419
19122029   ROM_LOAD16_WORD_SWAP( "060-p1.bin", 0x000000, 0x080000, CRC(3032041b) SHA1(4b8ed2e6f74579ea35a53e06ccac42d6905b0f51) )
19132030   ROM_LOAD16_WORD_SWAP( "060-p2.bin", 0x080000, 0x080000, CRC(b0801d5f) SHA1(085746d8f5d271d5f84ccbb7f577193c391f88d4) )
19142031
1915   NEO_SFIX_128K( "060-s1.bin", CRC(70727a1e) SHA1(e0d226be0578adbe7c1d41baba79e61d4d8fac39) )
2032   NEO_SFIX_128K( "060-s1.bin", CRC(7f012104) SHA1(f366dcc3923655dff16ec08a40d5fce22a84257d) )
19162033
19172034   NEO_BIOS_AUDIO_128K( "060-m1.bin", CRC(0b7c4e65) SHA1(999a1e784de18db3f1332b30bc425836ea6970be) )
19182035
r1418r1419
19292046   ROM_LOAD16_BYTE( "060-c4.bin", 0x0400001, 0x200000, CRC(026f3b62) SHA1(d608483b70d60e7aa0e41f25a8b3fed508129eb7) ) /* Plane 2,3 */
19302047ROM_END
19312048
1932ROM_START( fightfva )
2049ROM_START( fightfva ) /* MVS VERSION */
19332050   ROM_REGION( 0x200000, NEOGEO_REGION_MAIN_CPU_CARTRIDGE, 0 )
1934   ROM_LOAD16_WORD_SWAP( "060-p1a.bin", 0x0000000, 0x100000, CRC(2a104b50) SHA1(3eb663d3df7074e1cdf4c0e450a35c9cf55d8979) )
2051   ROM_LOAD16_WORD_SWAP( "060-p1.rom", 0x0000000, 0x100000, CRC(2a104b50) SHA1(3eb663d3df7074e1cdf4c0e450a35c9cf55d8979) )
19352052   /* there was also a copy of the 060-p1.bin with the name 060-p2.bin maybe it should be loaded over the top or this
19362053       larger rom is an older revision... */
19372054
1938   NEO_SFIX_128K( "060-s1.bin", CRC(70727a1e) SHA1(e0d226be0578adbe7c1d41baba79e61d4d8fac39) )
2055   NEO_SFIX_128K( "060-s1.bin", CRC(7f012104) SHA1(f366dcc3923655dff16ec08a40d5fce22a84257d) )
19392056
19402057   NEO_BIOS_AUDIO_128K( "060-m1.bin", CRC(0b7c4e65) SHA1(999a1e784de18db3f1332b30bc425836ea6970be) )
19412058
r1418r1419
28492966
28502967   NEO_BIOS_AUDIO_128K( "097-m1.bin", CRC(b20e4291) SHA1(0e891ab53f9fded510295dfc7818bc59b4a9dd97) )
28512968
2852   ROM_REGION( 0x500000, NEOGEO_REGION_AUDIO_DATA_1, 0 )
2969   ROM_REGION( 0x600000, NEOGEO_REGION_AUDIO_DATA_1, 0 )
28532970   ROM_LOAD( "097-v1.bin", 0x000000, 0x400000, CRC(6f885152) SHA1(8175804d5c1420c5d37b733d4a8fa2aa81e59f1b) )
2854   ROM_LOAD( "097-v2.bin", 0x400000, 0x100000, CRC(32187ccd) SHA1(35a93de2a23bdec181c504d9c21a871bf86edee1) )
2971   ROM_LOAD( "097-v2.bin", 0x400000, 0x200000, CRC(3359e868) SHA1(b7efd9f1a6dab33271fe8356bcc863aeae1d3ed8) )
28552972
28562973   NO_DELTAT_REGION
28572974
r1418r1419
29283045   ROM_REGION( 0x100000, NEOGEO_REGION_MAIN_CPU_CARTRIDGE, 0 )
29293046   ROM_LOAD16_WORD_SWAP( "203-p1.bin", 0x000000, 0x100000, CRC(7ba70e2d) SHA1(945f472cc3e7706f613c52df18de35c986d166e7) )
29303047
2931   NEO_SFIX_128K( "203-s1.bin", CRC(4e132fac) SHA1(ecc5552880cc0a771121efe2a60810b70f6121ff) )
3048   NEO_SFIX_128K( "203-s1.bin", CRC(bfdc8309) SHA1(781337eab932a130b396a6c1080611d6f9c24c6e) )
29323049
29333050   NEO_BIOS_AUDIO_128K( "203-m1.bin", CRC(a602c2c2) SHA1(19fd5d0379244c528b58343f6cbf78b4766fb23d) )
29343051
r1418r1419
38984015
38994016ROM_START( kof98 ) /* encrypted code + protection */
39004017   ROM_REGION( 0x600000, NEOGEO_REGION_MAIN_CPU_CARTRIDGE, 0 )
3901   ROM_LOAD16_WORD_SWAP( "yz98-p1.160", 0x000000, 0x200000, CRC(8893df89) SHA1(0452828785110601c65f667209fc2d2926cd3751) )
4018   ROM_LOAD16_WORD_SWAP( "242-p1.bin", 0x000000, 0x200000, CRC(8893df89) SHA1(0452828785110601c65f667209fc2d2926cd3751) )
39024019   ROM_LOAD16_WORD_SWAP( "242-p2.bin", 0x200000, 0x400000, CRC(980aba4c) SHA1(5e735929ec6c3ca5b2efae3c7de47bcbb8ade2c5) )
39034020
39044021   NEO_SFIX_128K( "242-s1.bin", CRC(7f7b4805) SHA1(80ee6e5d0ece9c34ebca54b043a7cb33f9ff6b92) )
r1418r1419
39264043
39274044ROM_START( kof98k ) /* encrypted code + protection, only z80 rom is different to kof98 */
39284045   ROM_REGION( 0x600000, NEOGEO_REGION_MAIN_CPU_CARTRIDGE, 0 )
3929   ROM_LOAD16_WORD_SWAP( "yz98-p1.160", 0x000000, 0x200000, CRC(8893df89) SHA1(0452828785110601c65f667209fc2d2926cd3751) )
4046   ROM_LOAD16_WORD_SWAP( "242-p1.bin", 0x000000, 0x200000, CRC(8893df89) SHA1(0452828785110601c65f667209fc2d2926cd3751) )
39304047   ROM_LOAD16_WORD_SWAP( "242-p2.bin", 0x200000, 0x400000, CRC(980aba4c) SHA1(5e735929ec6c3ca5b2efae3c7de47bcbb8ade2c5) )
39314048
39324049   NEO_SFIX_128K( "242-s1.bin", CRC(7f7b4805) SHA1(80ee6e5d0ece9c34ebca54b043a7cb33f9ff6b92) )
r1418r1419
41854302   ROM_LOAD16_BYTE( "250-c6.bin", 0x2000001, 0x800000, CRC(83e3e69d) SHA1(39be66287696829d243fb71b3fb8b7dc2bc3298f) ) /* Plane 0,1 */
41864303ROM_END
41874304
4188ROM_START( kof99 ) /* Original Version - Encrypted Code & GFX */
4305ROM_START( kof99 ) /* Original Version - Encrypted Code & GFX */ /* AES VERSION */
41894306   ROM_REGION( 0x900000, NEOGEO_REGION_MAIN_CPU_CARTRIDGE, 0 )
41904307   ROM_LOAD16_WORD_SWAP( "251-sma.kc",  0x0c0000, 0x040000, CRC(6c9d0647) SHA1(2a0ce62ca6c18007e8fbe1b60475c7874ab79389) )   /* stored in the custom chip */
41914308   ROM_LOAD16_WORD_SWAP( "251-p1.bin",  0x100000, 0x400000, CRC(006e4532) SHA1(47791ab4044ad55988b1d3412d95b65b91a163c8) )
r1418r1419
42214338   ROM_LOAD16_BYTE( "251-c8.bin",   0x3000001, 0x800000, CRC(8d921c68) SHA1(42acf1d27d52a8e3b6262eb7df50693c0b135565) ) /* Plane 2,3 */
42224339ROM_END
42234340
4224ROM_START( kof99a ) /* Original Version - Encrypted Code & GFX */
4341ROM_START( kof99a ) /* Original Version - Encrypted Code & GFX */ /* MVS VERSION */
42254342   ROM_REGION( 0x900000, NEOGEO_REGION_MAIN_CPU_CARTRIDGE, 0 )
42264343   ROM_LOAD16_WORD_SWAP( "251-sma.ka",  0x0c0000, 0x040000, CRC(7766d09e) SHA1(4e0a49d1ad669a62676cb30f527c6590cde80194) )   /* stored in the custom chip */
42274344   ROM_LOAD16_WORD_SWAP( "251-p1.bin",  0x100000, 0x400000, CRC(006e4532) SHA1(47791ab4044ad55988b1d3412d95b65b91a163c8) )
r1418r1419
52895406   ROM_LOAD16_BYTE( "267-c2.bin", 0x0000001, 0x800000, CRC(2b67187b) SHA1(149c3efd3c444fd0d35a97fa2268102bf76be3ed) ) /* Plane 2,3 */
52905407ROM_END
52915408
5292ROM_START( mslug5 ) /* Encrypted Set */
5409ROM_START( mslug5 ) /* Encrypted Set */ /* MVS VERSION */
52935410   ROM_REGION( 0x800000, NEOGEO_REGION_MAIN_CPU_CARTRIDGE, 0 )
52945411   ROM_LOAD32_WORD_SWAP( "268-p1cr.bin", 0x000000, 0x400000, CRC(d0466792) SHA1(880819933d997fab398f91061e9dbccb959ae8a1) )
52955412   ROM_LOAD32_WORD_SWAP( "268-p2cr.bin", 0x000002, 0x400000, CRC(fbf6b61e) SHA1(9ec743d5988b5e3183f37f8edf45c72a8c0c893e) )
r1418r1419
53025419   ROM_REGION( 0x20000, NEOGEO_REGION_FIXED_LAYER_BIOS, 0 )
53035420   ROM_LOAD( "sfix.sfx", 0x000000, 0x20000, CRC(354029fc) SHA1(4ae4bf23b4c2acff875775d4cbff5583893ce2a1) )
53045421
5305   ROM_REGION( 0x10000, NEOGEO_REGION_AUDIO_CPU_ENCRYPTED, 0 )
5422   ROM_REGION( 0x80000, NEOGEO_REGION_AUDIO_CPU_ENCRYPTED, 0 )
53065423   /* Encrypted, we load it here for reference and replace with decrypted ROM */
5307   ROM_LOAD( "268-m1.bin", 0x00000, 0x10000, CRC(58b107d0) SHA1(cc7fe66ff4f9c026cde4df06f86c848eb21f7af8) )
5424   ROM_LOAD( "268-m1.bin", 0x00000, 0x80000, CRC(4a5a6e0e) SHA1(df0f660f2465e1db7be5adfcaf5e88ad61a74a42) )
53085425   /* Decrypted */
5309   NEO_BIOS_AUDIO_64K( "268-m1_decrypted.bin",  CRC(3c0655a7) SHA1(ae839d4c2b87a7aa3dd8e5caddc43eb75ee9b732) ) //Incorrect data
5426   NEO_BIOS_AUDIO_64K( "268-m1_decrypted.bin",  CRC(3c0655a7) SHA1(ae839d4c2b87a7aa3dd8e5caddc43eb75ee9b732) ) /* not a 100% match for encrypted version */
53105427
53115428   ROM_REGION( 0x1000000, NEOGEO_REGION_AUDIO_DATA_1, 0 )
53125429   /* Encrypted */
r1418r1419
70417158GAME( 1991, 2020bb,   neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "SNK / Pallas", "2020 Super Baseball (set 1)", 0 )
70427159GAME( 1991, 2020bba,  2020bb, neogeo_s, neogeo,  neogeo,   ROT0, "SNK / Pallas", "2020 Super Baseball (set 2)", 0 )
70437160GAME( 1991, 2020bbh,  2020bb, neogeo_s, neogeo,  neogeo,   ROT0, "SNK / Pallas", "2020 Super Baseball (set 3)", 0 )
7044GAME( 1991, socbrawl, neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "Soccer Brawl", 0 )
7161GAME( 1991, socbrawl, neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "Soccer Brawl (set 1)", 0 )
7162GAME( 1991, socbrala, socbrawl, neogeo_s, neogeo,  neogeo, ROT0, "SNK", "Soccer Brawl (set 2)", 0 )
70457163GAME( 1991, fatfury1, neogeo, neogeo,   neogeo,  neogeo,   ROT0, "SNK", "Fatal Fury - King of Fighters / Garou Densetsu - shukumei no tatakai", 0 )
70467164GAME( 1991, roboarmy, neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "Robo Army (set 1)", 0 )
70477165GAME( 1991, roboarma, roboarmy, neogeo_s, neogeo,  neogeo,   ROT0, "SNK", "Robo Army (set 2)", 0 )
r1418r1419
71347252GAME( 2003, mslug5,   neogeo, neogeo_s, neogeo,  mslug5,   ROT0, "SNK Playmore", "Metal Slug 5", 0 )
71357253GAME ( 2003, ms5pcb,   0,                neogeo_s, neogeo,  ms5pcb,   ROT0, "SNK Playmore", "Metal Slug 5 (JAMMA PCB)", 0 )
71367254GAME( 2003, ms5plus,  mslug5, neogeo_s, neogeo,  ms5plus,  ROT0, "bootleg", "Metal Slug 5 Plus (bootleg)",0 )
7137GAME ( 2003, svcpcb,   0,                neogeo_s, svcpcb,  svcpcb,   ROT0, "Playmore", "SNK vs. CAPCOM SVC CHAOS (JAMMA PCB)", 0 ) // not a clone of neogeo because it's NOT a neogeo cart.
7138GAME ( 2003, svcpcba,  svcpcb,           neogeo_s, svcpcb,  svcpcb,   ROT0, "Playmore", "SNK vs. CAPCOM SVC CHAOS (JAMMA PCB, set 2)" , 0 ) /* Encrypted Code */
7139GAME( 2003, svc,      neogeo, neogeo_s, neogeo,  svc,      ROT0, "Playmore", "SNK vs. CAPCOM SVC CHAOS", 0 )
7255GAME ( 2003, svcpcb,   0,                neogeo_s, svcpcb,  svcpcb,   ROT0, "SNK Playmore", "SNK vs. CAPCOM SVC CHAOS (JAMMA PCB)", 0 ) // not a clone of neogeo because it's NOT a neogeo cart.
7256GAME ( 2003, svcpcba,  svcpcb,           neogeo_s, svcpcb,  svcpcb,   ROT0, "SNK Playmore", "SNK vs. CAPCOM SVC CHAOS (JAMMA PCB, set 2)" , 0 ) /* Encrypted Code */
7257GAME( 2003, svc,      neogeo, neogeo_s, neogeo,  svc,      ROT0, "SNK Playmore", "SNK vs. CAPCOM SVC CHAOS", 0 )
71407258GAME( 2003, svcboot,  svc, neogeo_s, neogeo,  svcboot,  ROT0, "bootleg", "SNK vs. CAPCOM SVC CHAOS (bootleg)",0 )
71417259GAME( 2003, svcplus,  svc, neogeo_s, neogeo,  svcplus,  ROT0, "bootleg", "SNK vs. CAPCOM SVC CHAOS Plus (set 1, bootleg)",0 )
71427260GAME( 2003, svcplusa, svc, neogeo_s, neogeo,  svcplusa, ROT0, "bootleg", "SNK vs. CAPCOM SVC CHAOS Plus (set 2, bootleg)",0 )
r1418r1419
71947312
71957313/* Eleven */
71967314GAME( 2000, nitd,     neogeo, neogeo,   neogeo,  nitd,     ROT0, "Eleven / Gavaking", "Nightmare in the Dark" , 0) /* Encrypted GFX */
7197GAME( 2001, nitdbl,   nitd, neogeo,   neogeo,  neogeo,   ROT0, "Eleven / Gavaking", "Nightmare in the Dark (bootleg)" , 0)
7315GAME( 2001, nitdbl,   nitd,   neogeo,   neogeo,  neogeo,   ROT0, "bootleg", "Nightmare in the Dark (bootleg)" , 0)
71987316
71997317/* Face */
72007318GAME( 1994, gururin,  neogeo, neogeo_s, neogeo,  neogeo,   ROT0, "Face", "Gururin", 0 )
src/mame/drivers/peplus.c
r1418r1419
363363   output_set_value("pe_bnka7",(data >> 7) & 1); /* specific to a kind of machine */
364364
365365    coin_out_state = 0;
366    if((data >> 4) & 1)
367        coin_out_state = 1;
366    if(((data >> 4) & 1) || ((data >> 5) & 1))
367        coin_out_state = 3;
368368}
369369
370370static WRITE8_HANDLER( peplus_output_bank_b_w )
r1418r1419
594594      last_door = activecpu_gettotalcycles();
595595   }
596596
597   if (curr_cycles - last_coin_out > 60000) { // Guessing with 60000
598      if (coin_out_state == 1) {
599            coin_out = 0x08;
600      }
601        coin_out_state = 0;
597   if (curr_cycles - last_coin_out > 600000 && coin_out_state != 0) { // Guessing with 600000
598      if (coin_out_state != 2) {
599            coin_out_state = 2; // Coin-Out Off
600        } else {
601            coin_out_state = 3; // Coin-Out On
602        }
603
602604      last_coin_out = activecpu_gettotalcycles();
603605   }
604606
607    switch (coin_out_state)
608    {
609        case 0x00: // No Coin-Out
610           coin_out = 0x00;
611           break;
612        case 0x01: // First Coin-Out On
613           coin_out = 0x08;
614           break;
615        case 0x02: // Coin-Out Off
616           coin_out = 0x00;
617           break;
618        case 0x03: // Additional Coin-Out On
619           coin_out = 0x08;
620           break;
621    }
622
605623   bank_a = (sda<<7) | bank_a | (door_open<<5) | coin_optics | coin_out;
606624
607625   return bank_a;
src/mame/drivers/namcoic.c
r1418r1419
11181118namco_roz_init( int gfxbank, int maskregion )
11191119{
11201120   int i;
1121   static tile_get_info_callback roz_info[ROZ_TILEMAP_COUNT] =
1121   static const tile_get_info_callback roz_info[ROZ_TILEMAP_COUNT] =
11221122   {
11231123      roz_get_info0,
11241124      roz_get_info1
src/mame/drivers/neogeo.c
r1418r1419
6161          the language is set to Japanese, maybe the English endings
6262          are incomplete / buggy?
6363        * Graphical Glitches caused by incorrect timing?
64          - Ninja Combat sometimes glitches
6564          - Some raster effects are imperfect (off by a couple of lines)
6665        * Mult-cart support not implementd - the MVS can take up to 6 carts
6766          depending on the board being used
r1418r1419
7675          can display 320x240 but most of the games seem designed
7776          to work with a width of 304, some less.
7877        * Distorted jumping sound in Nightmare in the Dark
78        * Ninja Combat sometimes glitches
7979
8080****************************************************************************/
8181
src/mame/drivers/taito_f3.c
r1418r1419
20032003   ROM_FILL       (             0x400000, 0x400000, 0 )
20042004
20052005   ROM_REGION(0x180000, REGION_CPU2, 0)   /* 68000 sound CPU */
2006   ROM_LOAD16_BYTE("d95-07.32", 0x100000, 0x40000, BAD_DUMP CRC(72183273) SHA1(d21f2ec24d1a9101bb9161d5e1bc5416e498ad01) )
2006   ROM_LOAD16_BYTE("d95-07.32", 0x100000, 0x40000, CRC(3c201d70) SHA1(89fe4d363f4e1a847ba7d2894a2092708b287a33) )
20072007   ROM_LOAD16_BYTE("d95-08.33", 0x100001, 0x40000, CRC(01c23354) SHA1(7b332edc844b1b1c1513e879215089987645fa3f) )
20082008
20092009   ROM_REGION16_BE(0x800000, REGION_SOUND1 , ROMREGION_ERASE00 )   // V2: 4 banks, only 2 populated
src/mame/drivers/cave.c
r1418r1419
14881488
14891489/* Most games use this */
14901490static INPUT_PORTS_START( cave )
1491   PORT_START   // IN0 - Player 1
1491   PORT_START_TAG("IN0")   // IN0 - Player 1
14921492   PORT_BIT(  0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1)
14931493   PORT_BIT(  0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN    ) PORT_PLAYER(1)
14941494   PORT_BIT(  0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1)
r1418r1419
15071507   PORT_BIT(  0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN )
15081508   PORT_BIT(  0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN )
15091509
1510   PORT_START   // IN1 - Player 2
1510   PORT_START_TAG("IN1")   // IN1 - Player 2
15111511   PORT_BIT(  0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2)
15121512   PORT_BIT(  0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN    ) PORT_PLAYER(2)
15131513   PORT_BIT(  0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2)
r1418r1419
15291529
15301530/* Gaia Crusaders, no EEPROM. Has DIPS */
15311531static INPUT_PORTS_START( gaia )
1532   PORT_START   // IN0 - Player 1 + 2
1533   PORT_BIT(  0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1)
1534   PORT_BIT(  0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN    ) PORT_PLAYER(1)
1535   PORT_BIT(  0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1)
1536   PORT_BIT(  0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1)
1537   PORT_BIT(  0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)
1538   PORT_BIT(  0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1)
1539   PORT_BIT(  0x0040, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1)
1532   PORT_INCLUDE( cave )
1533
1534   PORT_MODIFY("IN0")   // IN0 - Player 1 + 2
15401535   PORT_BIT(  0x0080, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(1)
15411536
15421537   PORT_BIT(  0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2)
r1418r1419
15481543   PORT_BIT(  0x4000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2)
15491544   PORT_BIT(  0x8000, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(2)
15501545
1551   PORT_START   // IN1 - Coins
1546   PORT_MODIFY("IN1")   // IN1 - Coins
15521547   PORT_BIT(  0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_IMPULSE(6)
15531548   PORT_BIT(  0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) PORT_IMPULSE(6)
15541549   PORT_SERVICE_NO_TOGGLE(0x0004, IP_ACTIVE_LOW )
r1418r1419
15601555
15611556   PORT_BIT(  0x0100, IP_ACTIVE_LOW, IPT_UNKNOWN )
15621557   PORT_BIT(  0x0200, IP_ACTIVE_LOW, IPT_UNKNOWN )
1563   PORT_BIT(  0x0400, IP_ACTIVE_LOW, IPT_UNKNOWN )
15641558   PORT_BIT(  0x0800, IP_ACTIVE_LOW, IPT_UNKNOWN )
1565   PORT_BIT(  0x1000, IP_ACTIVE_LOW, IPT_UNKNOWN )
1566   PORT_BIT(  0x2000, IP_ACTIVE_LOW, IPT_UNKNOWN )
1567   PORT_BIT(  0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN )
1568   PORT_BIT(  0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN )
15691559
15701560   PORT_START_TAG("DSW1")   // Dips bank 1
15711561   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Flip_Screen ) )      PORT_DIPLOCATION("SW1:1")
r1418r1419
16261616INPUT_PORTS_END
16271617
16281618static INPUT_PORTS_START( theroes )
1629   PORT_INCLUDE(gaia)
1619   PORT_INCLUDE( gaia )
16301620
16311621   PORT_MODIFY("DSW1")
16321622   PORT_DIPNAME( 0x04, 0x00, DEF_STR( Language ) )         PORT_DIPLOCATION("SW1:3")
r1418r1419
16521642
16531643/* Mazinger Z (has region stored in Eeprom) */
16541644static INPUT_PORTS_START( mazinger )
1655   PORT_START   // IN0 - Player 1
1656   PORT_BIT(  0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1)
1657   PORT_BIT(  0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN    ) PORT_PLAYER(1)
1658   PORT_BIT(  0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1)
1659   PORT_BIT(  0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1)
1660   PORT_BIT(  0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)
1661   PORT_BIT(  0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1)
1662   PORT_BIT(  0x0040, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1)
1663   PORT_BIT(  0x0080, IP_ACTIVE_LOW, IPT_START1  )
1645   PORT_INCLUDE( cave )
16641646
1665   PORT_BIT(  0x0100, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_IMPULSE(6)
1666   PORT_SERVICE_NO_TOGGLE(0x0200, IP_ACTIVE_LOW )
1667   PORT_BIT(  0x0400, IP_ACTIVE_LOW, IPT_UNKNOWN )   // sw? exit service mode
1668   PORT_BIT(  0x0800, IP_ACTIVE_LOW, IPT_UNKNOWN )   // sw? enter & exit service mode
1669   PORT_BIT(  0x1000, IP_ACTIVE_LOW, IPT_UNKNOWN )
1670   PORT_BIT(  0x2000, IP_ACTIVE_LOW, IPT_UNKNOWN )
1671   PORT_BIT(  0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN )
1672   PORT_BIT(  0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN )
1673
1674   PORT_START   // IN1 - Player 2
1675   PORT_BIT(  0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2)
1676   PORT_BIT(  0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN    ) PORT_PLAYER(2)
1677   PORT_BIT(  0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2)
1678   PORT_BIT(  0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2)
1679   PORT_BIT(  0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2)
1680   PORT_BIT(  0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2)
1681   PORT_BIT(  0x0040, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2)
1682   PORT_BIT(  0x0080, IP_ACTIVE_LOW, IPT_START2  )
1683
1684   PORT_BIT(  0x0100, IP_ACTIVE_LOW, IPT_COIN2 ) PORT_IMPULSE(6)
1685   PORT_BIT(  0x0200, IP_ACTIVE_LOW,  IPT_SERVICE1)
1686   PORT_BIT(  0x0400, IP_ACTIVE_LOW,  IPT_UNKNOWN )
1687   PORT_BIT(  0x0800, IP_ACTIVE_HIGH, IPT_SPECIAL )   // eeprom bit
1688   PORT_BIT(  0x1000, IP_ACTIVE_LOW,  IPT_UNKNOWN )
1689   PORT_BIT(  0x2000, IP_ACTIVE_LOW,  IPT_UNKNOWN )
1690   PORT_BIT(  0x4000, IP_ACTIVE_LOW,  IPT_UNKNOWN )
1691   PORT_BIT(  0x8000, IP_ACTIVE_LOW,  IPT_UNKNOWN )
1692
1693   PORT_START   // Eeprom Region
1647   PORT_START_TAG("EEPROM")   // Eeprom Region
16941648   PORT_DIPNAME( 0xff, 0x31, DEF_STR( Region ) )
16951649   PORT_DIPSETTING(    0x30, DEF_STR( Japan ) )
16961650   PORT_DIPSETTING(    0x31, DEF_STR( World ) )
r1418r1419
16981652
16991653/* Sailor Moon / Air Gallet (has region stored in Eeprom) */
17001654static INPUT_PORTS_START( sailormn )
1701   PORT_START   // IN0 - Player 1
1702   PORT_BIT(  0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1)
1703   PORT_BIT(  0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN    ) PORT_PLAYER(1)
1704   PORT_BIT(  0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1)
1705   PORT_BIT(  0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1)
1706   PORT_BIT(  0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)
1707   PORT_BIT(  0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1)
1708   PORT_BIT(  0x0040, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1)
1709   PORT_BIT(  0x0080, IP_ACTIVE_LOW, IPT_START1  )
1655   PORT_INCLUDE( cave )
17101656
1711   PORT_BIT(  0x0100, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_IMPULSE(6)
1712   PORT_SERVICE_NO_TOGGLE(0x0200, IP_ACTIVE_LOW )
1713   PORT_BIT(  0x0400, IP_ACTIVE_LOW, IPT_UNKNOWN )   // sw? exit service mode
1714   PORT_BIT(  0x0800, IP_ACTIVE_LOW, IPT_UNKNOWN )   // sw? enter & exit service mode
1715   PORT_BIT(  0x1000, IP_ACTIVE_LOW, IPT_UNKNOWN )
1716   PORT_BIT(  0x2000, IP_ACTIVE_LOW, IPT_UNKNOWN )
1717   PORT_BIT(  0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN )
1718   PORT_BIT(  0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN )
1719
1720   PORT_START   // IN1 - Player 2
1721   PORT_BIT(  0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2)
1722   PORT_BIT(  0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN    ) PORT_PLAYER(2)
1723   PORT_BIT(  0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2)
1724   PORT_BIT(  0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2)
1725   PORT_BIT(  0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2)
1726   PORT_BIT(  0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2)
1727   PORT_BIT(  0x0040, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2)
1728   PORT_BIT(  0x0080, IP_ACTIVE_LOW, IPT_START2  )
1729
1730   PORT_BIT(  0x0100, IP_ACTIVE_LOW, IPT_COIN2 ) PORT_IMPULSE(6)
1731   PORT_BIT(  0x0200, IP_ACTIVE_LOW,  IPT_SERVICE1)
1732   PORT_BIT(  0x0400, IP_ACTIVE_LOW,  IPT_UNKNOWN )
1733   PORT_BIT(  0x0800, IP_ACTIVE_HIGH, IPT_SPECIAL )   // eeprom bit
1734   PORT_BIT(  0x1000, IP_ACTIVE_LOW,  IPT_UNKNOWN )
1735   PORT_BIT(  0x2000, IP_ACTIVE_LOW,  IPT_UNKNOWN )
1736   PORT_BIT(  0x4000, IP_ACTIVE_LOW,  IPT_UNKNOWN )
1737   PORT_BIT(  0x8000, IP_ACTIVE_LOW,  IPT_UNKNOWN )
1738
1739   PORT_START   // Eeprom Region
1657   PORT_START_TAG("EEPROM")   // Eeprom Region
17401658   PORT_DIPNAME( 0xff, 0x02, DEF_STR( Region ) )
17411659   PORT_DIPSETTING(    0x00, DEF_STR( Japan ) )
17421660   PORT_DIPSETTING(    0x01, DEF_STR( USA ) )
r1418r1419
17461664   PORT_DIPSETTING(    0x05, "Korea" )
17471665INPUT_PORTS_END
17481666
1667/* Normal layout but with 4 buttons */
1668static INPUT_PORTS_START( metmqstr )
1669   PORT_INCLUDE( cave )
1670
1671   PORT_MODIFY("IN0")   // IN0 - Player 1
1672   PORT_BIT(  0x0400, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(1)
1673
1674   PORT_MODIFY("IN0")   // IN1 - Player 2
1675   PORT_BIT(  0x0400, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(2)
1676INPUT_PORTS_END
1677
17491678/* Different layout */
17501679static INPUT_PORTS_START( guwange )
1751   PORT_START   // IN0 - Player 1 & 2
1680   PORT_START_TAG("IN0")   // IN0 - Player 1 & 2
17521681   PORT_BIT(  0x0001, IP_ACTIVE_LOW, IPT_START1  )
17531682   PORT_BIT(  0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_UP    ) PORT_PLAYER(1)
17541683   PORT_BIT(  0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1)
r1418r1419
17671696   PORT_BIT(  0x4000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2)
17681697   PORT_BIT(  0x8000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2)
17691698
1770   PORT_START   // IN1 - Coins
1699   PORT_START_TAG("IN1")   // IN1 - Coins
17711700   PORT_BIT(  0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_IMPULSE(6)
17721701   PORT_BIT(  0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) PORT_IMPULSE(6)
17731702   PORT_SERVICE_NO_TOGGLE(0x0004, IP_ACTIVE_LOW )
r1418r1419
17871716   PORT_BIT(  0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN )
17881717INPUT_PORTS_END
17891718
1790/* Normal layout but with 4 buttons */
1791static INPUT_PORTS_START( metmqstr )
1792   PORT_START   // IN0 - Player 1
1793   PORT_BIT(  0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1)
1794   PORT_BIT(  0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN    ) PORT_PLAYER(1)
1795   PORT_BIT(  0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1)
1796   PORT_BIT(  0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1)
1797   PORT_BIT(  0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)
1798   PORT_BIT(  0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1)
1799   PORT_BIT(  0x0040, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1)
1800   PORT_BIT(  0x0080, IP_ACTIVE_LOW, IPT_START1  )
18011719
1802   PORT_BIT(  0x0100, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_IMPULSE(6)
1803   PORT_SERVICE_NO_TOGGLE(0x0200, IP_ACTIVE_LOW )
1804   PORT_BIT(  0x0400, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(1)
1805   PORT_BIT(  0x0800, IP_ACTIVE_LOW, IPT_UNKNOWN )   // sw? enter & exit service mode
1806   PORT_BIT(  0x1000, IP_ACTIVE_LOW, IPT_UNKNOWN )
1807   PORT_BIT(  0x2000, IP_ACTIVE_LOW, IPT_UNKNOWN )
1808   PORT_BIT(  0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN )
1809   PORT_BIT(  0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN )
1810
1811   PORT_START   // IN1 - Player 2
1812   PORT_BIT(  0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2)
1813   PORT_BIT(  0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN    ) PORT_PLAYER(2)
1814   PORT_BIT(  0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2)
1815   PORT_BIT(  0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2)
1816   PORT_BIT(  0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2)
1817   PORT_BIT(  0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2)
1818   PORT_BIT(  0x0040, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2)
1819   PORT_BIT(  0x0080, IP_ACTIVE_LOW, IPT_START2  )
1820
1821   PORT_BIT(  0x0100, IP_ACTIVE_LOW, IPT_COIN2 ) PORT_IMPULSE(6)
1822   PORT_BIT(  0x0200, IP_ACTIVE_LOW,  IPT_SERVICE1)
1823   PORT_BIT(  0x0400, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(2)
1824   PORT_BIT(  0x0800, IP_ACTIVE_HIGH, IPT_SPECIAL )   // eeprom bit
1825   PORT_BIT(  0x1000, IP_ACTIVE_LOW,  IPT_UNKNOWN )
1826   PORT_BIT(  0x2000, IP_ACTIVE_LOW,  IPT_UNKNOWN )
1827   PORT_BIT(  0x4000, IP_ACTIVE_LOW,  IPT_UNKNOWN )
1828   PORT_BIT(  0x8000, IP_ACTIVE_LOW,  IPT_UNKNOWN )
1829INPUT_PORTS_END
1830
1831
18321720static INPUT_PORTS_START( korokoro )
1833   PORT_START   // IN0
1721   PORT_START_TAG("IN0")   // IN0
18341722   PORT_BIT(  0x0001, IP_ACTIVE_LOW, IPT_COIN1   ) PORT_IMPULSE(10)   // bit 0x0010 of leds (coin)
18351723   PORT_BIT(  0x0002, IP_ACTIVE_LOW, IPT_COIN2   ) PORT_IMPULSE(10)   // bit 0x0020 of leds (does coin sound)
18361724   PORT_BIT(  0x0004, IP_ACTIVE_LOW, IPT_COIN3   ) PORT_IMPULSE(10)   // bit 0x0080 of leds
r1418r1419
18491737   PORT_BIT(  0x4000, IP_ACTIVE_LOW, IPT_SERVICE1)   // service coin
18501738   PORT_BIT(  0x8000, IP_ACTIVE_HIGH, IPT_SPECIAL)   // motor / hopper status ???
18511739
1852   PORT_START   // IN1
1740   PORT_START_TAG("IN1")   // IN1
18531741   PORT_BIT(  0x0001, IP_ACTIVE_LOW,  IPT_UNKNOWN )
18541742   PORT_BIT(  0x0002, IP_ACTIVE_LOW,  IPT_UNKNOWN )
18551743   PORT_BIT(  0x0004, IP_ACTIVE_LOW,  IPT_UNKNOWN )
r1418r1419
44804368
44814369***************************************************************************/
44824370
4483GAME( 1994, pwrinst2, 0,        pwrinst2, metmqstr, pwrinst2, ROT0,   "Atlus/Cave",                           "Power Instinct 2 (USA)"                  , 0 ) /* 94.04.08 */
4484GAME( 1994, pwrins2j, pwrinst2, pwrinst2, metmqstr, pwrins2j, ROT0,   "Atlus/Cave",                           "Gouketsuji Ichizoku 2 (Japan)"           , 0 ) /* 94.04.08 */
4485GAME( 1994, mazinger, 0,        mazinger, mazinger, mazinger, ROT90,  "Banpresto/Dynamic Pl. Toei Animation", "Mazinger Z"                              , 0 ) // region in eeprom
4486GAME( 1995, donpachi, 0,        donpachi, cave,     donpachi, ROT270, "Atlus/Cave",                           "DonPachi (US)"                           , 0 )
4487GAME( 1995, donpacjp, donpachi, donpachi, cave,     donpachi, ROT270, "Atlus/Cave",                           "DonPachi (Japan)"                        , 0 )
4488GAME( 1995, donpackr, donpachi, donpachi, cave,     donpachi, ROT270, "Atlus/Cave",                           "DonPachi (Korea)"                        , 0 )
4489GAME( 1995, donpachk, donpachi, donpachi, cave,     donpachi, ROT270, "Atlus/Cave",                           "DonPachi (Hong Kong)"                    , 0 )
4490GAME( 1995, metmqstr, 0,        metmqstr, metmqstr, metmqstr, ROT0,   "Banpresto/Pandorabox",                 "Metamoqester"                            , 0 )
4491GAME( 1995, nmaster,  metmqstr, metmqstr, metmqstr, metmqstr, ROT0,   "Banpresto/Pandorabox",                 "Oni - The Ninja Master (Japan)"          , 0 )
4492GAME( 1995, plegends, 0,        pwrinst2, metmqstr, pwrins2j, ROT0,   "Atlus/Cave",                           "Power Instinct Legends (USA)"            , 0 ) /* 95.06.20 */
4493GAME( 1995, plegendj, plegends, pwrinst2, metmqstr, pwrins2j, ROT0,   "Atlus/Cave",                           "Gouketsuji Ichizoku Saikyou Densetsu (Japan)", 0 ) /* 95.06.20 */
4494GAME( 1995, sailormn, 0,        sailormn, sailormn, sailormn, ROT0,   "Banpresto",                            "Pretty Soldier Sailor Moon (95/03/22B)"  , 0 ) // region in eeprom
4495GAME( 1995, sailormo, sailormn, sailormn, sailormn, sailormn, ROT0,   "Banpresto",                            "Pretty Soldier Sailor Moon (95/03/22)"   , 0 ) // region in eeprom
4496GAME( 1996, agallet,  0,        sailormn, sailormn, agallet,  ROT270, "Banpresto / Gazelle",                  "Air Gallet"                              , 0 ) // board was taiwan, region in eeprom
4497GAME( 1996, hotdogst, 0,        hotdogst, cave,     hotdogst, ROT90,  "Marble",                               "Hotdog Storm"                            , 0 )
4498GAME( 1997, ddonpach, 0,        ddonpach, cave,     ddonpach, ROT270, "Atlus/Cave",                           "DoDonPachi (International)"              , 0 )
4499GAME( 1997, ddonpchj, ddonpach, ddonpach, cave,     ddonpach, ROT270, "Atlus/Cave",                           "DoDonPachi (Japan)"                      , 0 )
4500GAME( 1998, dfeveron, 0,        dfeveron, cave,     dfeveron, ROT270, "Cave (Nihon System license)",          "Dangun Feveron (Japan)"                  , 0 )
4501GAME( 1998, feversos, dfeveron, dfeveron, cave,     feversos, ROT270, "Cave (Nihon System license)",          "Fever SOS (International)"               , 0 )
4502GAME( 1998, esprade,  0,        esprade,  cave,     esprade,  ROT270, "Atlus/Cave",                           "ESP Ra.De. (International Ver 1998 4/22)", 0 )
4503GAME( 1998, espradej, esprade,  esprade,  cave,     esprade,  ROT270, "Atlus/Cave",                           "ESP Ra.De. (Japan Ver 1998 4/21)"        , 0 )
4504GAME( 1998, espradeo, esprade,  esprade,  cave,     esprade,  ROT270, "Atlus/Cave",                           "ESP Ra.De. (Japan Ver 1998 4/14)"        , 0 )
4505GAME( 1998, uopoko,   0,        uopoko,   cave,     uopoko,   ROT0,   "Cave (Jaleco license)",                "Puzzle Uo Poko (International)"          , 0 )
4506GAME( 1998, uopokoj,  uopoko,   uopoko,   cave,     uopoko,   ROT0,   "Cave (Jaleco license)",                "Puzzle Uo Poko (Japan)"                  , 0 )
4507GAME( 1999, guwange,  0,        guwange,  guwange,  guwange,  ROT270, "Atlus/Cave",                           "Guwange (Japan)"                         , 0 )
4508GAME( 1999, gaia,     0,        gaia,     gaia,     gaia,     ROT0,   "Noise Factory",                        "Gaia Crusaders",        GAME_IMPERFECT_SOUND ) // cuts out occasionally
4509GAME( 2001, theroes,  0,        gaia,     theroes,  gaia,     ROT0,   "Primetek Investments",                 "Thunder Heroes",        GAME_IMPERFECT_SOUND ) // cuts out occasionally
4371GAME( 1994, pwrinst2, 0,        pwrinst2, metmqstr, pwrinst2, ROT0,   "Atlus/Cave",                           "Power Instinct 2 (US, Ver. 94/04/08)"         , 0 )
4372GAME( 1994, pwrins2j, pwrinst2, pwrinst2, metmqstr, pwrins2j, ROT0,   "Atlus/Cave",                           "Gouketsuji Ichizoku 2 (Japan, Ver. 94/04/08)"      , 0 )
4373GAME( 1994, mazinger, 0,        mazinger, mazinger, mazinger, ROT90,  "Banpresto/Dynamic Pl. Toei Animation", "Mazinger Z (International/Japan)"         , 0 ) // region in eeprom
4374GAME( 1995, donpachi, 0,        donpachi, cave,     donpachi, ROT270, "Atlus/Cave",                           "DonPachi (US)"                  , 0 )
4375GAME( 1995, donpacjp, donpachi, donpachi, cave,     donpachi, ROT270, "Atlus/Cave",                           "DonPachi (Japan)"               , 0 )
4376GAME( 1995, donpackr, donpachi, donpachi, cave,     donpachi, ROT270, "Atlus/Cave",                           "DonPachi (Korea)"               , 0 )
4377GAME( 1995, donpachk, donpachi, donpachi, cave,     donpachi, ROT270, "Atlus/Cave",                           "DonPachi (Hong Kong)"               , 0 )
4378GAME( 1995, metmqstr, 0,        metmqstr, metmqstr, metmqstr, ROT0,   "Banpresto/Pandorabox",                 "Metamoqester (International)"            , 0 )
4379GAME( 1995, nmaster,  metmqstr, metmqstr, metmqstr, metmqstr, ROT0,   "Banpresto/Pandorabox",                 "Oni - The Ninja Master (Japan)"            , 0 )
4380GAME( 1995, plegends, 0,        pwrinst2, metmqstr, pwrins2j, ROT0,   "Atlus/Cave",                           "Power Instinct Legends (US, Ver. 95/06/20)"      , 0 )
4381GAME( 1995, plegendj, plegends, pwrinst2, metmqstr, pwrins2j, ROT0,   "Atlus/Cave",                           "Gouketsuji Ichizoku Saikyou Densetsu (Japan, Ver. 95/06/20)", 0 )
4382GAME( 1995, sailormn, 0,        sailormn, sailormn, sailormn, ROT0,   "Banpresto",                            "Pretty Soldier Sailor Moon (JUEHTK, Ver. 95/03/22B)"   , 0 ) // region in eeprom
4383GAME( 1995, sailormo, sailormn, sailormn, sailormn, sailormn, ROT0,   "Banpresto",                            "Pretty Soldier Sailor Moon (JUEHTK, Ver. 95/03/22)"   , 0 ) // region in eeprom
4384GAME( 1996, agallet,  0,        sailormn, sailormn, agallet,  ROT270, "Banpresto / Gazelle",                  "Air Gallet (JUEHTK)"               , 0 ) // board was taiwan, region in eeprom
4385GAME( 1996, hotdogst, 0,        hotdogst, cave,     hotdogst, ROT90,  "Marble",                               "Hotdog Storm (International)"            , 0 )
4386GAME( 1997, ddonpach, 0,        ddonpach, cave,     ddonpach, ROT270, "Atlus/Cave",                           "DoDonPachi (International, Master Ver. 97/02/05)"   , 0 )
4387GAME( 1997, ddonpchj, ddonpach, ddonpach, cave,     ddonpach, ROT270, "Atlus/Cave",                           "DoDonPachi (Japan, Master Ver. 97/02/05)"      , 0 )
4388GAME( 1998, dfeveron, feversos, dfeveron, cave,     dfeveron, ROT270, "Cave (Nihon System license)",          "Dangun Feveron (Japan, Ver. 98/09/17)"         , 0 )
4389GAME( 1998, feversos, 0,        dfeveron, cave,     feversos, ROT270, "Cave (Nihon System license)",          "Fever SOS (International, Ver. 98/09/25)"      , 0 )
4390GAME( 1998, esprade,  0,        esprade,  cave,     esprade,  ROT270, "Atlus/Cave",                           "ESP Ra.De. (International, Ver. 98/04/22)"      , 0 )
4391GAME( 1998, espradej, esprade,  esprade,  cave,     esprade,  ROT270, "Atlus/Cave",                           "ESP Ra.De. (Japan, Ver. 98/04/21)"         , 0 )
4392GAME( 1998, espradeo, esprade,  esprade,  cave,     esprade,  ROT270, "Atlus/Cave",                           "ESP Ra.De. (Japan, Ver. 98/04/14)"         , 0 )
4393GAME( 1998, uopoko,   0,        uopoko,   cave,     uopoko,   ROT0,   "Cave (Jaleco license)",                "Puzzle Uo Poko (International)"            , 0 )
4394GAME( 1998, uopokoj,  uopoko,   uopoko,   cave,     uopoko,   ROT0,   "Cave (Jaleco license)",                "Puzzle Uo Poko (Japan)"               , 0 )
4395GAME( 1999, guwange,  0,        guwange,  guwange,  guwange,  ROT270, "Atlus/Cave",                           "Guwange (Japan, Master Ver. 99/06/24)"         , 0 )
4396GAME( 1999, gaia,     0,        gaia,     gaia,     gaia,     ROT0,   "Noise Factory",                        "Gaia Crusaders",      GAME_IMPERFECT_SOUND ) // cuts out occasionally
4397GAME( 2001, theroes,  0,        gaia,     theroes,  gaia,     ROT0,   "Primetek Investments",                 "Thunder Heroes",      GAME_IMPERFECT_SOUND ) // cuts out occasionally
45104398
4511GAME( 1999, korokoro, 0,        korokoro, korokoro, korokoro, ROT0,   "Takumi",                               "Koro Koro Quest (Japan)"                 , 0 )
4399GAME( 1999, korokoro, 0,        korokoro, korokoro, korokoro, ROT0,   "Takumi",                               "Koro Koro Quest (Japan)"               , 0 )
src/mame/drivers/rpunch.c
r1418r1419
302302 *************************************/
303303
304304static INPUT_PORTS_START( rpunch )
305   PORT_START   /* c0018 lower 8 bits */
305   PORT_START_TAG("P1")   /* c0018 lower 8 bits */
306306   PORT_BIT( 0x0001, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
307307   PORT_BIT( 0x0002, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
308308   PORT_BIT( 0x0004, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1)
r1418r1419
311311   PORT_BIT( 0x0020, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(1)
312312   PORT_BIT( 0xffc0, IP_ACTIVE_HIGH, IPT_UNUSED )
313313
314   PORT_START   /* c001a lower 8 bits */
314   PORT_START_TAG("P2")   /* c001a lower 8 bits */
315315   PORT_BIT( 0x0001, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2)
316316   PORT_BIT( 0x0002, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2)
317317   PORT_BIT( 0x0004, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2)
r1418r1419
320320   PORT_BIT( 0x0020, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(2)
321321   PORT_BIT( 0xffc0, IP_ACTIVE_HIGH, IPT_UNUSED )
322322
323   PORT_START   /* c0018/c001a upper 8 bits */
323   PORT_START_TAG("SERVICE")   /* c0018/c001a upper 8 bits */
324324   PORT_BIT( 0x00ff, IP_ACTIVE_HIGH, IPT_UNUSED )
325   PORT_BIT( 0x0100, IP_ACTIVE_HIGH, IPT_UNUSED )
326   PORT_SERVICE( 0x0200, IP_ACTIVE_HIGH )
327   PORT_BIT( 0x0400, IP_ACTIVE_HIGH, IPT_UNUSED )
325   PORT_BIT( 0x0100, IP_ACTIVE_HIGH, IPT_SERVICE1 )
326   PORT_BIT( 0x0200, IP_ACTIVE_HIGH, IPT_SERVICE ) /* Hold F2 at bootup */
327   PORT_BIT( 0x0400, IP_ACTIVE_HIGH, IPT_UNUSED )  /* Freeze game */
328328   PORT_BIT( 0x0800, IP_ACTIVE_HIGH, IPT_COIN2 )
329329   PORT_BIT( 0x1000, IP_ACTIVE_HIGH, IPT_COIN1 )
330330   PORT_BIT( 0x2000, IP_ACTIVE_HIGH, IPT_START1 )
331331   PORT_BIT( 0x4000, IP_ACTIVE_HIGH, IPT_START2 )
332332   PORT_BIT( 0x8000, IP_ACTIVE_HIGH, IPT_UNUSED )
333333
334   PORT_START   /* c001c DIP switches */
335   PORT_DIPNAME( 0x000f, 0x0000, DEF_STR( Coin_A ))
334   PORT_START_TAG("DSW")   /* c001c DIP switches */
335   PORT_DIPNAME( 0x000f, 0x0000, DEF_STR( Coin_A )) PORT_DIPLOCATION("SWA:1,2,3,4")
336336   PORT_DIPSETTING(      0x000d, DEF_STR( 3C_1C ))
337337   PORT_DIPSETTING(      0x000c, DEF_STR( 2C_1C ))
338338   PORT_DIPSETTING(      0x0005, "6 Coins/4 Credits")
r1418r1419
345345   PORT_DIPSETTING(      0x000a, DEF_STR( 1C_4C ))
346346   PORT_DIPSETTING(      0x000b, DEF_STR( 1C_5C ))
347347   PORT_DIPSETTING(      0x0004, DEF_STR( 1C_6C ))
348   PORT_DIPNAME( 0x00f0, 0x0000, DEF_STR( Coin_B ))
348   PORT_DIPNAME( 0x00f0, 0x0000, DEF_STR( Coin_B )) PORT_DIPLOCATION("SWA:5,6,7,8")
349349   PORT_DIPSETTING(      0x00d0, DEF_STR( 3C_1C ))
350350   PORT_DIPSETTING(      0x00c0, DEF_STR( 2C_1C ))
351351   PORT_DIPSETTING(      0x0050, "6 Coins/4 Credits")
r1418r1419
358358   PORT_DIPSETTING(      0x00a0, DEF_STR( 1C_4C ))
359359   PORT_DIPSETTING(      0x00b0, DEF_STR( 1C_5C ))
360360   PORT_DIPSETTING(      0x0040, DEF_STR( 1C_6C ))
361   PORT_DIPNAME( 0x0300, 0x0000, DEF_STR( Difficulty ))
361
362
363   PORT_DIPNAME( 0x0300, 0x0000, DEF_STR( Difficulty )) PORT_DIPLOCATION("SWB:1,2")
362364   PORT_DIPSETTING(      0x0200, DEF_STR( Easy ) )
363365   PORT_DIPSETTING(      0x0000, DEF_STR( Normal ) )
364366   PORT_DIPSETTING(      0x0100, DEF_STR( Hard ) )
365367   PORT_DIPSETTING(      0x0300, DEF_STR( Hardest ) )
366   PORT_DIPNAME( 0x0400, 0x0400, DEF_STR( Lives ))
368   PORT_DIPNAME( 0x0400, 0x0000, DEF_STR( Lives )) PORT_DIPLOCATION("SWB:3")
367369   PORT_DIPSETTING(      0x0000, "2" )
368370   PORT_DIPSETTING(      0x0400, "3" )
369   PORT_DIPNAME( 0x0800, 0x0000, "Laser" )
371   PORT_DIPNAME( 0x0800, 0x0000, "Laser" ) PORT_DIPLOCATION("SWB:4")
370372   PORT_DIPSETTING(      0x0000, "Manual" )
371373   PORT_DIPSETTING(      0x0800, "Semi-Automatic" )
372   PORT_DIPNAME( 0x1000, 0x0000, "Extended Play" )
374   PORT_DIPNAME( 0x1000, 0x0000, "Extended Play" ) PORT_DIPLOCATION("SWB:5")
373375   PORT_DIPSETTING(      0x0000, "500000 points" )
374376   PORT_DIPSETTING(      0x1000, DEF_STR( None ) )
375   PORT_DIPNAME( 0x2000, 0x2000, DEF_STR( Demo_Sounds ))
377   PORT_DIPNAME( 0x2000, 0x2000, DEF_STR( Demo_Sounds )) PORT_DIPLOCATION("SWB:6")
376378   PORT_DIPSETTING(      0x0000, DEF_STR( Off ))
377379   PORT_DIPSETTING(      0x2000, DEF_STR( On ))
378   PORT_DIPNAME( 0x4000, 0x0000, DEF_STR( Continues ) )
380   PORT_DIPNAME( 0x4000, 0x0000, DEF_STR( Continues ) ) PORT_DIPLOCATION("SWB:7")
379381   PORT_DIPSETTING(      0x4000, DEF_STR( Off ))
380382   PORT_DIPSETTING(      0x0000, DEF_STR( On ))
381   PORT_DIPNAME( 0x8000, 0x0000, DEF_STR( Flip_Screen ))
383   PORT_DIPNAME( 0x8000, 0x0000, DEF_STR( Flip_Screen )) PORT_DIPLOCATION("SWB:8")
382384   PORT_DIPSETTING(      0x0000, DEF_STR( Off ))
383385   PORT_DIPSETTING(      0x8000, DEF_STR( On ))
384386INPUT_PORTS_END
385387
386388
387389static INPUT_PORTS_START( rabiolep )
388   PORT_START   /* c0018 lower 8 bits */
389   PORT_BIT( 0x0001, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
390   PORT_BIT( 0x0002, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
391   PORT_BIT( 0x0004, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1)
392   PORT_BIT( 0x0008, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1)
393   PORT_BIT( 0x0010, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(1)
394   PORT_BIT( 0x0020, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(1)
395   PORT_BIT( 0xffc0, IP_ACTIVE_HIGH, IPT_UNUSED )
390   PORT_INCLUDE( rpunch )
396391
397   PORT_START   /* c001a lower 8 bits */
398   PORT_BIT( 0x0001, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2)
399   PORT_BIT( 0x0002, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2)
400   PORT_BIT( 0x0004, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2)
401   PORT_BIT( 0x0008, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2)
402   PORT_BIT( 0x0010, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(2)
403   PORT_BIT( 0x0020, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(2)
404   PORT_BIT( 0xffc0, IP_ACTIVE_HIGH, IPT_UNUSED )
405
406   PORT_START   /* c0018/c001a upper 8 bits */
407   PORT_BIT( 0x00ff, IP_ACTIVE_HIGH, IPT_UNUSED )
408   PORT_BIT( 0x0100, IP_ACTIVE_HIGH, IPT_UNUSED )
409   PORT_SERVICE( 0x0200, IP_ACTIVE_HIGH )
410   PORT_BIT( 0x0400, IP_ACTIVE_HIGH, IPT_UNUSED )
411   PORT_BIT( 0x0800, IP_ACTIVE_HIGH, IPT_COIN2 )
412   PORT_BIT( 0x1000, IP_ACTIVE_HIGH, IPT_COIN1 )
413   PORT_BIT( 0x2000, IP_ACTIVE_HIGH, IPT_START1 )
414   PORT_BIT( 0x4000, IP_ACTIVE_HIGH, IPT_START2 )
415   PORT_BIT( 0x8000, IP_ACTIVE_HIGH, IPT_UNUSED )
416
417   PORT_START   /* c001c DIP switches */
418   PORT_DIPNAME( 0x000f, 0x0000, DEF_STR( Coin_A ))
419   PORT_DIPSETTING(      0x000d, DEF_STR( 3C_1C ))
420   PORT_DIPSETTING(      0x000c, DEF_STR( 2C_1C ))
421   PORT_DIPSETTING(      0x0005, "6 Coins/4 Credits")
422   PORT_DIPSETTING(      0x0000, DEF_STR( 1C_1C ))
423   PORT_DIPSETTING(      0x0003, "5 Coins/6 Credits" )
424   PORT_DIPSETTING(      0x0002, DEF_STR( 4C_5C ))
425   PORT_DIPSETTING(      0x0006, DEF_STR( 2C_3C ))
426   PORT_DIPSETTING(      0x0008, DEF_STR( 1C_2C ))
427   PORT_DIPSETTING(      0x0009, DEF_STR( 1C_3C ))
428   PORT_DIPSETTING(      0x000a, DEF_STR( 1C_4C ))
429   PORT_DIPSETTING(      0x000b, DEF_STR( 1C_5C ))
430   PORT_DIPSETTING(      0x0004, DEF_STR( 1C_6C ))
431   PORT_DIPNAME( 0x00f0, 0x0000, DEF_STR( Coin_B ))
432   PORT_DIPSETTING(      0x00d0, DEF_STR( 3C_1C ))
433   PORT_DIPSETTING(      0x00c0, DEF_STR( 2C_1C ))
434   PORT_DIPSETTING(      0x0050, "6 Coins/4 Credits")
435   PORT_DIPSETTING(      0x0000, DEF_STR( 1C_1C ))
436   PORT_DIPSETTING(      0x0030, "5 Coins/6 Credits" )
437   PORT_DIPSETTING(      0x0020, DEF_STR( 4C_5C ))
438   PORT_DIPSETTING(      0x0060, DEF_STR( 2C_3C ))
439   PORT_DIPSETTING(      0x0080, DEF_STR( 1C_2C ))
440   PORT_DIPSETTING(      0x0090, DEF_STR( 1C_3C ))
441   PORT_DIPSETTING(      0x00a0, DEF_STR( 1C_4C ))
442   PORT_DIPSETTING(      0x00b0, DEF_STR( 1C_5C ))
443   PORT_DIPSETTING(      0x0040, DEF_STR( 1C_6C ))
444   PORT_DIPNAME( 0x0300, 0x0000, DEF_STR( Difficulty ))
445   PORT_DIPSETTING(      0x0200, DEF_STR( Easy ) )
446   PORT_DIPSETTING(      0x0000, DEF_STR( Normal ) )
447   PORT_DIPSETTING(      0x0100, DEF_STR( Hard ) )
448   PORT_DIPSETTING(      0x0300, DEF_STR( Hardest ) )
449   PORT_DIPNAME( 0x0400, 0x0000, DEF_STR( Lives ))
450   PORT_DIPSETTING(      0x0400, "2" )
392   PORT_MODIFY("DSW")
393   PORT_DIPNAME( 0x0400, 0x0000, DEF_STR( Lives )) PORT_DIPLOCATION("SWB:3")
451394   PORT_DIPSETTING(      0x0000, "3" )
452   PORT_DIPNAME( 0x0800, 0x0000, "Laser" )
453   PORT_DIPSETTING(      0x0800, "Manual" )
395   PORT_DIPSETTING(      0x0400, "2" )
396   PORT_DIPNAME( 0x0800, 0x0000, "Laser" ) PORT_DIPLOCATION("SWB:4")
454397   PORT_DIPSETTING(      0x0000, "Semi-Automatic" )
455   PORT_DIPNAME( 0x1000, 0x0000, "Extended Play" )
398   PORT_DIPSETTING(      0x0800, "Manual" )
399   PORT_DIPNAME( 0x1000, 0x0000, "Extended Play" ) PORT_DIPLOCATION("SWB:5")
456400   PORT_DIPSETTING(      0x0000, "500000 points" )
457401   PORT_DIPSETTING(      0x1000, "300000 points" )
458   PORT_DIPNAME( 0x2000, 0x0000, DEF_STR( Demo_Sounds ))
402   PORT_DIPNAME( 0x2000, 0x0000, DEF_STR( Demo_Sounds )) PORT_DIPLOCATION("SWB:6")
459403   PORT_DIPSETTING(      0x2000, DEF_STR( Off ))
460404   PORT_DIPSETTING(      0x0000, DEF_STR( On ))
461   PORT_DIPNAME( 0x4000, 0x0000, DEF_STR( Continues ) )
462   PORT_DIPSETTING(      0x4000, DEF_STR( Off ))
463   PORT_DIPSETTING(      0x0000, DEF_STR( On ))
464   PORT_DIPNAME( 0x8000, 0x0000, DEF_STR( Flip_Screen ))
465   PORT_DIPSETTING(      0x0000, DEF_STR( Off ))
466   PORT_DIPSETTING(      0x8000, DEF_STR( On ))
467405INPUT_PORTS_END
468406
469407
470408
471409static INPUT_PORTS_START( svolley )
472   PORT_START   /* c0018 lower 8 bits */
473   PORT_BIT( 0x0001, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
474   PORT_BIT( 0x0002, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
475   PORT_BIT( 0x0004, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1)
476   PORT_BIT( 0x0008, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1)
477   PORT_BIT( 0x0010, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(1)
478   PORT_BIT( 0x0020, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(1)
479   PORT_BIT( 0xffc0, IP_ACTIVE_HIGH, IPT_UNUSED )
410   PORT_INCLUDE( rpunch )
480411
481   PORT_START   /* c001a lower 8 bits */
482   PORT_BIT( 0x0001, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2)
483   PORT_BIT( 0x0002, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2)
484   PORT_BIT( 0x0004, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2)
485   PORT_BIT( 0x0008, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2)
486   PORT_BIT( 0x0010, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(2)
487   PORT_BIT( 0x0020, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(2)
488   PORT_BIT( 0xffc0, IP_ACTIVE_HIGH, IPT_UNUSED )
412   PORT_MODIFY("SERVICE")
413   PORT_BIT( 0x0200, IP_ACTIVE_HIGH, IPT_UNUSED )
489414
490   PORT_START   /* c0018/c001a upper 8 bits */
491   PORT_BIT( 0x00ff, IP_ACTIVE_HIGH, IPT_UNUSED )
492   PORT_BIT( 0x0700, IP_ACTIVE_HIGH, IPT_UNUSED )
493   PORT_BIT( 0x0800, IP_ACTIVE_HIGH, IPT_COIN2 )
494   PORT_BIT( 0x1000, IP_ACTIVE_HIGH, IPT_COIN1 )
495   PORT_BIT( 0x2000, IP_ACTIVE_HIGH, IPT_START1 )
496   PORT_BIT( 0x4000, IP_ACTIVE_HIGH, IPT_START2 )
497   PORT_BIT( 0x8000, IP_ACTIVE_HIGH, IPT_UNUSED )
498
499   PORT_START   /* c001c DIP switches */
500   PORT_DIPNAME( 0x000f, 0x0000, DEF_STR( Coin_A ))
501   PORT_DIPSETTING(      0x000d, DEF_STR( 3C_1C ))
502   PORT_DIPSETTING(      0x000c, DEF_STR( 2C_1C ))
503   PORT_DIPSETTING(      0x0005, "6 Coins/4 Credits")
504   PORT_DIPSETTING(      0x0000, DEF_STR( 1C_1C ))
505   PORT_DIPSETTING(      0x0003, "5 Coins/6 Credits" )
506   PORT_DIPSETTING(      0x0002, DEF_STR( 4C_5C ))
507   PORT_DIPSETTING(      0x0006, DEF_STR( 2C_3C ))
508   PORT_DIPSETTING(      0x0008, DEF_STR( 1C_2C ))
509   PORT_DIPSETTING(      0x0009, DEF_STR( 1C_3C ))
510   PORT_DIPSETTING(      0x000a, DEF_STR( 1C_4C ))
511   PORT_DIPSETTING(      0x000b, DEF_STR( 1C_5C ))
512   PORT_DIPSETTING(      0x0004, DEF_STR( 1C_6C ))
513   PORT_DIPNAME( 0x00f0, 0x0000, DEF_STR( Coin_B ))
514   PORT_DIPSETTING(      0x00d0, DEF_STR( 3C_1C ))
515   PORT_DIPSETTING(      0x00c0, DEF_STR( 2C_1C ))
516   PORT_DIPSETTING(      0x0050, "6 Coins/4 Credits")
517   PORT_DIPSETTING(      0x0000, DEF_STR( 1C_1C ))
518   PORT_DIPSETTING(      0x0030, "5 Coins/6 Credits" )
519   PORT_DIPSETTING(      0x0020, DEF_STR( 4C_5C ))
520   PORT_DIPSETTING(      0x0060, DEF_STR( 2C_3C ))
521   PORT_DIPSETTING(      0x0080, DEF_STR( 1C_2C ))
522   PORT_DIPSETTING(      0x0090, DEF_STR( 1C_3C ))
523   PORT_DIPSETTING(      0x00a0, DEF_STR( 1C_4C ))
524   PORT_DIPSETTING(      0x00b0, DEF_STR( 1C_5C ))
525   PORT_DIPSETTING(      0x0040, DEF_STR( 1C_6C ))
526   PORT_DIPNAME( 0x0100, 0x0000, DEF_STR( Game_Time ))
415   PORT_MODIFY("DSW")
416   PORT_DIPNAME( 0x0100, 0x0000, DEF_STR( Game_Time )) PORT_DIPLOCATION("SWB:1")
527417   PORT_DIPSETTING(      0x0100, "2 min/1 min" )
528418   PORT_DIPSETTING(      0x0000, "3 min/1.5 min" )
529   PORT_DIPNAME( 0x0600, 0x0000, "2P Starting Score" )
419   PORT_DIPNAME( 0x0600, 0x0000, "2P Starting Score" ) PORT_DIPLOCATION("SWB:2,3")
530420   PORT_DIPSETTING(      0x0600, "0-0" )
531421   PORT_DIPSETTING(      0x0400, "5-5" )
532422   PORT_DIPSETTING(      0x0000, "7-7" )
533423   PORT_DIPSETTING(      0x0200, "9-9" )
534   PORT_DIPNAME( 0x1800, 0x0000, "1P Starting Score" )
424   PORT_DIPNAME( 0x1800, 0x0000, "1P Starting Score" ) PORT_DIPLOCATION("SWB:4,5")
535425   PORT_DIPSETTING(      0x1000, "9-11" )
536426   PORT_DIPSETTING(      0x1800, "10-10" )
537427   PORT_DIPSETTING(      0x0800, "10-11" )
538428   PORT_DIPSETTING(      0x0000, "11-11" )
539   PORT_SERVICE( 0x2000, IP_ACTIVE_HIGH )
540   PORT_DIPNAME( 0x4000, 0x4000, DEF_STR( Demo_Sounds ))
429   PORT_SERVICE_DIPLOC( 0x2000, IP_ACTIVE_HIGH, "SWB:6" )
430   PORT_DIPNAME( 0x4000, 0x4000, DEF_STR( Demo_Sounds )) PORT_DIPLOCATION("SWB:7")
541431   PORT_DIPSETTING(      0x0000, DEF_STR( Off ))
542432   PORT_DIPSETTING(      0x4000, DEF_STR( On ))
543   PORT_DIPNAME( 0x8000, 0x0000, DEF_STR( Flip_Screen ))
544   PORT_DIPSETTING(      0x0000, DEF_STR( Off ))
545   PORT_DIPSETTING(      0x8000, DEF_STR( On ))
546433INPUT_PORTS_END
547434
548435
src/mame/drivers/segas18.c
r1418r1419
131131   { 0 }
132132};
133133
134static const struct segaic16_memory_map_entry *region_info_list[] =
134static const struct segaic16_memory_map_entry *const region_info_list[] =
135135{
136136   &rom_171_shad_info[0],
137137   &rom_171_5874_info[0],
src/tools/regrep.c
r1418r1419
8888static summary_list lists[MAX_COMPARES];
8989static int list_count;
9090
91static const char *bucket_name[] =
91static const char *const bucket_name[] =
9292{
9393   "Unknown",
9494   "Games That Have Improved",
r1418r1419
112112   BUCKET_CONSISTENT_ERROR
113113};
114114
115static const char *status_text[] =
115static const char *const status_text[] =
116116{
117117   "",
118118   "Success",
r1418r1419
124124   "Other Unknown Error"
125125};
126126
127static const char *status_color[] =
127static const char *const status_color[] =
128128{
129129   "",
130130   "bgcolor=\"#00A000\"",
src/tools/chdman.c
r1418r1419
5959    GLOBAL VARIABLES
6060***************************************************************************/
6161
62static const char *error_strings[] =
62static const char *const error_strings[] =
6363{
6464   "no error",
6565   "no drive interface",
src/tools/romcmp.c
r1418r1419
5151      MODE_E, MODE_O,
5252      MODE_E12, MODE_O12, MODE_E22, MODE_O22,
5353      TOTAL_MODES };
54const char *modenames[] =
54const char *const modenames[] =
5555{
5656   "          ",
5757   "[bits 0-3]",
src/osd/windows/input.c
r1418r1419
20322032         // otherwise, update it as a lightgun
20332033         else
20342034         {
2035            devinfo->mouse.raw_x = normalize_absolute_axis(data->lLastX, 0, 0xffff);
2036            devinfo->mouse.raw_y = normalize_absolute_axis(data->lLastY, 0, 0xffff);
2035            devinfo->mouse.state.lX = normalize_absolute_axis(data->lLastX, 0, 0xffff);
2036            devinfo->mouse.state.lY = normalize_absolute_axis(data->lLastY, 0, 0xffff);
20372037
20382038            // also clear the polling function so win32_lightgun_poll isn't called
20392039            devinfo->poll = NULL;
src/emu/cpu/m68000/m68kconf.h
r1418r1419
33/* ======================================================================== */
44/*
55 *                                  MUSASHI
6 *                                Version 3.31
6 *                                Version 3.32
77 *
88 * A portable Motorola M680x0 processor emulation engine.
99 * Copyright 1998-2007 Karl Stenerud.  All rights reserved.
r1418r1419
1212 * copyright notice remains unaltered in the source code and any binary files
1313 * containing this code in compiled form.
1414 *
15 * All other lisencing terms must be negotiated with the author
15 * All other licensing terms must be negotiated with the author
1616 * (Karl Stenerud).
1717 *
1818 * The latest version of this code can be obtained at:
src/emu/cpu/m68000/m68kcpu.h
r1418r1419
44/* ======================================================================== */
55/*
66 *                                  MUSASHI
7 *                                Version 3.31
7 *                                Version 3.32
88 *
99 * A portable Motorola M680x0 processor emulation engine.
1010 * Copyright 1998-2007 Karl Stenerud.  All rights reserved.
r1418r1419
1313 * copyright notice remains unaltered in the source code and any binary files
1414 * containing this code in compiled form.
1515 *
16 * All other lisencing terms must be negotiated with the author
16 * All other licensing terms must be negotiated with the author
1717 * (Karl Stenerud).
1818 *
1919 * The latest version of this code can be obtained at:
r1418r1419
591591#if M68K_LOG_ENABLE
592592   #include <stdio.h>
593593   extern FILE* M68K_LOG_FILEHANDLE
594   extern char* m68ki_cpu_names[];
594   extern const char *const m68ki_cpu_names[];
595595
596596   #define M68K_DO_LOG(A) if(M68K_LOG_FILEHANDLE) fprintf A
597597   #if M68K_LOG_1010_1111
r1418r1419
893893   uint cyc_movem_l;
894894   uint cyc_shift;
895895   uint cyc_reset;
896   uint8* cyc_instruction;
897   uint8* cyc_exception;
896   const uint8* cyc_instruction;
897   const uint8* cyc_exception;
898898
899899   /* Callbacks to host */
900900   int  (*int_ack_callback)(int int_line);           /* Interrupt Acknowledge */
r1418r1419
913913extern m68ki_cpu_core m68ki_cpu;
914914extern sint           m68ki_remaining_cycles;
915915extern uint           m68ki_tracing;
916extern uint8          m68ki_shift_8_table[];
917extern uint16         m68ki_shift_16_table[];
918extern uint           m68ki_shift_32_table[];
919extern uint8          m68ki_exception_cycle_table[][256];
916extern const uint8    m68ki_shift_8_table[];
917extern const uint16   m68ki_shift_16_table[];
918extern const uint     m68ki_shift_32_table[];
919extern const uint8    m68ki_exception_cycle_table[][256];
920920extern uint           m68ki_address_space;
921extern uint8          m68ki_ea_idx_cycle_table[];
921extern const uint8    m68ki_ea_idx_cycle_table[];
922922
923923extern uint           m68ki_aerr_address;
924924extern uint           m68ki_aerr_write_mode;
src/emu/cpu/m68000/m68kmake.c
r1418r1419
33/* ======================================================================== */
44/*
55 *                                  MUSASHI
6 *                                Version 3.31
6 *                                Version 3.32
77 *
88 * A portable Motorola M680x0 processor emulation engine.
99 * Copyright 1998-2007 Karl Stenerud.  All rights reserved.
r1418r1419
1212 * copyright notice remains unaltered in the source code and any binary files
1313 * containing this code in compiled form.
1414 *
15 * All other lisencing terms must be negotiated with the author
15 * All other licensing terms must be negotiated with the author
1616 * (Karl Stenerud).
1717 *
1818 * The latest version of this code can be obtained at:
r1418r1419
5252 */
5353
5454
55static const char* g_version = "3.31";
55static const char g_version[] = "3.32";
5656
5757/* ======================================================================== */
5858/* =============================== INCLUDES =============================== */
r1418r1419
227227void add_replace_string(replace_struct* replace, const char* search_str, const char* replace_str);
228228void write_body(FILE* filep, body_struct* body, replace_struct* replace);
229229void get_base_name(char* base_name, opcode_struct* op);
230void write_prototype(FILE* filep, char* base_name);
231230void write_function_name(FILE* filep, char* base_name);
232231void add_opcode_output_table_entry(opcode_struct* op, char* name);
233232static int DECL_SPEC compare_nof_true_bits(const void* aptr, const void* bptr);
r1418r1419
265264opcode_struct g_opcode_output_table[MAX_OPCODE_OUTPUT_TABLE_LENGTH];
266265int g_opcode_output_table_length = 0;
267266
268ea_info_struct g_ea_info_table[13] =
267const ea_info_struct g_ea_info_table[13] =
269268{/* fname    ea        mask  match */
270269   {"",     "",       0x00, 0x00}, /* EA_MODE_NONE */
271270   {"ai",   "AY_AI",  0x38, 0x10}, /* EA_MODE_AI   */
r1418r1419
283282};
284283
285284
286const char* g_cc_table[16][2] =
285const char *const g_cc_table[16][2] =
287286{
288287   { "t",  "T"}, /* 0000 */
289288   { "f",  "F"}, /* 0001 */
r1418r1419
304303};
305304
306305/* size to index translator (0 -> 0, 8 and 16 -> 1, 32 -> 2) */
307int g_size_select_table[33] =
306const int g_size_select_table[33] =
308307{
309308   0,                                    /* unsized */
310309   0, 0, 0, 0, 0, 0, 0, 1,                     /*    8    */
r1418r1419
314313
315314/* Extra cycles required for certain EA modes */
316315/* TODO: correct timings for 040 */
317int g_ea_cycle_table[13][NUM_CPUS][3] =
316const int g_ea_cycle_table[13][NUM_CPUS][3] =
318317{/*       000           010           020           040  */
319318   {{ 0,  0,  0}, { 0,  0,  0}, { 0,  0,  0}, { 0,  0,  0}}, /* EA_MODE_NONE */
320319   {{ 0,  4,  8}, { 0,  4,  8}, { 0,  4,  4}, { 0,  4,  4}}, /* EA_MODE_AI   */
r1418r1419
332331};
333332
334333/* Extra cycles for JMP instruction (000, 010) */
335int g_jmp_cycle_table[13] =
334const int g_jmp_cycle_table[13] =
336335{
337336    0, /* EA_MODE_NONE */
338337    4, /* EA_MODE_AI   */
r1418r1419
350349};
351350
352351/* Extra cycles for JSR instruction (000, 010) */
353int g_jsr_cycle_table[13] =
352const int g_jsr_cycle_table[13] =
354353{
355354    0, /* EA_MODE_NONE */
356355    4, /* EA_MODE_AI   */
r1418r1419
368367};
369368
370369/* Extra cycles for LEA instruction (000, 010) */
371int g_lea_cycle_table[13] =
370const int g_lea_cycle_table[13] =
372371{
373372    0, /* EA_MODE_NONE */
374373    4, /* EA_MODE_AI   */
r1418r1419
386385};
387386
388387/* Extra cycles for PEA instruction (000, 010) */
389int g_pea_cycle_table[13] =
388const int g_pea_cycle_table[13] =
390389{
391390    0, /* EA_MODE_NONE */
392391    6, /* EA_MODE_AI   */
r1418r1419
404403};
405404
406405/* Extra cycles for MOVEM instruction (000, 010) */
407int g_movem_cycle_table[13] =
406const int g_movem_cycle_table[13] =
408407{
409408    0, /* EA_MODE_NONE */
410409    0, /* EA_MODE_AI   */
r1418r1419
422421};
423422
424423/* Extra cycles for MOVES instruction (010) */
425int g_moves_cycle_table[13][3] =
424const int g_moves_cycle_table[13][3] =
426425{
427426   { 0,  0,  0}, /* EA_MODE_NONE */
428427   { 0,  4,  6}, /* EA_MODE_AI   */
r1418r1419
440439};
441440
442441/* Extra cycles for CLR instruction (010) */
443int g_clr_cycle_table[13][3] =
442const int g_clr_cycle_table[13][3] =
444443{
445444   { 0,  0,  0}, /* EA_MODE_NONE */
446445   { 0,  4,  6}, /* EA_MODE_AI   */
r1418r1419
778777      sprintf(base_name+strlen(base_name), "_%s", op->spec_ea);
779778}
780779
781/* Write the prototype of an opcode handler function */
782void write_prototype(FILE* filep, char* base_name)
783{
784   fprintf(filep, "void %s(void);\n", base_name);
785}
786
787780/* Write the name of an opcode handler function */
788781void write_function_name(FILE* filep, char* base_name)
789782{
790   fprintf(filep, "void %s(void)\n", base_name);
783   fprintf(filep, "static void %s(void)\n", base_name);
791784}
792785
793786void add_opcode_output_table_entry(opcode_struct* op, char* name)
r1418r1419
870863   /* Set the opcode structure and write the tables, prototypes, etc */
871864   set_opcode_struct(opinfo, op, ea_mode);
872865   get_base_name(str, op);
873   write_prototype(g_prototype_file, str);
874866   add_opcode_output_table_entry(op, str);
875867   write_function_name(filep, str);
876868
src/emu/cpu/m68000/m68kmame.c
r1418r1419
580580      /* --- the following bits of info are returned as NULL-terminated strings --- */
581581      case CPUINFO_STR_NAME:                     strcpy(info->s, "68000");            break;
582582      case CPUINFO_STR_CORE_FAMILY:               strcpy(info->s, "Motorola 68K");      break;
583      case CPUINFO_STR_CORE_VERSION:               strcpy(info->s, "3.31");               break;
583      case CPUINFO_STR_CORE_VERSION:               strcpy(info->s, "3.32");               break;
584584      case CPUINFO_STR_CORE_FILE:                  strcpy(info->s, __FILE__);            break;
585585      case CPUINFO_STR_CORE_CREDITS:               strcpy(info->s, "Copyright 1998-2007 Karl Stenerud. All rights reserved. (2.1 fixes HJB)"); break;
586586
r1418r1419
759759      /* --- the following bits of info are returned as NULL-terminated strings --- */
760760      case CPUINFO_STR_NAME:                     strcpy(info->s, "68008");            break;
761761      case CPUINFO_STR_CORE_FAMILY:               strcpy(info->s, "Motorola 68K");      break;
762      case CPUINFO_STR_CORE_VERSION:               strcpy(info->s, "3.31");               break;
762      case CPUINFO_STR_CORE_VERSION:               strcpy(info->s, "3.32");               break;
763763      case CPUINFO_STR_CORE_FILE:                  strcpy(info->s, __FILE__);            break;
764764      case CPUINFO_STR_CORE_CREDITS:               strcpy(info->s, "Copyright 1998-2007 Karl Stenerud. All rights reserved. (2.1 fixes HJB)"); break;
765765
r1418r1419
999999      /* --- the following bits of info are returned as NULL-terminated strings --- */
10001000      case CPUINFO_STR_NAME:                     strcpy(info->s, "68020");            break;
10011001      case CPUINFO_STR_CORE_FAMILY:               strcpy(info->s, "Motorola 68K");      break;
1002      case CPUINFO_STR_CORE_VERSION:               strcpy(info->s, "3.31");               break;
1002      case CPUINFO_STR_CORE_VERSION:               strcpy(info->s, "3.32");               break;
10031003      case CPUINFO_STR_CORE_FILE:                  strcpy(info->s, __FILE__);            break;
10041004      case CPUINFO_STR_CORE_CREDITS:               strcpy(info->s, "Copyright 1998-2007 Karl Stenerud. All rights reserved. (2.1 fixes HJB)"); break;
10051005
r1418r1419
12401240      /* --- the following bits of info are returned as NULL-terminated strings --- */
12411241      case CPUINFO_STR_NAME:                     strcpy(info->s, "68040");            break;
12421242      case CPUINFO_STR_CORE_FAMILY:               strcpy(info->s, "Motorola 68K");      break;
1243      case CPUINFO_STR_CORE_VERSION:               strcpy(info->s, "3.31");               break;
1243      case CPUINFO_STR_CORE_VERSION:               strcpy(info->s, "3.32");               break;
12441244      case CPUINFO_STR_CORE_FILE:                  strcpy(info->s, __FILE__);            break;
12451245      case CPUINFO_STR_CORE_CREDITS:               strcpy(info->s, "Copyright 1998-2007 Karl Stenerud. All rights reserved. (2.1 fixes HJB)"); break;
12461246
src/emu/cpu/m68000/m68k.h
r1418r1419
66/* ======================================================================== */
77/*
88 *                                  MUSASHI
9 *                                Version 3.31
9 *                                Version 3.32
1010 *
1111 * A portable Motorola M680x0 processor emulation engine.
1212 * Copyright 1998-2007 Karl Stenerud.  All rights reserved.
r1418r1419
1515 * copyright notice remains unaltered in the source code and any binary files
1616 * containing this code in compiled form.
1717 *
18 * All other lisencing terms must be negotiated with the author
18 * All other licensing terms must be negotiated with the author
1919 * (Karl Stenerud).
2020 *
2121 * The latest version of this code can be obtained at:
src/emu/cpu/m68000/m68kdasm.c
r1418r1419
33/* ======================================================================== */
44/*
55 *                                  MUSASHI
6 *                                Version 3.31
6 *                                Version 3.32
77 *
88 * A portable Motorola M680x0 processor emulation engine.
99 * Copyright 1998-2007 Karl Stenerud.  All rights reserved.
r1418r1419
1212 * copyright notice remains unaltered in the source code and any binary files
1313 * containing this code in compiled form.
1414 *
15 * All other lisencing terms must be negotiated with the author
15 * All other licensing terms must be negotiated with the author
1616 * (Karl Stenerud).
1717 *
1818 * The latest version of this code can be obtained at:
r1418r1419
208208static uint g_rawbasepc;
209209
210210/* used by ops like asr, ror, addq, etc */
211static uint g_3bit_qdata_table[8] = {8, 1, 2, 3, 4, 5, 6, 7};
211static const uint g_3bit_qdata_table[8] = {8, 1, 2, 3, 4, 5, 6, 7};
212212
213static uint g_5bit_data_table[32] =
213static const uint g_5bit_data_table[32] =
214214{
215215   32,  1,  2,  3,  4,  5,  6,  7,  8,  9, 10, 11, 12, 13, 14, 15,
216216   16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31
217217};
218218
219static const char* g_cc[16] =
219static const char *const g_cc[16] =
220220{"t", "f", "hi", "ls", "cc", "cs", "ne", "eq", "vc", "vs", "pl", "mi", "ge", "lt", "gt", "le"};
221221
222static const char* g_cpcc[64] =
222static const char *const g_cpcc[64] =
223223{/* 000    001    010    011    100    101    110    111 */
224224     "f",  "eq", "ogt", "oge", "olt", "ole", "ogl",  "or", /* 000 */
225225    "un", "ueq", "ugt", "uge", "ult", "ule",  "ne",   "t", /* 001 */
src/emu/cpu/m68000/m68k_in.c
r1418r1419
88/* ======================================================================== */
99/*
1010 *                                  MUSASHI
11 *                                Version 3.31
11 *                                Version 3.32
1212 *
1313 * A portable Motorola M680x0 processor emulation engine.
1414 * Copyright 1998-2007 Karl Stenerud.  All rights reserved.
r1418r1419
1717 * copyright notice remains unaltered in the source code and any binary files
1818 * containing this code in compiled form.
1919 *
20 * All other lisencing terms must be negotiated with the author
20 * All other licensing terms must be negotiated with the author
2121 * (Karl Stenerud).
2222 *
2323 * The latest version of this code can be obtained at:
r1418r1419
141141
142142
143143/* Opcode handler table */
144static opcode_handler_struct m68k_opcode_handler_table[] =
144static const opcode_handler_struct m68k_opcode_handler_table[] =
145145{
146146/*   function                      mask    match    000  010  020  040 */
147147
r1418r1419
157157/* Build the opcode handler jump table */
158158void m68ki_build_opcode_table(void)
159159{
160   opcode_handler_struct *ostruct;
160   const opcode_handler_struct *ostruct;
161161   int instr;
162162   int i;
163163   int j;
src/emu/cpu/m68000/m68kcpu.c
r1418r1419
33/* ======================================================================== */
44
55#if 0
6static const char* copyright_notice =
6static const char copyright_notice[] =
77"MUSASHI\n"
8"Version 3.31 (2007-07-09)\n"
8"Version 3.32 (2007-12-15)\n"
99"A portable Motorola M680x0 processor emulation engine.\n"
1010"Copyright 1998-2007 Karl Stenerud.  All rights reserved.\n"
1111"\n"
r1418r1419
1313"copyright notice remains unaltered in the source code and any binary files\n"
1414"containing this code in compiled form.\n"
1515"\n"
16"All other lisencing terms must be negotiated with the author\n"
16"All other licensing terms must be negotiated with the author\n"
1717"(Karl Stenerud).\n"
1818"\n"
1919"The latest version of this code can be obtained at:\n"
r1418r1419
4949uint m68ki_address_space;
5050
5151#ifdef M68K_LOG_ENABLE
52const char* m68ki_cpu_names[] =
52const char *const m68ki_cpu_names[] =
5353{
5454   "Invalid CPU",
5555   "M68000",
r1418r1419
8383uint    m68ki_aerr_fc;
8484
8585/* Used by shift & rotate instructions */
86uint8 m68ki_shift_8_table[65] =
86const uint8 m68ki_shift_8_table[65] =
8787{
8888   0x00, 0x80, 0xc0, 0xe0, 0xf0, 0xf8, 0xfc, 0xfe, 0xff, 0xff, 0xff, 0xff,
8989   0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
r1418r1419
9292   0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
9393   0xff, 0xff, 0xff, 0xff, 0xff
9494};
95uint16 m68ki_shift_16_table[65] =
95const uint16 m68ki_shift_16_table[65] =
9696{
9797   0x0000, 0x8000, 0xc000, 0xe000, 0xf000, 0xf800, 0xfc00, 0xfe00, 0xff00,
9898   0xff80, 0xffc0, 0xffe0, 0xfff0, 0xfff8, 0xfffc, 0xfffe, 0xffff, 0xffff,
r1418r1419
103103   0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff,
104104   0xffff, 0xffff
105105};
106uint m68ki_shift_32_table[65] =
106const uint m68ki_shift_32_table[65] =
107107{
108108   0x00000000, 0x80000000, 0xc0000000, 0xe0000000, 0xf0000000, 0xf8000000,
109109   0xfc000000, 0xfe000000, 0xff000000, 0xff800000, 0xffc00000, 0xffe00000,
r1418r1419
122122/* Number of clock cycles to use for exception processing.
123123 * I used 4 for any vectors that are undocumented for processing times.
124124 */
125uint8 m68ki_exception_cycle_table[4][256] =
125const uint8 m68ki_exception_cycle_table[4][256] =
126126{
127127   { /* 000 */
128128        4, /*  0: Reset - Initial Stack Pointer                      */
r1418r1419
418418   }
419419};
420420
421uint8 m68ki_ea_idx_cycle_table[64] =
421const uint8 m68ki_ea_idx_cycle_table[64] =
422422{
423423    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
424424    0, /* ..01.000 no memory indirect, base NULL             */
src/emu/cpu/mips/mdrc64.c
r1418r1419
11651165static void exception_trap(void)
11661166{
11671167   if ((mips3.core->cpr[0][COP0_Cause] & 0xff) != 0)
1168      printf("Exception: EPC=%08X Cause=%08X BadVAddr=%08X Jmp=%08X\n", mips3.core->cpr[0][COP0_EPC], mips3.core->cpr[0][COP0_Cause], mips3.core->cpr[0][COP0_BadVAddr], mips3.core->pc);
1168      printf("Exception: EPC=%08X Cause=%08X BadVAddr=%08X Jmp=%08X\n", (UINT32)mips3.core->cpr[0][COP0_EPC], (UINT32)mips3.core->cpr[0][COP0_Cause], (UINT32)mips3.core->cpr[0][COP0_BadVAddr], mips3.core->pc);
11691169}
11701170
11711171
r1418r1419
27102710{
27112711   UINT32 op = *desc->opptr.l;
27122712   UINT8 opswitch = op & 63;
2713   emit_link link1;
2713   emit_link link1 = { 0 };
27142714
27152715   switch (opswitch)
27162716   {
src/emu/sound/m58817.c
r0r1419
1/******************************************************************************
2
3     M58817 interface
4
5     Written for MAME by couriersud
6
7     - structure from TMS5110 interface
8     - this is a wrapper around the TMS5110 interface
9     - M58817 & TMS5110 seem to be similar, however it is very probable
10       that they use different "coding" tables for energy, pitch
11     - Speech is understandable, but off
12     - This driver supports to use a "sample" interface instead as well
13
14******************************************************************************/
15
16#include <math.h>
17
18#include "sndintrf.h"
19#include "streams.h"
20#include "tms5110.h"
21#include "m58817.h"
22#include "sound/samples.h"
23
24
25#define MAX_SAMPLE_CHUNK   10000
26
27enum {
28   WAIT_CMD,
29   WAIT_WRITE,
30   WAIT_DONE1,
31   WAIT_DONE2
32} m58817_states;
33
34/* the state of the streamed output */
35struct m58817_info
36{
37   const struct M58817interface *intf;
38   sound_stream *stream;
39   void *chip;
40   UINT8 state;
41   UINT8 drq;
42   UINT8 nibbles[4];
43   UINT8 command_latch;
44   INT32 count;
45   INT32 address;
46   INT32 speech_rom_bitnum;
47};
48
49
50/* static function prototypes */
51static void m58817_update(void *param, stream_sample_t **inputs, stream_sample_t **buffer, int length);
52
53static int speech_rom_read_bit(void)
54{
55   struct m58817_info *info = sndti_token(SOUND_M58817, 0);
56   const UINT8 *table = memory_region(info->intf->rom_region);
57
58   int r;
59
60   if (info->speech_rom_bitnum<0)
61      r = 0;
62   else
63      r = (table[info->speech_rom_bitnum >> 3] >> (0x07 - (info->speech_rom_bitnum & 0x07))) & 1;
64   //r = (table[speech_rom_bitnum >> 3] >> ((speech_rom_bitnum & 0x07))) & 1;
65   info->speech_rom_bitnum++;
66   //printf("Byte: 0x%02x\n", speech_rom_bitnum>>3);
67   return r;
68}
69
70/******************************************************************************
71
72     m58817_state_loop -- process commands
73
74******************************************************************************/
75
76static void m58817_state_loop(void *chip, int data)
77{
78   struct m58817_info *info = chip;
79   int i;
80   switch (info->state)
81   {
82      case WAIT_CMD:
83         switch (data)
84         {
85            case 0x00: // reset ????
86               info->count=0;
87               /*To be extremely accurate there should be a delays between each of
88                      the function calls below. In real they happen with the frequency of 160 kHz.
89                    */
90
91               if (info->intf->rom_region != -1)
92               {
93                  tms5110_CTL_set(info->chip, TMS5110_CMD_RESET);
94                  tms5110_PDC_set(info->chip, 0);
95                  tms5110_PDC_set(info->chip, 1);
96                  tms5110_PDC_set(info->chip, 0);
97
98                  tms5110_PDC_set(info->chip, 0);
99                  tms5110_PDC_set(info->chip, 1);
100                  tms5110_PDC_set(info->chip, 0);
101
102                  tms5110_PDC_set(info->chip, 0);
103                  tms5110_PDC_set(info->chip, 1);
104                  tms5110_PDC_set(info->chip, 0);
105
106                  info->speech_rom_bitnum = 0x0;
107               }
108               break;
109            case 0x02: // latch next nibbel
110               info->state=WAIT_WRITE;
111               break;
112            case 0x08: // play ????
113               info->state=WAIT_DONE1;
114               break;
115            default:
116               logerror("m58817: unknown cmd : 0x%02x\n", data);
117         }
118         break;
119      case WAIT_WRITE:
120         info->nibbles[info->count++] = data & 0x0f;
121         info->state=WAIT_CMD;
122         break;
123      case WAIT_DONE1:
124         if (data != 0x0A)
125            logerror("m58817: expected 0x0A got 0x%02x\n", data);
126         info->address = 0;
127         for (i=0;i<info->count;i++)
128         {
129            info->address |= (info->nibbles[i] << (i*4));
130         }
131         logerror("m58817: address: 0x%04x\n", info->address);
132
133
134         if (info->intf->rom_region != -1)
135         {
136            info->speech_rom_bitnum = info->address * 8 - 1;
137            tms5110_CTL_set(info->chip, TMS5110_CMD_SPEAK);
138            tms5110_PDC_set(info->chip, 0);
139            tms5110_PDC_set(info->chip, 1);
140            tms5110_PDC_set(info->chip, 0);
141         }
142         else
143         {
144            for (i=0;i<M58817_MAX_SAMPLES;i++)
145               if (info->intf->sample_addr[i] == info->address)
146               {
147                  sample_start(0,i,0);
148                  break;
149               }
150         }
151
152         info->state=WAIT_CMD;
153         break;
154   }
155}
156
157
158/******************************************************************************
159
160     m58817_start -- allocate buffers and reset the 5110
161
162******************************************************************************/
163
164static void *m58817_start(int sndindex, int clock, const void *config)
165{
166   static const struct M58817interface dummy = { 0 };
167   struct m58817_info *info;
168
169   info = auto_malloc(sizeof(*info));
170   memset(info, 0, sizeof(*info));
171   info->intf = config ? config : &dummy;
172
173   if (info->intf->rom_region != -1)
174   {
175      info->chip = tms5110_create(sndindex);
176      if (!info->chip)
177         return NULL;
178   }
179   sndintrf_register_token(info);
180
181   /* initialize a stream */
182   if (info->intf->rom_region != -1)
183   {
184      info->stream = stream_create(0, 1, clock / 80, info, m58817_update);
185      tms5110_set_M0_callback(info->chip, speech_rom_read_bit );
186       /* reset the 58817 */
187       tms5110_reset_chip(info->chip);
188   }
189
190   state_save_register_item("m58817", sndindex, info->state);
191   state_save_register_item("m58817", sndindex, info->drq);
192   state_save_register_item_array("m58817", sndindex, info->nibbles);
193   state_save_register_item("m58817", sndindex, info->count);
194   state_save_register_item("m58817", sndindex, info->address);
195   state_save_register_item("m58817", sndindex, info->speech_rom_bitnum);
196
197    /* request a sound channel */
198    return info;
199}
200
201
202
203/******************************************************************************
204
205     m58817_stop -- free buffers
206
207******************************************************************************/
208
209static void m58817_stop(void *chip)
210{
211   struct m58817_info *info = chip;
212   if (info->intf->rom_region != -1)
213      tms5110_destroy(info->chip);
214}
215
216
217static void m58817_reset(void *chip)
218{
219   struct m58817_info *info = chip;
220   if (info->intf->rom_region != -1)
221      tms5110_reset_chip(info->chip);
222   info->state = WAIT_CMD;
223   info->drq = 0;
224   info->command_latch = 0;
225   info->count=0;
226}
227
228
229
230/******************************************************************************
231
232     m58817_CTL_w -- write Control Command to the sound chip
233     commands like Speech, Reset, etc., are loaded into the chip via the CTL pins
234
235******************************************************************************/
236
237WRITE8_HANDLER( m58817_CTL_w )
238{
239   struct m58817_info *info = sndti_token(SOUND_M58817, 0);
240
241    /* bring up to date first */
242    //stream_update(info->stream);
243    info->command_latch = data & 0x0f;
244}
245
246/******************************************************************************
247
248     m58817_DRQ_w -- write to DRQ pin on the sound chip
249
250******************************************************************************/
251
252WRITE8_HANDLER( m58817_DRQ_w )
253{
254   struct m58817_info *info = sndti_token(SOUND_M58817, 0);
255
256    /* bring up to date first */
257   if (info->intf->rom_region != -1)
258       stream_update(info->stream);
259   if (!data & info->drq)
260      m58817_state_loop(info, info->command_latch);
261   info->drq = data;
262}
263
264
265
266/******************************************************************************
267
268     m58817_status_r -- read status from the sound chip
269
270******************************************************************************/
271
272READ8_HANDLER( m58817_status_r )
273{
274   struct m58817_info *info = sndti_token(SOUND_M58817, 0);
275
276    /* bring up to date first */
277   if (info->intf->rom_region != -1)
278       stream_update(info->stream);
279   if (info->intf->rom_region != -1)
280       return tms5110_status_read(info->chip);
281   else
282      return sample_playing(0);
283}
284
285
286
287/******************************************************************************
288
289     m58817_update -- update the sound chip so that it is in sync with CPU execution
290
291******************************************************************************/
292
293static void m58817_update(void *param, stream_sample_t **inputs, stream_sample_t **_buffer, int length)
294{
295   struct m58817_info *info = param;
296   INT16 sample_data[MAX_SAMPLE_CHUNK];
297   stream_sample_t *buffer = _buffer[0];
298
299   /* loop while we still have samples to generate */
300   while (length)
301   {
302      int samples = (length > MAX_SAMPLE_CHUNK) ? MAX_SAMPLE_CHUNK : length;
303      int index;
304
305      /* generate the samples and copy to the target buffer */
306      tms5110_process(info->chip, sample_data, samples);
307      for (index = 0; index < samples; index++)
308         *buffer++ = sample_data[index];
309
310      /* account for the samples */
311      length -= samples;
312   }
313}
314
315
316
317/******************************************************************************
318
319     m58817_set_frequency -- adjusts the playback frequency
320
321******************************************************************************/
322
323void m58817_set_frequency(int frequency)
324{
325   struct m58817_info *info = sndti_token(SOUND_M58817, 0);
326   stream_set_sample_rate(info->stream, frequency / 80);
327}
328
329
330
331
332/**************************************************************************
333 * Generic get_info
334 **************************************************************************/
335
336static void m58817_set_info(void *token, UINT32 state, sndinfo *info)
337{
338   switch (state)
339   {
340      /* no parameters to set */
341   }
342}
343
344
345void m58817_get_info(void *token, UINT32 state, sndinfo *info)
346{
347   switch (state)
348   {
349      /* --- the following bits of info are returned as 64-bit signed integers --- */
350
351      /* --- the following bits of info are returned as pointers to data or functions --- */
352      case SNDINFO_PTR_SET_INFO:                  info->set_info = m58817_set_info;   break;
353      case SNDINFO_PTR_START:                     info->start = m58817_start;         break;
354      case SNDINFO_PTR_STOP:                     info->stop = m58817_stop;         break;
355      case SNDINFO_PTR_RESET:                     info->reset = m58817_reset;         break;
356
357      /* --- the following bits of info are returned as NULL-terminated strings --- */
358      case SNDINFO_STR_NAME:                     info->s = "M58817";               break;
359      case SNDINFO_STR_CORE_FAMILY:               info->s = "Mitsubishi Speech";      break;
360      case SNDINFO_STR_CORE_VERSION:               info->s = "1.0";               break;
361      case SNDINFO_STR_CORE_FILE:                  info->s = __FILE__;               break;
362      case SNDINFO_STR_CORE_CREDITS:               info->s = "Copyright (c) 2007, The MAME Team"; break;
363   }
364}
365
src/emu/sound/m58817.h
r0r1419
1#ifndef m58817_h
2#define m58817_h
3
4/* clock rate = 80 * output sample rate,     */
5/* usually 640000 for 8000 Hz sample rate or */
6/* usually 800000 for 10000 Hz sample rate.  */
7
8#define M58817_MAX_SAMPLES 20
9
10struct M58817interface
11{
12   int rom_region;                     /* set to -1 to use samples */
13   int sample_addr[M58817_MAX_SAMPLES];
14};
15
16WRITE8_HANDLER( m58817_CTL_w );
17WRITE8_HANDLER( m58817_DRQ_w );
18
19READ8_HANDLER( m58817_status_r );
20
21void m58817_set_frequency(int frequency);
22
23#endif
24
src/emu/sound/sidvoice.c
r1418r1419
99static UINT8 triangleTable[4096];
1010static UINT8 sawtoothTable[4096];
1111static UINT8 squareTable[2*4096];
12static UINT8* waveform30;
13static UINT8* waveform50;
14static UINT8* waveform60;
15static UINT8* waveform70;
12static const UINT8* waveform30;
13static const UINT8* waveform50;
14static const UINT8* waveform60;
15static const UINT8* waveform70;
1616#if defined(LARGE_NOISE_TABLE)
1717  static UINT8 noiseTableMSB[1<<8];
1818  static UINT8 noiseTableLSB[1L<<16];
r1418r1419
750750        waveform70 = waveform70_6581;  /* really audible? */
751751   }
752752
753   for ( i = 4096; i < 8192; i++ )
754   {
755      waveform50[i] = 0;
756      waveform60[i] = 0;
757      waveform70[i] = 0;
758   }
759
760753   if ( type==MOS8580 )
761754   {
762755      sidModeNormalTable[3] = sidMode30;
src/emu/sound/scsp.c
r1418r1419
22    Sega/Yamaha YMF292-F (SCSP = Saturn Custom Sound Processor) emulation
33    By ElSemi
44    MAME/M1 conversion and cleanup by R. Belmont
5    Additional code and bugfixes by kingshriek
56
67    This chip has 32 voices.  Each voice can play a sample or be part of
78    an FM construct.  Unlike traditional Yamaha FM chips, the base waveform
89    for the FM still comes from the wavetable RAM.
910
10    Unsupported:
11        - FM mode (VF3 uses it, Hanagumi might late in the title song...)
12
1311    ChangeLog:
1412    * November 25, 2003 (ES) Fixed buggy timers and envelope overflows.
1513                        (RB) Improved sample rates other than 44100, multiple
r1418r1419
2018    * January 8, 2005   (RB) Added ability to specify region offset for RAM.
2119    * January 26, 2007  (ES) Added on-board DSP capability
2220    * September 24, 2007 (RB+ES) Removed fake reverb.  Rewrote timers and IRQ handling.
23                              Fixed case where voice frequency is updated while looping.
24                  Enabled DSP again.
21                             Fixed case where voice frequency is updated while looping.
22                             Enabled DSP again.
23    * December 16, 2007 (kingshriek) Many EG bug fixes, implemented effects mixer,
24                             implemented FM.
2525*/
2626
2727#include <math.h>
r1418r1419
7676#define SDIR(slot)      ((slot->udata.data[0x6]>>0x0)&0x0100)
7777#define TL(slot)      ((slot->udata.data[0x6]>>0x0)&0x00FF)
7878
79#define MDL(slot)      ((slot->udata.data[0x7]>>0xB)&0x0007)
79#define MDL(slot)      ((slot->udata.data[0x7]>>0xC)&0x000F)
8080#define MDXSL(slot)      ((slot->udata.data[0x7]>>0x6)&0x003F)
8181#define MDYSL(slot)      ((slot->udata.data[0x7]>>0x0)&0x003F)
8282
r1418r1419
138138   UINT8 active;   //this slot is currently playing
139139   UINT8 *base;      //samples base address
140140   UINT32 cur_addr;   //current play address (24.8)
141   UINT32 nxt_addr;   //next play address
141142   UINT32 step;      //pitch step (24.8)
142143   struct _EG EG;         //Envelope
143144   struct _LFO PLFO;      //Phase LFO
r1418r1419
375376   int rate;
376377   if(octave&8) octave=octave-16;
377378   if(KRS(slot)!=0xf)
378      rate=2*(octave+KRS(slot))+((FNS(slot)>>9)&1);
379      rate=octave+2*KRS(slot)+((FNS(slot)>>9)&1);
379380   else
380381      rate=0; //rate=((FNS(slot)>>9)&1);
381382
r1418r1419
443444static UINT32 SCSP_Step(struct _SLOT *slot)
444445{
445446   int octave=OCT(slot);
446   int Fn;
447   UINT64 Fn;
447448
448449   Fn=(FNS_Table[FNS(slot)]);   //24.8
449450   if(octave&8)
r1418r1419
470471   slot->active=1;
471472   start_offset = PCM8B(slot) ? SA(slot) : SA(slot) & 0x7FFFE;
472473   slot->base=SCSP->SCSPRAM + start_offset;
473   slot->cur_addr=0;
474    slot->cur_addr=0;
475   slot->nxt_addr=1<<SHIFT;
474476   slot->step=SCSP_Step(slot);
475477   Compute_EG(SCSP,slot);
476478   slot->EG.state=ATTACK;
r1418r1419
11581160{
11591161   INT32 sample;
11601162   int step=slot->step;
1161   UINT32 addr;
1163   UINT32 addr1,addr2,addr_select;                                   // current and next sample addresses
1164   UINT32 *addr[2]      = {&addr1, &addr2};                          // used for linear interpolation
1165   UINT32 *slot_addr[2] = {&(slot->cur_addr), &(slot->nxt_addr)};    //
11621166
11631167   if(SSCTL(slot)!=0)   //no FM or noise yet
11641168      return 0;
r1418r1419
11691173      step>>=SHIFT;
11701174   }
11711175
1172   if(PCM8B(slot))
1173      addr=slot->cur_addr>>SHIFT;
1174   else
1175      addr=(slot->cur_addr>>(SHIFT-1)) & 0x7fffe;
1176/*
1177    if(MDL(slot)!=0 || MDXSL(slot)!=0 || MDYSL(slot)!=0)
1176     if(PCM8B(slot))
1177    {
1178       addr1=slot->cur_addr>>SHIFT;
1179       addr2=slot->nxt_addr>>SHIFT;
1180    }
1181     else
1182    {
1183       addr1=(slot->cur_addr>>(SHIFT-1))&0x7fffe;
1184       addr2=(slot->nxt_addr>>(SHIFT-1))&0x7fffe;
1185    }
1186
1187   /*if(MDL(slot)!=0 || MDXSL(slot)!=0 || MDYSL(slot)!=0)
11781188    {
1179        INT32 smp;
1180        smp=(SCSP->RINGBUF[(SCSP->BUFPTR+MDXSL(slot))&63]+SCSP->RINGBUF[(SCSP->BUFPTR+MDYSL(slot))&63])/2;
1189        INT32 smp=(SCSP->RINGBUF[(SCSP->BUFPTR+MDXSL(slot))&63]+SCSP->RINGBUF[(SCSP->BUFPTR+MDYSL(slot))&63])/2;
1190        INT32 cycle=LEA(slot)-LSA(slot); // cycle corresponds to 2 pi
11811191
1182        smp>>=11;
1183        addr+=smp;
1192        smp*=cycle; // associate cycle with full 16-bit sample range
1193        smp>>=0x1A-MDL(slot); // ex. for MDL=0xF, sample range corresponds to +/- 64 pi (32=2^5 cycles) so shift by 11 (16-5 == 0x1A-0xF)
1194        while(smp<0) smp+=cycle; smp%=cycle; // keep modulation sampler within a single cycle
1195        if(!PCM8B(slot)) smp<<=1;
1196
1197        addr1+=smp; addr2+=smp;
11841198        if(!PCM8B(slot))
1185            addr&=0x7fffe;
1199        {
1200            addr1&=0x7fffe; addr2&=0x7fffe;
1201        }
11861202        else
1187            addr&=0x7ffff;
1188    }
1189*/
1190    if(addr==LSA(slot))
1191    {
1192       if(LPSLNK(slot) && slot->EG.state==ATTACK)
1193          slot->EG.state = DECAY1;
1194    }
1203        {
1204            addr1&=0x7ffff; addr2&=0x7ffff;
1205        }
1206    }*/
11951207
1196   if(PCM8B(slot))   //8 bit signed
1197   {
1198      INT8 *p=(INT8 *) (slot->base+BYTE_XOR_BE((slot->cur_addr>>SHIFT)));
1199      INT32 s;
1200      INT32 fpart=slot->cur_addr&((1<<SHIFT)-1);
1201      s=(int) (p[0]<<8)*((1<<SHIFT)-fpart)+(int) slot->Prev*fpart;
1202      sample=(s>>SHIFT);
1203      slot->Prev=p[0]<<8;
1208     if(PCM8B(slot))   //8 bit signed
1209     {
1210       INT8 *p1=(signed char *) (SCSP->SCSPRAM+((SA(slot)+addr1)^1));
1211       INT8 *p2=(signed char *) (SCSP->SCSPRAM+((SA(slot)+addr2)^1));
1212        //sample=(p[0])<<8;
1213        INT32 s;
1214        INT32 fpart=slot->cur_addr&((1<<SHIFT)-1);
1215       s=(int) (p1[0]<<8)*((1<<SHIFT)-fpart)+(int) (p2[0]<<8)*fpart;
1216        sample=(s>>SHIFT);
1217     }
1218     else   //16 bit signed (endianness?)
1219     {
1220       INT16 *p1=(signed short *) (slot->base+addr1);
1221       INT16 *p2=(signed short *) (slot->base+addr2);
1222        //sample=LE16(p[0]);
1223        INT32 s;
1224        INT32 fpart=slot->cur_addr&((1<<SHIFT)-1);
1225       s=(int) (p1[0])*((1<<SHIFT)-fpart)+(int) (p2[0])*fpart;
1226        sample=(s>>SHIFT);
1227     }
12041228
1205   }
1206   else   //16 bit signed
1207   {
1208      INT16 *p=(INT16 *) (slot->base+addr);
1209      INT32 s;
1210      INT32 fpart=slot->cur_addr&((1<<SHIFT)-1);
1211      s=(int) (p[0])*((1<<SHIFT)-fpart)+(int) slot->Prev*fpart;
1212      sample=(s>>SHIFT);
1213      slot->Prev=p[0];
1214
1215   }
1216
12171229   if(SBCTL(slot)&0x1)
12181230      sample ^= 0x7FFF;
12191231   if(SBCTL(slot)&0x2)
r1418r1419
12221234   if(slot->Backwards)
12231235      slot->cur_addr-=step;
12241236   else
1225   slot->cur_addr+=step;
1226   addr=slot->cur_addr>>SHIFT;
1227   switch(LPCTL(slot))
1237      slot->cur_addr+=step;
1238    slot->nxt_addr=slot->cur_addr+(1<<SHIFT);
1239
1240    addr1=slot->cur_addr>>SHIFT;
1241    addr2=slot->nxt_addr>>SHIFT;
1242
1243   if(addr1>=LSA(slot) && !(slot->Backwards))
12281244   {
1229   case 0:   //no loop
1230      if(addr>=LEA(slot))
1231      {
1232         //slot->active=0;
1233         SCSP_StopSlot(slot,0);
1234      }
1235      break;
1236   case 1: //normal loop
1237      if(addr>=LEA(slot))
1238         slot->cur_addr=LSA(slot)<<SHIFT;
1239      break;
1240   case 2:   //reverse loop
1241      if(addr>=LEA(slot))
1242      {
1243         slot->cur_addr=LEA(slot)<<SHIFT;
1244         slot->Backwards=1;
1245      }
1246      if(addr<LSA(slot) || (addr&0x80000000))
1247         slot->cur_addr=LEA(slot)<<SHIFT;
1248      break;
1249   case 3: //ping-pong
1250      if(addr>=LEA(slot)) //reached end, reverse till start
1251      {
1252         slot->cur_addr=LEA(slot)<<SHIFT;
1253         slot->Backwards=1;
1254      }
1255      if((addr<LSA(slot) || (addr&0x80000000)) && (slot->Backwards))//reached start or negative
1256      {
1257         slot->cur_addr=LSA(slot)<<SHIFT;
1258         slot->Backwards=0;
1259      }
1260      break;
1245      if(LPSLNK(slot) && slot->EG.state==ATTACK)
1246         slot->EG.state = DECAY1;
12611247   }
12621248
1249    for (addr_select=0;addr_select<2;addr_select++)
1250     {
1251       switch(LPCTL(slot))
1252        {
1253       case 0:   //no loop
1254          if(*addr[addr_select]>=LSA(slot) && *addr[addr_select]>=LEA(slot))
1255          {
1256           //slot->active=0;
1257           SCSP_StopSlot(slot,0);
1258          }
1259          break;
1260       case 1: //normal loop
1261          if(*addr[addr_select]>=LEA(slot))
1262             *slot_addr[addr_select]=LSA(slot)<<SHIFT;
1263          break;
1264       case 2:   //reverse loop
1265          if((*addr[addr_select]>=LSA(slot)) && !(slot->Backwards))
1266          {
1267             *slot_addr[addr_select]=LEA(slot)<<SHIFT;
1268             slot->Backwards=1;
1269          }
1270          if((*addr[addr_select]<=LSA(slot) || (*slot_addr[addr_select]&0x80000000)) && slot->Backwards)
1271             *slot_addr[addr_select]=LEA(slot)<<SHIFT;
1272          break;
1273       case 3: //ping-pong
1274          if(*addr[addr_select]>=LEA(slot)) //reached end, reverse till start
1275          {
1276             *slot_addr[addr_select]=LEA(slot)<<SHIFT;
1277             slot->Backwards=1;
1278          }
1279          if((*addr[addr_select]<=LSA(slot) || (*slot_addr[addr_select]&0x80000000)) && slot->Backwards)//reached start or negative
1280          {
1281             *slot_addr[addr_select]=LSA(slot)<<SHIFT;
1282             slot->Backwards=0;
1283          }
1284          break;
1285        }
1286     }
1287
12631288   if(ALFOS(slot)!=0)
12641289   {
12651290      sample=sample*ALFO_Step(&(slot->ALFO));
12661291      sample>>=SHIFT;
12671292   }
12681293
1269   if(!STWINH(slot))
1270      *RBUFDST=sample;
1271
12721294   if(slot->EG.state==ATTACK)
12731295      sample=(sample*EG_Update(slot))>>SHIFT;
12741296   else
12751297      sample=(sample*EG_TABLE[EG_Update(slot)>>(SHIFT-10)])>>SHIFT;
12761298
1299   if(!STWINH(slot))
1300      *RBUFDST=sample;
1301
12771302   return sample;
12781303}
12791304
r1418r1419
12931318
12941319      for(sl=0;sl<32;++sl)
12951320      {
1321         RBUFDST=SCSP->RINGBUF+SCSP->BUFPTR;
12961322         if(SCSP->Slots[sl].active)
12971323         {
12981324            struct _SLOT *slot=SCSP->Slots+sl;
12991325            unsigned short Enc;
13001326            signed int sample;
13011327
1302            RBUFDST=SCSP->RINGBUF+SCSP->BUFPTR;
13031328            sample=SCSP_UpdateSlot(SCSP, slot);
1304            ++SCSP->BUFPTR;
1305            SCSP->BUFPTR&=63;
1329
13061330#ifdef USEDSP
1307             Enc=((TL(slot))<<0x0)|((IMXL(slot))<<0xd);
1308             SCSPDSP_SetSample(&SCSP->DSP,(sample*SCSP->LPANTABLE[Enc])>>SHIFT,ISEL(slot),IMXL(slot));
1331            Enc=((TL(slot))<<0x0)|((IMXL(slot))<<0xd);
1332            SCSPDSP_SetSample(&SCSP->DSP,(sample*SCSP->LPANTABLE[Enc])>>(SHIFT-2),ISEL(slot),IMXL(slot));
13091333#endif
13101334            Enc=((TL(slot))<<0x0)|((DIPAN(slot))<<0x8)|((DISDL(slot))<<0xd);
13111335            {
1312                smpl+=(sample*SCSP->LPANTABLE[Enc])>>SHIFT;
1313                smpr+=(sample*SCSP->RPANTABLE[Enc])>>SHIFT;
1336               smpl+=(sample*SCSP->LPANTABLE[Enc])>>SHIFT;
1337               smpr+=(sample*SCSP->RPANTABLE[Enc])>>SHIFT;
13141338            }
13151339         }
1316
1340         --SCSP->BUFPTR;
1341         SCSP->BUFPTR&=63;
13171342      }
13181343
13191344      SCSPDSP_Step(&SCSP->DSP);
src/emu/sound/sound.mak
r1418r1419
594594
595595
596596#-------------------------------------------------
597# Mitsubishi M58817 speech synthesizer
598#-------------------------------------------------
599
600SOUNDDEFS += -DHAS_M58817=$(if $(filter M58817,$(SOUNDS)),1,0)
601
602ifneq ($(filter M58817,$(SOUNDS)),)
603SOUNDOBJS += $(SOUNDOBJ)/m58817.o
604endif
605
606
607
608#-------------------------------------------------
597609# VLM5030 speech synthesizer
598610#-------------------------------------------------
599611
src/emu/sndintrf.c
r1418r1419
164164void sid8580_get_info(void *token, UINT32 state, sndinfo *info);
165165void sp0256_get_info(void *token, UINT32 state, sndinfo *info);
166166void s14001a_get_info(void *token, UINT32 state, sndinfo *info);
167void m58817_get_info(void *token, UINT32 state, sndinfo *info);
167168
168169void filter_volume_get_info(void *token, UINT32 state, sndinfo *info);
169170void filter_rc_get_info(void *token, UINT32 state, sndinfo *info);
r1418r1419
444445#if (HAS_SP0256)
445446   { SOUND_SP0256, sp0256_get_info },
446447#endif
448#if (HAS_M58817)
449   { SOUND_M58817, m58817_get_info },
450#endif
447451
448452   { SOUND_FILTER_VOLUME, filter_volume_get_info },
449453   { SOUND_FILTER_RC, filter_rc_get_info },
src/emu/sndintrf.h
r1418r1419
125125   SOUND_SID8580,
126126   SOUND_SP0256,
127127   SOUND_S14001A,
128   SOUND_M58817,
128129
129130   /* filters start here */
130131   SOUND_FILTER_VOLUME,
src/version.c
r1418r1419
99
1010***************************************************************************/
1111
12char build_version[] = "0.121.1 ("__DATE__")";
12const char build_version[] = "0.122 ("__DATE__")";
src/mess/mess.mak
r1418r1419
300300SOUNDS += SPEAKER
301301SOUNDS += CDP1869
302302#SOUNDS += S14001A
303#SOUNDS += M58817
303304SOUNDS += BEEP
304305SOUNDS += WAVE
305306SOUNDS += SID6581
docs/messnew.txt
r1418r1419
10.121.1
10.122
22
33New System Drivers Supported (in no particular order):
44------------------------------------------------------
r1418r1419
5555
5656Source Changes:
5757----------------
58- The core is based on MAME 0.121u4.  This incorporates all features of the
58- The core is based on MAME 0.122.  This incorporates all features of the
5959  update to this core.  [MAME team]
6060
6161- Changed spacing between natural keyboard key names.  [Nate Woods]
whatsnew.txt
r1418r1419
10.121
10.122
22-----
33
44
55MAMETesters Bugs Fixed
66----------------------
7dunhuang0120u3gra [Vas Crabb]
7fightfev37b2gre [johnboy]
8shootgal0121u4red [couriersud]
9mk4_0121u4ora [Aaron Giles]
10tmnt2_0121u4ora [Aaron Giles]
11lcdlightgun0121u3gra [Aaron Giles]
812
913
1014
1115Source Changes
1216--------------
13Updated DIP locations in the following drivers: [Vas Crabb]
14 - bublbobl.c: bublbobl, tokio
15 - cps1.c: all games
16 - dunhuang.c: dunhuang
17 - mario.c: marked all as active high (confirmed from manuals)
18 - segag80r.c: astrob2, astrob1, spaceod and pignewt
19 - segag80v.c: all games, fixed switch ordering
20
21Made more functions static to reduce namespace pollution.
17Continued to add const qualifiers on remaining items in the project.
2218[Atari Ace]
2319
24Improvements to the Touchmaster driver, still labelled not working.
25You can actually play tm and tm3k, but sometimes you have to reset
26because they stop registering the touchscreen input. tm4k is
27protected and hence totally unplayable. [Luca Elia]
20Added explicit clears on Neo Geo initialization. [Haze]
2821
29Fixed compilation problems with altivec accelerators. [Vas Crabb]
22Neo Geo updates: [johnboy]
23 * Added Neo-Geo game pcb info
24 * Corrected a number of incorrect ROMs
25 * Added MVS VERSION tag to fightfva, renamed 'P'-rom
26 * Added MVS AND AES VERSION tag to joyjoy
27 * Added AES VERSION tag to kof99
28 * Added MVS VERSION tag to kof99a
3029
31Fixed bug in Voodoo statistics accumulation. [Atari Ace]
30Cleaned up input ports for cave.c and rpunch.c. [Sonikos]
3231
33Reverted to old behavior where even with -switchres disabled,
34MAME will use exclusive mode when rendering with Direct3D. This
35means some of the switching to/from fullscreen mode problems will
36come back, but should prevent confusion over poor performance by
37default. [Aaron Giles]
32Another big dkong.c driver update: [couriersud]
33 - wrote M58817 sound driver and hooked it up
34     Uses tms5110 speech synthesis. LPC format is identical, however
35     coefficients seem to be different. Until coefficients are known,
36     samples are used.
37 - changed dkong/radarscp based games to use hardware-conformant
38    I8035 memory maps
39 - Added drakton clone drktnjr on dkongjr hardware
40 - moved address remapping proms to REGION_USER1 (hunchbkd & co)
41 - Service now adds credit
42 - Hooked up coin_counters
43 - remove GAME_NOT_WORKING GAME_WRONG_COLORS from hunchbkd
44 - dkongjr: mapped more interface lines between sound and cpu boards
45 - tagged all inputs, all reads use tag names
46 - moved more static vars into dkong_state
3847
39Made it a non-fatal error if we are unable to change a joystick to
40absolute mode in the Windows input code. Some drivers apparently
41freak out about this. [Aaron Giles]
48More major SCSP fixes: [kingshriek]
49 - Rewrote much of the interpolation code
50 - Improved key-rate scaling calculation
51 - Fixed playback of non-looping samples with a zero loop-end address
52 - Fixed backwards looping mode so that it initially reads forward
53    until encountering the loop-start address
54 - Preliminary but reasonable-sounding FM support
55 - Fixed overflow in frequency calculation
56 - Improved FM, but it's disabled for now because it doesn't sound
57    right yet
58 - Improved DSP wet/dry mix (should be correct now)
59 - Fixed a minor LPSLNK problem
4260
43Defined a couple more inline functions: div_64x32_rem and the
44unsigned equivalent divu_64x32_rem. Added inline implementations
45for GCC x86 and MSVC. [Aaron Giles, Vas Crabb]
61Fixed Hopper Empty and Coin-Out Timeout issues in the peplus.c driver.
62[Jim Stolis]
4663
47Cleaned up timer interfaces. Created new module attotime which manages
48a new structure type attotime, equivalent to the old mame_time. All
49time math functions are now implemented in attotime and have been
50removed from timer.h. The following search/replace over the code has
51been made:
64Removed obsolete crosshair code. [Oliver Stoneberg]
5265
53   mame_time              -> attotime
54   subseconds_t           -> attoseconds_t
55   time_zero              -> attotime_zero
56   time_never             -> attotime_never
57   
58   make_mame_make         -> attotime_make
59   mame_time_to_subseconds-> attotime_to_attoseconds
60   mame_time_to_double    -> attotime_to_double
61   double_to_mame_time    -> double_to_attotime
62   add_mame_times         -> attotime_add
63   add_subseconds_to_mame_time -> attotime_add_subseconds
64   sub_mame_times         -> attotime_sub
65   sub_subseconds_from_mame_time -> attotime_sub_subseconds
66   scale_up_mame_time     -> attotime_mul
67   scale_down_mame_time   -> attotime_div
68   compare_mame_times     -> attotime_compare
66Fixed several minor memory leaks. [Oliver Stoneberg]
6967
70   SUBSECONDS_TO_DOUBLE   -> ATTOSECONDS_TO_DOUBLE
71   DOUBLE_TO_SUBSECONDS   -> DOUBLE_TO_ATTOSECONDS
72   USEC_TO_SUBSECONDS     -> ATTOSECONDS_IN_USEC
73   SUBSECONDS_TO_HZ       -> ATTOSECONDS_TO_HZ
74   HZ_TO_SUBSECONDS       -> HZ_TO_ATTOSECONDS
75   MAME_TIME_IN_HZ        -> ATTOTIME_IN_HZ
76   MAME_TIME_IN_SEC       -> ATTOTIME_IN_SEC
77   MAME_TIME_IN_MSEC      -> ATTOTIME_IN_MSEC
78   MAME_TIME_IN_USEC      -> ATTOTIME_IN_USEC
79   MAME_TIME_IN_NSEC      -> ATTOTIME_IN_NSEC
80   MAME_TIME_TO_CYCLES    -> ATTOTIME_TO_CYCLES
81   MAME_TIME_IN_CYCLES    -> ATTOTIME_IN_CYCLES
82   
83In addition, all the mame_timer_* functions have been renamed back to
84their original names timer_*, so it is timer_set() instead of
85mame_timer_set() once again. The mame_timer object itself has been
86renamed to emu_timer.
8768
8869
89
9070New games added or promoted from NOT_WORKING status
9171---------------------------------------------------
92Best Of Best [Luca Elia]
72Orbs (10/7/94 prototype?) [Tomasz Slanina]
9373
9474
9575
9676New clones added
9777----------------
98Cluedo (prod. 2) [James Wallace]
78Soccer Brawl (set 2) [johnboy]
79Drakton (DKJr conversion) [couriersud]
9980
10081
10182
1020.120u4
830.121u4
10384-------
10485
10586
10687MAMETesters Bugs Fixed
10788----------------------
108gradius4_0120u3yel [Aaron Giles]
109vegas.c0120u3yel [Aaron Giles]
89namcos22.c_0121u1red [Aaron Giles]
11090
11191
11292
11393Source Changes
11494--------------
115Made some minor changes in the inline code. The result of
116atomic_add32 isn't used a lot of the time, so the final addition was
117brought out to allow it to be optimized away. Removed the unnecessary
118delta argument from atomic_increment32 and atomic_decrement32 in
119eminline.h, and added implementations.  Changed the condition for
120using rgbsse.h to include 32-bit platforms with SSE enabled.
121[Vas Crabb]
95Added new option -update_in_pause which enables updating the screen
96bitmap while the game is paused. This is useful for debuggin in
97some scenarios (and gets in the way in others). [Olivier Galibert]
12298
123Did a major clean-up of the input ports in ssv.c. Brought out the
124common joystick, mahjong and quiz input setups, and then used 
125PORT_INCLUDE to pull them in when needed. Also brought out the 
126common coinage settings, to avoid needless repetition. [Vas Crabb]
99Added new VIDEO_TYPE_NONE to indicate that there is no screen, and
100fixed internal UI displays to ignore resolution parameters if it is
101specified. [Dirk Best]
127102
128Analyzed all driver interfaces (DRIVER_INIT, READ8_HANDLER, etc.) to
129determine which ones should be made static and properly tagged them
130all to reduce global namespace pollution. Some cases turned out to be
131dead code, which was also properly tagged. [Atari Ace]
103Added missing consts to the files in the emu, lib, and osd
104directories. [Atari Ace]
132105
133Updated the Tube Panic driver, fixing the background scroll-in (it's
134smooth again now). The problem was caused by wrong synchronization
135between main and slave CPUs. Also modified the video driver to be
136scanline accurate and implemented more accurate interrupt handling.
137[Jarek Burczynski]
106Updated drivers to use const structs and arrays where possible.
107[Atari Ace]
138108
139Altered TTL low high levels in res_net.c. This will broaden the color
140range a bit. Since the results are normalized, there is only a limited
141effect visible. [couriersud]
109shisen improvements: [Sonikos]
110 - added dips location
111 - added dips condition
112 - remove fake dips coinage
113 - fix tow dips in matchit
142114
143Cleaned up inputs and added dip locations in ms32.c. Also fixed dips
144in "47pie2" and "akiss". [Sonikos]
115Updated inputs in qrouka to support the 3rd and 4th stick. [Sonikos]
145116
146Fixed bug that caused incorrect input to be read if multiple inputs
147were mapped to the same mouse input under Windows. [Nathan Woods]
117Fixed crash in mngwrite if the game does not have a palette.
118[Nathan Woods]
148119
149Fixed a bug in the i8051 core that improperly fired the Timer2
150interrupt when it wasn't enabled. [Jim Stolis]
120SCSP updates: [kingshriek]
121 - Added effect-in mixer
122 - Added DSP floating-point support
123 - Added bounds check to the DECAY1 EG output
124 - Fixed the saw PLFO waveform
125 - Fixed loop points so loops no longer go out of tune/include
126    garbage samples
151127
152Updates to the peplus driver: [Jim Stolis]
153 * Added lightpen support
154 * Added PE+ Superboard support
155 * Added ABC coin optics support
156 * Added full I2C eeprom support
157 * Added NVRAM support
158 * Corrected door closure issues
159 * Removed most memory hacks
160 * Consolidated machines and inputs
161 * New layout for pepp0158
128Fixed missing profiler call in video.c. [Christophe Jaillet]
162129
163Split up the MPU4 driver into a core and driver set up a la NeoGeo.
164Also made some timer fixes, and added some new ROMs added.
165[James Wallace]
130Implemented status flag in Star Wars matrix processor, which affects
131gameplay speed. [Mathis Rosenhauer]
166132
167Fixed problems introduced when the junofrst blitter code was
168simplified. [Chris Hardy]
133Changed M37710 CPU to use the CPU clock for its internal timer rather
134than a hard-coded value. Fixes tempo in Namco NA-1 games.
135[Phillip Bennett]
169136
170American Poker II major rewrite: [Roberto Fresca]
171 - Properly dervied clocks from crystals
172 - Reworked TILE_GET_INFO to handle the proper tiles/color codes.
173 - Fixed interrupts (NMI).
174 - Corrected AY8910 frequency to 1.5 MHz to match the real thing.
175 - Arranged the AY8910 volume in all games avoiding clips.
176 - Corrected the screen visible area.
177 - Added NVRAM support.
178 - Reworked the memory map, mapping all the hardware I/O ports.
179 - Reworked the Inputs for all sets.
180 - Added implementation of Operator and Supervisor Keys.
181 - Fixed some timing troubles.
182 - Added partial DIP switch support with diplocations to all sets.
183 - Removed the hack in DRIVER_INIT.
184 - Hooked write handlers for output ports.
185 - Added watchdog routines.
186 - Dumped, hooked, wired and decoded the color PROM in all sets.
187 - Modified the refresh rate according to hardware measurements.
188 - Wired the lamps for all sets. Created their respective layouts.
189 - Splitted the driver to driver/video.
190 - Other minor fixes.
137Fixed accidentally included change that allowed MAME to run in
138windowed mode if switchres was off. [Aaron Giles]
191139
192SCSP fixes: [kingshriek]
193 * Fixed DECAY1 envelope state to not exit immediately
194 * Improved support for LPSLNK and SBCTL
195 * Fixed panning calculation bug
196 * Fixed case where key-rate scaling is off
140Midway Zeus improvements: [Aaron Giles]
141 * Cleaned up video code, removed unnecessary math
142 * Added bilinear filtering
143 * Removed perspective correction
144 * Added proper video timing configuration
145 * Added lightgun support to invasn
146 * Increased resolution on fixed point math to prevent overflows
147 * Fixed texture addresses to only count even rows
148 * Added missing U/V scale factors
149 * Added solid polygon rendering support
150 * Fixed screen clear trigger
151 * Implemented fade out effect
152 * Added Z offsets
153 * Added support for splitting model commands
154 * Hooked up FIFO empty IRQ to make invasn work nicely
155 * Correct PIC values for invasn
156 * Implemented per-quad texture offsets
157 * Hooked up writes to registers during model data processing
197158
198Added support for indicating that DIP switches are reversed in the
199DIP locations view. [Vas Crabb]
200159
201Added DIP locations for Midway Tron and the Nintendo Donkey Kong
202series (dkong.c). [Vas Crabb]
203160
204Added an Altivec/VMX implementation of the RGB utilities for our
205friends with G4, G5 and POWER5 CPUs (rgbvmx.h) and added
206rgbint_bilinear_filter and rgbaint_bilinear_filter to rgbsse.h (based 
207on rgb_bilinear_filter/rgba_bilinear_filter) for completeness, as 
208these functions exist in rgbgen.h. [Vas Crabb]
209
210Updated model2.c, taitojc.c, and gticlub.c to use the new polygon
211routines. Deprecated the old poly.c and renamed polynew.* to poly.*.
212[Aaron Giles]
213
214Unified poly.c callbacks so that tri and quad callbacks work the
215same way. [Aaron Giles]
216
217Fixed display of floating point TMS32031 registers in the debugger.
218[Aaron Giles]
219
220Fixed TMS32031 ABSF opcode to work as documented and not produce a
221proper negative. [Aaron Giles]
222
223
224
225161New games added or promoted from NOT_WORKING status
226162---------------------------------------------------
227Player's Edge Plus (PP0516) Double Bonus Poker [Jim Stolis]
228Player's Edge Plus (PP0158) 4 of a Kind Bonus Poker [Jim Stolis]
229Player's Edge Plus (PP0188) Standard Draw Poker [Jim Stolis]
230Player's Edge Plus (Set038) Set Chip [Jim Stolis]
231Player's Edge Plus (BE0014) Blackjack [Jim Stolis]
232Player's Edge Plus (KE1012) Keno [Jim Stolis]
233Player's Edge Plus (PS0615) Video Slots [Jim Stolis]
234Player's Edge Plus (PS0716) Video Slots [Jim Stolis]
235Player's Edge Plus (XP000019) Deuces Wild Poker [Jim Stolis]
236Player's Edge Plus (XS000006) Triple Triple Diamond Slots [Jim Stolis]
237MPU4 Unit Test [James Wallace]
238Sigma Poker [Roberto Fresca]
163Mortal Kombat 4 [Aaron Giles]
164Shin Nihon Pro Wrestling Toukon Retsuden 3 Arcade Edition
165   [R. Belmont, smf, Guru]
166Super World Stadium '98 [R. Belmont, smf, Guru]
239167
240168
241169
242170New clones added
243171----------------
244Slipstream (950515 HISPANIC) [Guru]
245Kick and Run (US) [Brian Troha]
246American Poker 95 [Roberto Fresca]
247Poker De Win [Roberto Fresca]
172Trivia Master (set 3) [Eric Marks]
248173
249174
250175
251176New games marked as GAME_NOT_WORKING
252177------------------------------------
253Vegas Poker (Prototype) [James Wallace]
254Sigma Poker 2000 [Roberto Fresca]
178Kaiun Quiz [R. Belmont, smf, Guru]
179Super World Stadium 2000 [R. Belmont, smf, Guru]
255180
256181
257182
2580.120u3
1830.121u3
259184-------
260185
261186
262MAMETesters Bugs Fixed
263----------------------
264neodriv0117u3red [Hairu]
265kof10th0120u2yel [Robbbert]
2666800basedgames0120u2red [Curt Coder]
267mpatrol0120u2yel [Curt Coder]
268
269
270
271187Source Changes
272188--------------
273Cleaned up the inline assembly for both x86 and PPC, enabled the
274mul32 family assembly stuff on 32-bit x86, and fixed some compiler
275warnings on 64-bit GCC. In addition: [Vas Crabb]
276 * Provided single-precision reciprocal approximation code for
277    PowerPC and x86 with SSE2.
278 * Filled in all other TBD functions in eigccx86.h for completeness.
279 * Conditionalised some code in eigccppc.h so that it isn't used
280    when the compiler has 64-bit instructions available.
189Fixed colors in loverboy. [David Haywood]
281190
282Added static qualifiers and renamed symbols in MAME in an effort
283to further tidy up the global namespace. Generally generic names were
284targeted and some symbols that were both static and extern. Some
285specifics: [Atari Ace]
286 * K053247_ram was made static throughout and the existing
287    K053247_export_config was used to obtain the value in xmen.c.
288 * The enums DS1991_STATE and DSP_TYPE were unused and were therefore
289    removed.
290 * Dead code in cps3.c and thayers.c was discovered and commented out.
191Fixed buffer overflow in K054539. [BUT]
291192
292Made almost all input port definitions static. [Aaron Giles]
193SCSP improvements: [kingshriek]
194 - Added logarithmic envelope table
195 - Set envelope level to start at 0x17f in the ATTACK state
196    (0x3ff-0x280) as per Neill's notes
197 - Changed EG_SHIFT from 8 to 16 - more precision is needed to
198    differentiate the longer decay envelope times
199 - In the DECAY1-->DECAY2 transition, changed the "<=" to "<"
200 - Decreased the output of the effect out mixer a bit
201 - Fixed unaligned 16-bit samples
202 - Prevented keyoffs from killing slots when already in the release
203    state
204 - Envelope steps in the attack state are apparently exponential. To
205    account for this, I change the envelope output to linear for
206    attacks.
207 - Change the release rate calculation to use the decay table instead
208    of the attack one.
293209
294Obsoleted the GAMEB macro, which is no longer necessary. [Atari Ace]
210Fixed uninitialized variable in h6280 core. [Wilbert Pol]
295211
296Fixed casting issues in new inline validity checks. [R. Belmont]
212Added meter support to the Cobra games. Cleaned up some of the
213steppers code. [James Wallace]
297214
298Some build-related improvements to the sound cores: [Atari Ace]
299 * The SCSP dependency on mame/drivers/stv.c was removed allowing it
300    to built independent of the driver.
301 * The WAVE dependency on MESS code was made explicit, so it can be
302    built independentally of MESS.
303 * VOTRAX can now be built independentally of SAMPLES.
304 * The YM2612 core now can be built without including the YM3438 core.
305 * Unnecessary uses of BUILD_ and HAS_ macros have been removed.
306 * BUILD_ instead of HAS_ macros are used in 3812intf.c for
307    consistency with the other fm cores.
215Const-ified a number of data structures in the MAME system.
216[Atari Ace]
308217
309Added DIP locations to several SSV games (in ssv.c). [Vas Crabb]
218Added PowerPC 604 processor support. Moved PowerPC opcode tables to
219the CPU context to allow multiple simultaneous processors with
220different opcode tables. [Ville Linde]
310221
311Corrected some errors in the SH4 core and implemented store queues
312and the basics of DMA. Added a call to simulate dma transfers with
313external devices. [Samuele Zannoli]
222dkong driver updates: [couriersud]
223 - Added configuration switch to change palette between TKG02
224    (radarscp conversion) and TKG04 (dkong 2board)
225 - Added speech support (samples) to radarsc1
226 - Fixed sound for drakton and strtheat
227 - Hooked up and written 8257 dma controller
228    All dkong and dkongjr based games now use the 8257
229    All epos and 2650 based games now use the 8257
230 - Fixed 2650 games to use dkong audio as well - only cpu replaced
231    by addon board ...
232 - Updated game flags and added missing rom entries
233 - straightened memory maps
234 - Fixed bug in dkong3b memory map
235 - Externalized sound drivers to MACHINE_START in audio/dkong.c
236 - DAC Filter now uses lowpass sallen key filter
237 - Reorganized INPUT_PORTS
238 - Added Dip-Switch locations to 8ballact
239 - Fixed 8ballact according to conversion manual
240 - Reorganized code
314241
315Expanded polynew.c to support quad rendering. Converted midvunit.c
316over to using the new quad rendering, which fixes a number of
317rendering issues that have plagued the driver since the start.
318[Aaron Giles]
242Corrected a potential issue if more than one 8039/8035 is used by
243a driver. Also should fix a potential inconsistency between saving
244and loading a state. [couriersud]
319245
320Added Z-clipping logic to polynew.c. Converted namcos22 over to using
321that code. Simplified namcos22 significantly, working in quads
322throughout the lower-level pipeline and then handing the results off
323to polynew.c. [Aaron Giles]
246Added an assert to ensure that the sound clear latch value is only
247set at init time, since its value is not saved. [Aaron Giles]
324248
325Updated model3.c to use the new poly code, and changed much of the
326low-level implementation to make things easier. [Aaron Giles]
249Modified src2html to sort by filename rather than assuming that the
250osd file finding routines would do so. [Aaron Giles]
327251
328Defined a couple of new functions in eminline.h: atomic_increment32
329and atomic_decrement32. [Aaron Giles]
252Fix memory system regression caused by recent optimization. Fixed
253another bug uncovered as a result in the decrypted opcode management.
254[Aaron Giles]
330255
256More Zeus improvements. Converted over to 64-bit data and simplified
257the logic to work more like the hardware. [Aaron Giles]
331258
332259
260
333261New games added or promoted from NOT_WORKING status
334262---------------------------------------------------
335Every Second Counts [Philip Bennett]
336Treble Top [Philip Bennett]
337Quizvaders [Philip Bennett]
263The Block Kuzushi (JAPAN) [Guru, smf]
264Wrestle War (Mega-Tech) [Mame Italia]
338265
339266
340267
341268New clones added
342269----------------
343Extermination (Japan) [Corrado Tomaselli]
344Gang Busters (set 2) [Patrik Styrnell]
345Trog (rev LA5 03/29/91) [icronnya77]
270Puzzle & Action: BoMulEul Chajara (Korea) [Guru, David Haywood]
271DaeJeon! SanJeon SuJeon (Korea) [Guru, David Haywood]
272Success Joe (World) [Corrado Tomaselli]
346273
347274
348275
349276New games marked as GAME_NOT_WORKING
350277------------------------------------
351Inquizitor [Philip Bennett]
278Stress Busters [Guru, David Haywood]
279Magical Zunou Power [Guru, David Haywood]
280Draw 80 Poker [Jim Stolis]
2811 on 1 Government (JAPAN) [Guru, smf]
352282
353283
354284
3550.120u2
2850.121u2
356286-------
357287
358288
359289MAMETesters Bugs Fixed
360290----------------------
361hornet0120u1red [Ville Linde]
362srmp6_0120u1ora [Aaron Giles]
363291
364292
365
366293Source Changes
367294--------------
368Rewrote ACIA6850 implementation. [Curt Coder]
295Added speedup hack to the mosaicf2 driver. [David Haywood]
369296
370Did a complete overhaul of the Mad Alien driver. [Stefan Jokish]
371 - merged memory maps and added mirror addresses
372 - doubled sound chip frequency
373 - implemented IRQ acknowledge for the sound CPU
374 - added stub functions for missing discrete sounds
375 - re-implemented tilemaps (now the tunnel walls scroll into view)
376 - hooked up 6845 CRT controller
377 - made several fixes related to color handling
378 - cleaned up inputs and added dip switch locations
379 - raised main CPU speed (guesswork)
380 - added save state support
297Fixed BCD math error in i8051 core. [stephh]
381298
382Repaired the IC24 timer behaviour to fix some of Deal 'Em's bugs,
383and also added inputs. [James Wallace]
299Fixed the m6800 cpu core so that the cpu variants can be compiled
300independently once again. [Atari Ace]
384301
385Added save state support to skykid. [Mike Haaland]
302More formally separated the RSP core from the N64 driver. [Atari Ace]
386303
387Fixed tiny.mak based on new source reorg. [Tiago Pierezan Camargo]
304Fixed invalid dips in panicr and added dip locations. [Sonikos]
388305
389Added support for CR-589 firmware to the System 573 driver. Made
390substantial changes to the SCSI support, making it require fewer
391hacks, and allowing one device to be derived from another. Also
392added save state support. [smf]
306Switched some #defines in the core over to enums. Also adjusted the
307GAME macro so that it results in const data, and that it is defined
308in terms of the more generic GAMEL macro. [Atari Ace]
393309
394Added SCI support to M6803/HD63701. [Curt Coder]
310Converted some more unnecessary globals into statics. [Atari Ace]
395311
396Fixed several misnamed sound samples interfaces. [Atari Ace]
312Fixes the M68008 data bus to properly use 8-bit accesses. [Curt Coder]
397313
398Switched model1 lookup functions to be index based rather than
399requiring a linear scan. [Atari Ace]
314Cleaned up the peplus.c driver. Added MACHINE_RESET to fix autohold
315option. Added layouts for several types of games. [stephh]
400316
401Added generic I2C bus memory support. Hooked up to the cubocd32
402driver. [smf]
317Fix array overrun in get_num_dips. [Nathan Woods, Michael Zapf]
403318
404Cleaned up inline assembly support: [Aaron Giles]
405 * moved all inlinable functions into new module eminline.h
406 * defined a number of new inline functions, including:
407    - 32x32 -> 64 bit multiply
408    - fast approximate floating point reciprocal
409 * removed old inline definitions from osinline.h, osd_cpu.h, etc.
410 * eminline.h contains C implementations of everything
411 * new module eigccx86.h contains GCC-compatible x86/64 versions
412 * new module eigccppc.h contains GCC-compatible PowerPC versions
413 * eminline.h automatically detects GCC environments and includes
414    appropriate file
415 * osinline.h now only used in non-GCC environments
416 * updated osd/windows/osinline.h to contain MSVC-compatible versions
319Moved redundant check for bank switching out of inline code, which
320nets a small speedup in the midwunit driver. [Christophe Jaillet]
417321
418Added NORM implementation to the TMS32031 core. [Aaron Giles]
322Added save state support to a number of Konami custom chips. [Lei Wu]
419323
420Created new rgbutil module which consists of inline functions for
421common RGB manipulation. This module can be accelerated with SSE2 or
422other SIMD operations. By default, only 64-bit Intel builds make use
423of SSE, since it can be assumed on those platforms. Reimplemented the
424namcos22 rasterizer in terms of these inline functions. Also updated
425the gaelco3d rasterizer to use this module for faster bilinear
426filtering. [Aaron Giles]
324Add -pipe flag for GCC in makefile (GCC will pipe between cpp, cc and
325as rather than using temporary files, which speeds up compiling).
326[Vas Crabb]
427327
428Made some progress on the Midway Zeus-based system. The 3d command
429stream is now parsed and the format is partially understood, enough to
430display some polygons but with incorrect textures in Mortal Kombat 4.
431[Aaron Giles]
328Cleanups to the inline functions: [Vas Crabb]
329 * Add attributes to functions in eigccppc.h and eigccx86.h to cause
330    GCC to always inline them, and to treat them as arithmetic
331    operators when appropriate (so GCC can identify loop invariants
332    or common subexpressions involving these functions)
333 * Mark locals in functions in eigccppc.h and eigccx86.h as register,
334    so GCC won't always allocate stack space even at O0 optimisation
335    level
336 * Add dummy +m operands to atomic access functions in eigccppc.h so
337    that GCC will not cache values across calls even if values are
338    not volatile - this will cause GCC to allocate an additional
339    register at O0 optimisation, but not if optimisation is on
340 * Don't include <altivec.h> in rgbvmx.h if __APPLE_ALTIVEC__ is
341    defined, as this will cause a compiler warning.
432342
343Cleaned up inputs in the System 24 driver: [Sonikos]
344 - Fixed dips in qrouka, sgmastc, sgmastcj, roughrac, qsww
345 - Fixed input in dcclub, sgmastc, sgmastj, qrouka (the last is still
346    missing input for the 3rd & 4th player)
347 - Added more description for each game: region, system (rom or floppy
348    based), version
349   
350Removed useless pen_array in the midtunit driver, saving some memory
351and getting a small speed boost. [Christophe Jaillet]
433352
353Added 3D glasses support to the tceptor driver. [BUT]
434354
435New games added or promoted from NOT_WORKING status
436---------------------------------------------------
437Konami CD-ROM Drive Updater (700A04) [smf]
438Vs. Janshi Brandnew Stars [sonikos]
355Unified timer callbacks. All timer callbacks are now passed both a
356pointer and a parameter. The pointer can only be set at timer
357allocation time; the parameter can be changed whenever the timer
358is adjusted. Removed most explicit uses of timer_*_ptr functions in
359favor of the more generic routines. [Aaron Giles]
439360
361Deprecated cpu_yield* functions except for cpu_yield() itself, which
362yields for the current timeslice only. Drivers that relied on the
363other yielding functions should be updated to use
364cpu_boost_interleave() instead, as it does not have the same negative
365side effects on time management. [Aaron Giles]
440366
367Changed video_frame_update() internally to accept a debug parameter
368which forces updates and does not meddle with synchronization/time
369accountiing. [Aaron Giles]
441370
442New clones added
443----------------
444Eco Fighters (USA 940215) [Nicola Salmoria, Razoola]
371Some more internal improvements to the midzeus driver. [Aaron Giles]
445372
373Removed the burgeoning list of architecture optimization options.
374Instead, if you want to make a build optimized for a specific
375architecture, you explicitly specify the options in a new ARCHOPTS
376variable. You can control the name of the final executable via the
377existing PREFIX and SUFFIX variables, which are now documented.
378[Aaron Giles]
446379
380MSVC-based builds now automatically get a 'v' prefix unless otherwise
381specified. [Aaron Giles]
447382
448New games marked as GAME_NOT_WORKING
449------------------------------------
450Time Machine v2.0 [James Wallace]
451Jet Wave [Ville Linde, Guru]
452383
453384
385New games added or promoted from NOT_WORKING status
386---------------------------------------------------
387Maze Invaders (prototype) [Aaron Giles]
388Guts 'n Glory (prototype) [Aaron Giles]
389Jumbo Ozaki Super Masters Golf [Sonikos]
454390
4550.120u1
456-------
457391
458392
459MAMETesters Bugs Fixed
460----------------------
461ikki0120yel [robiza]
462buckrog0118u2yel [couriersud]
393New clones added
394----------------
395Sky Kid (Manufactured by Sipem) [Corrado Tomaselli]
396Next Fase (bootleg of Phoenix) [David Haywood]
397Hang-On (Rev A) [Tony Beason]
398Shooting Master (set 2, 8751 315-5159a) [Kevin Eshbach]
399Super Burger Time (World, set 2) [Patrik Styrnell]
463400
464401
465402
4030.121u1
404-------
405
406
466407Source Changes
467408--------------
468Documented information about the various Cannonball sets.
469[stephh]
409Added an API to access the current amiga_machine_interface.
410[Nathan Woods]
470411
471Hooked up the roz layer, fg layer and sprites to f1gpb. Still
472missing some video offsets, oki banking and sprites priority.
473[Pierpaolo Prazzoli]
412Added more static qualifiers to core files. [Atari Ace]
474413
475Updates for the dominob.c driver: [stephh]
476 - fixed dip switches
477 - fixed inputs
478 - added a couple of notes
414Fixed reversed clock speeds in mexico86. [Brian Troha]
479415
480Updated peplus driver and related components: [Jim Stolis]
481 - added internal layouts for the games
482 - fixed several i8051 issues...
483    * Fixed a bug with some opcodes having the wrong cycle counts
484    * Fixed a bug where determining the proper timer mode
485    * Fixed a bug where determining the proper serial transmit mode
486    * Added support for split timer mode
416Changed malloc tracking to be decided at runtime in a function
417use_malloc_tracking(). This makes it easy to turn it on or off by
418recompiling only a single file. [Nathan Woods]
487419
488Improved multiprocessor Voodoo performance by reducing contention
489during rendering. Extended the system to allow for more overlap
490between rendering and emulation. [couriersud, Aaron Giles]
420Split up MSVC inline assembler functions into MSVC specific headers,
421and removed the assumption that Window's osinline.h would only be
422used by MSVC. [Nathan Woods]
491423
492Fixed a crash in the input system when you configure joypads and
493then unplug them and press Esc on the system info screen.
494[R. Belmont]
495
496Defined strict types for CPU and sound chips. Removed unnecessary
497cpu_ prefix from several structure members. [Atari Ace]
498
499Fixed the m4510 cpu core from not updating the instruction cycle
500counter. [Wilbert Pol]
501
502Fixed memory access for m6509 instructions 91 and b1. [Wilbert Pol]
503
504Changed osdcore.h to include osinline.h and allow for external
505inline definitions of synchronization primitives. Also added a new
506work queue hint WORK_QUEUE_FLAG_HIGH_FREQ which indicates that we
507should spin aggressively waiting for new items.
508[couriersud, Vas Crabb]
509
510Enabled common linker warnings in the makefile. [Oliver Stoneberg]
511
512Fixed a corner case in the SCSP involving timers which are polled
513with their IRQ enable shut off. [R. Belmont]
514
515Namco System 21 update: [Phil Stroffolino]
516 - namconb1 sprites no longer broken
517 - fixed missing 3d gfx in Cybersled
518 - gradient colors in starblade
519 - more accurate depth cueing
520 - fixed crash in 2nd stage of Starblade
521 - fixed lockups in Air Combat and Solvalou
522 - fixes to sprite priority (see Solvalou mountain range)
523 - hooked up translucency (palette shift) effect
524
525Changed Model 2 rendering to use pre-clipped Z values for sorting.
424Optimized the hyperstone core, gaining ~50% speed improvement in most
425games. Implemented clock prescaling and corrected interrupt priority
426handling. Then fixed the clock speeds on the most of the games and
427killed most of the speed gains in quite a number of them. (Sorry!)
526428[Aaron Giles]
527429
528Properly identified bill inputs in Midway Y-unit driver games.
529[Aaron Giles]
430Added explicit Core2 architecuture support to the makefile (CORE2=1).
431Note that gcc 4.2.0 doesn't understand core 2, so this is equivalent
432to compiling with pentium-m architecture and -sse3. Also note that
433compiling native on a Core2 is not what you want because native will
434think you are on a Prescott, which is P4-era hardware. [Aaron Giles]
530435
531Added more instrumentation and added some extra paranoia to the
532winwork code. [Aaron Giles]
436Changed alignment of rgbint values in the namcos22 driver to work
437around 32-bit gcc's lack of proper alignment handling. [Aaron Giles]
533438
534Fixed some incorrect code in the ADSP2100 external flag handling.
535[Aaron Giles]
439Fixed attotime routines to use unsigned math for multiply/divide,
440solving problems with some games which errantly passed in -1 for the
441factor. The new behavior matches the original behavior. [Aaron Giles]
536442
537Created new module polynew.c which combines triangle setup,
538rasterization, and Voodoo-like multiprocessor support. Coverted
539Gaelco3D, Midway V-Unit, Namco System 22, and Voodoo drivers over
540to the new system. [Aaron Giles]
443Renamed colortable to colortable_t. Added a Machine->colortable
444entry to hold the global colortable for games that use it. Updated
445several more drivers to just use palettes directly rather than
446hacking colortables. [Aaron Giles]
541447
542Added threadid parameter to work item callbacks. This allows for
543keeping per-thread information by the callbacks. [Aaron Giles]
544448
545449
546
547New games added or promoted from NOT_WORKING status
548---------------------------------------------------
549Mahjong Hot Gimmick Integral (Japan) [Guru, David Haywood]
550Tottemo E Jong [David Haywood, Team Japump!]
551Good E Jong -Kachinuki Mahjong Syoukin Oh!!-
552  [David Haywood, Team Japump!]
553Teraburst [icronnya77, Ville Linde]
554
555
556
557450New clones added
558451----------------
559Tube Panic (bootleg) [sonikos]
560Player's Edge Plus (PP0188) Standard Draw Poker [Jim Stolis]
561Player's Edge Plus (Set038) Set Chip [Jim Stolis]
562Mortal Kombat 4 (set 2) [icronnya77]
563Meteor [Andreas]
564
565
566
567New games marked as GAME_NOT_WORKING
568------------------------------------
569GameCristal [f205v, R. Belmont]
452Fighting Soccer (version 4) [Corrado Tomaselli]
453Stadium Cross (US) [Arzeno Fabrice]

Previous 15994 Revisions Next


© 1998-2018 The MESS Team