Previous 15994 Revisions Next

r5779 Thursday 17th September, 2009 at 23:13:06 UTC by Fabio Priuli
[SNES] Moved DSP3 data to a separate file, updated special chips support list, fixed DSP1_sin function.
The latter fix makes Super Mario Kart playable again (and probably all the other DSP1 games as well)
[src/mame/drivers]nss.c
[src/mame/machine]snes.c snesdsp1.c snesdsp3.c
[src/mess/drivers]snes.c
[src/mess/machine]snescart.c

src/mame/machine/snesdsp3.c
r5778r5779
1212
1313************************************************************************/
1414
15UINT16 DSP3_DataROM[1024] = {
16   0x8000, 0x4000, 0x2000, 0x1000, 0x0800, 0x0400, 0x0200, 0x0100,
17   0x0080, 0x0040, 0x0020, 0x0010, 0x0008, 0x0004, 0x0002, 0x0001,
18   0x0002, 0x0004, 0x0008, 0x0010, 0x0020, 0x0040, 0x0080, 0x0100,
19   0x0000, 0x000f, 0x0400, 0x0200, 0x0140, 0x0400, 0x0200, 0x0040,
20   0x007d, 0x007e, 0x007e, 0x007b, 0x007c, 0x007d, 0x007b, 0x007c,
21   0x0002, 0x0020, 0x0030, 0x0000, 0x000d, 0x0019, 0x0026, 0x0032,
22   0x003e, 0x004a, 0x0056, 0x0062, 0x006d, 0x0079, 0x0084, 0x008e,
23   0x0098, 0x00a2, 0x00ac, 0x00b5, 0x00be, 0x00c6, 0x00ce, 0x00d5,
24   0x00dc, 0x00e2, 0x00e7, 0x00ec, 0x00f1, 0x00f5, 0x00f8, 0x00fb,
25   0x00fd, 0x00ff, 0x0100, 0x0100, 0x0100, 0x00ff, 0x00fd, 0x00fb,
26   0x00f8, 0x00f5, 0x00f1, 0x00ed, 0x00e7, 0x00e2, 0x00dc, 0x00d5,
27   0x00ce, 0x00c6, 0x00be, 0x00b5, 0x00ac, 0x00a2, 0x0099, 0x008e,
28   0x0084, 0x0079, 0x006e, 0x0062, 0x0056, 0x004a, 0x003e, 0x0032,
29   0x0026, 0x0019, 0x000d, 0x0000, 0xfff3, 0xffe7, 0xffdb, 0xffce,
30   0xffc2, 0xffb6, 0xffaa, 0xff9e, 0xff93, 0xff87, 0xff7d, 0xff72,
31   0xff68, 0xff5e, 0xff54, 0xff4b, 0xff42, 0xff3a, 0xff32, 0xff2b,
32   0xff25, 0xff1e, 0xff19, 0xff14, 0xff0f, 0xff0b, 0xff08, 0xff05,
33   0xff03, 0xff01, 0xff00, 0xff00, 0xff00, 0xff01, 0xff03, 0xff05,
34   0xff08, 0xff0b, 0xff0f, 0xff13, 0xff18, 0xff1e, 0xff24, 0xff2b,
35   0xff32, 0xff3a, 0xff42, 0xff4b, 0xff54, 0xff5d, 0xff67, 0xff72,
36   0xff7c, 0xff87, 0xff92, 0xff9e, 0xffa9, 0xffb5, 0xffc2, 0xffce,
37   0xffda, 0xffe7, 0xfff3, 0x002b, 0x007f, 0x0020, 0x00ff, 0xff00,
38   0xffbe, 0x0000, 0x0044, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
39   0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
40   0x0000, 0x0000, 0x0000, 0x0000, 0xffc1, 0x0001, 0x0002, 0x0045,
41   0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
42   0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
43   0xffc5, 0x0003, 0x0004, 0x0005, 0x0047, 0x0000, 0x0000, 0x0000,
44   0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
45   0x0000, 0x0000, 0x0000, 0x0000, 0xffca, 0x0006, 0x0007, 0x0008,
46   0x0009, 0x004a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
47   0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
48   0xffd0, 0x000a, 0x000b, 0x000c, 0x000d, 0x000e, 0x004e, 0x0000,
49   0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
50   0x0000, 0x0000, 0x0000, 0x0000, 0xffd7, 0x000f, 0x0010, 0x0011,
51   0x0012, 0x0013, 0x0014, 0x0053, 0x0000, 0x0000, 0x0000, 0x0000,
52   0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
53   0xffdf, 0x0015, 0x0016, 0x0017, 0x0018, 0x0019, 0x001a, 0x001b,
54   0x0059, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
55   0x0000, 0x0000, 0x0000, 0x0000, 0xffe8, 0x001c, 0x001d, 0x001e,
56   0x001f, 0x0020, 0x0021, 0x0022, 0x0023, 0x0060, 0x0000, 0x0000,
57   0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
58   0xfff2, 0x0024, 0x0025, 0x0026, 0x0027, 0x0028, 0x0029, 0x002a,
59   0x002b, 0x002c, 0x0068, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
60   0x0000, 0x0000, 0x0000, 0x0000, 0xfffd, 0x002d, 0x002e, 0x002f,
61   0x0030, 0x0031, 0x0032, 0x0033, 0x0034, 0x0035, 0x0036, 0x0071,
62   0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
63   0xffc7, 0x0037, 0x0038, 0x0039, 0x003a, 0x003b, 0x003c, 0x003d,
64   0x003e, 0x003f, 0x0040, 0x0041, 0x007b, 0x0000, 0x0000, 0x0000,
65   0x0000, 0x0000, 0x0000, 0x0000, 0xffd4, 0x0000, 0x0001, 0x0002,
66   0x0003, 0x0004, 0x0005, 0x0006, 0x0007, 0x0008, 0x0009, 0x000a,
67   0x000b, 0x0044, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
68   0xffe2, 0x000c, 0x000d, 0x000e, 0x000f, 0x0010, 0x0011, 0x0012,
69   0x0013, 0x0014, 0x0015, 0x0016, 0x0017, 0x0018, 0x0050, 0x0000,
70   0x0000, 0x0000, 0x0000, 0x0000, 0xfff1, 0x0019, 0x001a, 0x001b,
71   0x001c, 0x001d, 0x001e, 0x001f, 0x0020, 0x0021, 0x0022, 0x0023,
72   0x0024, 0x0025, 0x0026, 0x005d, 0x0000, 0x0000, 0x0000, 0x0000,
73   0xffcb, 0x0027, 0x0028, 0x0029, 0x002a, 0x002b, 0x002c, 0x002d,
74   0x002e, 0x002f, 0x0030, 0x0031, 0x0032, 0x0033, 0x0034, 0x0035,
75   0x006b, 0x0000, 0x0000, 0x0000, 0xffdc, 0x0000, 0x0001, 0x0002,
76   0x0003, 0x0004, 0x0005, 0x0006, 0x0007, 0x0008, 0x0009, 0x000a,
77   0x000b, 0x000c, 0x000d, 0x000e, 0x000f, 0x0044, 0x0000, 0x0000,
78   0xffee, 0x0010, 0x0011, 0x0012, 0x0013, 0x0014, 0x0015, 0x0016,
79   0x0017, 0x0018, 0x0019, 0x001a, 0x001b, 0x001c, 0x001d, 0x001e,
80   0x001f, 0x0020, 0x0054, 0x0000, 0xffee, 0x0021, 0x0022, 0x0023,
81   0x0024, 0x0025, 0x0026, 0x0027, 0x0028, 0x0029, 0x002a, 0x002b,
82   0x002c, 0x002d, 0x002e, 0x002f, 0x0030, 0x0031, 0x0032, 0x0065,
83   0xffbe, 0x0000, 0xfeac, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
84   0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
85   0x0000, 0x0000, 0x0000, 0x0000, 0xffc1, 0x0001, 0x0002, 0xfead,
86   0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
87   0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
88   0xffc5, 0x0003, 0x0004, 0x0005, 0xfeaf, 0x0000, 0x0000, 0x0000,
89   0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
90   0x0000, 0x0000, 0x0000, 0x0000, 0xffca, 0x0006, 0x0007, 0x0008,
91   0x0009, 0xfeb2, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
92   0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
93   0xffd0, 0x000a, 0x000b, 0x000c, 0x000d, 0x000e, 0xfeb6, 0x0000,
94   0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
95   0x0000, 0x0000, 0x0000, 0x0000, 0xffd7, 0x000f, 0x0010, 0x0011,
96   0x0012, 0x0013, 0x0014, 0xfebb, 0x0000, 0x0000, 0x0000, 0x0000,
97   0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
98   0xffdf, 0x0015, 0x0016, 0x0017, 0x0018, 0x0019, 0x001a, 0x001b,
99   0xfec1, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
100   0x0000, 0x0000, 0x0000, 0x0000, 0xffe8, 0x001c, 0x001d, 0x001e,
101   0x001f, 0x0020, 0x0021, 0x0022, 0x0023, 0xfec8, 0x0000, 0x0000,
102   0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
103   0xfff2, 0x0024, 0x0025, 0x0026, 0x0027, 0x0028, 0x0029, 0x002a,
104   0x002b, 0x002c, 0xfed0, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
105   0x0000, 0x0000, 0x0000, 0x0000, 0xfffd, 0x002d, 0x002e, 0x002f,
106   0x0030, 0x0031, 0x0032, 0x0033, 0x0034, 0x0035, 0x0036, 0xfed9,
107   0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
108   0xffc7, 0x0037, 0x0038, 0x0039, 0x003a, 0x003b, 0x003c, 0x003d,
109   0x003e, 0x003f, 0x0040, 0x0041, 0xfee3, 0x0000, 0x0000, 0x0000,
110   0x0000, 0x0000, 0x0000, 0x0000, 0xffd4, 0x0000, 0x0001, 0x0002,
111   0x0003, 0x0004, 0x0005, 0x0006, 0x0007, 0x0008, 0x0009, 0x000a,
112   0x000b, 0xfeac, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
113   0xffe2, 0x000c, 0x000d, 0x000e, 0x000f, 0x0010, 0x0011, 0x0012,
114   0x0013, 0x0014, 0x0015, 0x0016, 0x0017, 0x0018, 0xfeb8, 0x0000,
115   0x0000, 0x0000, 0x0000, 0x0000, 0xfff1, 0x0019, 0x001a, 0x001b,
116   0x001c, 0x001d, 0x001e, 0x001f, 0x0020, 0x0021, 0x0022, 0x0023,
117   0x0024, 0x0025, 0x0026, 0xfec5, 0x0000, 0x0000, 0x0000, 0x0000,
118   0xffcb, 0x0027, 0x0028, 0x0029, 0x002a, 0x002b, 0x002c, 0x002d,
119   0x002e, 0x002f, 0x0030, 0x0031, 0x0032, 0x0033, 0x0034, 0x0035,
120   0xfed3, 0x0000, 0x0000, 0x0000, 0xffdc, 0x0000, 0x0001, 0x0002,
121   0x0003, 0x0004, 0x0005, 0x0006, 0x0007, 0x0008, 0x0009, 0x000a,
122   0x000b, 0x000c, 0x000d, 0x000e, 0x000f, 0xfeac, 0x0000, 0x0000,
123   0xffee, 0x0010, 0x0011, 0x0012, 0x0013, 0x0014, 0x0015, 0x0016,
124   0x0017, 0x0018, 0x0019, 0x001a, 0x001b, 0x001c, 0x001d, 0x001e,
125   0x001f, 0x0020, 0xfebc, 0x0000, 0xffee, 0x0021, 0x0022, 0x0023,
126   0x0024, 0x0025, 0x0026, 0x0027, 0x0028, 0x0029, 0x002a, 0x002b,
127   0x002c, 0x002d, 0x002e, 0x002f, 0x0030, 0x0031, 0x0032, 0xfecd,
128   0x0154, 0x0218, 0x0110, 0x00b0, 0x00cc, 0x00b0, 0x0088, 0x00b0,
129   0x0044, 0x00b0, 0x0000, 0x00b0, 0x00fe, 0xff07, 0x0002, 0x00ff,
130   0x00f8, 0x0007, 0x00fe, 0x00ee, 0x07ff, 0x0200, 0x00ef, 0xf800,
131   0x0700, 0x00ee, 0xffff, 0xffff, 0xffff, 0x0000, 0x0000, 0x0001,
132   0x0001, 0x0001, 0x0001, 0x0000, 0x0000, 0xffff, 0xffff, 0xffff,
133   0xffff, 0x0000, 0x0000, 0x0001, 0x0001, 0x0001, 0x0001, 0x0000,
134   0x0000, 0xffff, 0xffff, 0x0000, 0xffff, 0x0001, 0x0000, 0x0001,
135   0x0001, 0x0000, 0x0000, 0xffff, 0xffff, 0xffff, 0xffff, 0x0000,
136   0xffff, 0x0001, 0x0000, 0x0001, 0x0001, 0x0000, 0x0000, 0xffff,
137   0xffff, 0xffff, 0x0000, 0x0000, 0x0000, 0x0044, 0x0088, 0x00cc,
138   0x0110, 0x0154, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff,
139   0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff,
140   0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff,
141   0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff,
142   0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff,
143   0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff
144};
15UINT16 DSP3_DataROM[1024];
14516
14617void (*SetDSP3)( void );
14718void DSP3_Command( void );
r5778r5779
15223
15324void DSP3_Reset( void )
15425{
155  DSP3_DR = 0x0080;
156  DSP3_SR = 0x0084;
157  SetDSP3 = &DSP3_Command;
26   DSP3_DR = 0x0080;
27   DSP3_SR = 0x0084;
28   SetDSP3 = &DSP3_Command;
15829}
15930
16031void DSP3_MemorySize( void )
r5778r5779
11481019  return value;
11491020}
11501021
1151void InitDSP3( void )
1022void InitDSP3( running_machine *machine )
11521023{
1153  DSP3_Reset();
1024   UINT32 i;
1025   UINT8 *dspin = memory_region(machine, "addons");
1026
1027   DSP3_Reset();
1028
1029   // expand the DSP-3 data ROM
1030   for (i = 0; i < 2048; i+=2)
1031   {
1032      DSP3_DataROM[i/2] = dspin[0x800 + i] << 8 | dspin[0x800 + i + 1];
1033   }
11541034}
src/mame/machine/snes.c
r5778r5779
19171917   const address_space *cpu0space = cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM);
19181918   int i, j;
19191919
1920   /* Init DSP1 */
1921   DSP1_reset(machine);
1922
19231920   /* Init VRAM */
19241921   memset( snes_vram, 0, SNES_VRAM_SIZE );
19251922
r5778r5779
19801977
19811978   switch (snes_has_addon_chip)
19821979   {
1980      case HAS_DSP1:
1981         DSP1_reset(machine);
1982         break;
1983
19831984      case HAS_DSP2:
19841985         DSP2_reset();
19851986         break;
19861987
19871988      case HAS_DSP3:
1988         InitDSP3();
1989         InitDSP3(machine);
19891990         break;
19901991
19911992      case HAS_DSP4:
src/mame/machine/snesdsp1.c
r5778r5779
321321static void DSP1_reset(running_machine *machine)
322322{
323323   UINT32 i;
324   UINT8 *dspin = memory_region(machine, "user6");
324   UINT8 *dspin = memory_region(machine, "addons");
325325
326326   mSr = DRC|RQM;
327327   mSrLowByteAccess = FALSE;
r5778r5779
478478
479479static void DSP1_memorySize(INT16 *input, INT16 *output)
480480{
481   INT16 *Size = &output[0];
481   INT16* Size = &output[0];
482482
483483   *Size = 0x0100;
484484}
r5778r5779
491491{
492492   INT16 Multiplicand = input[0];
493493   INT16 Multiplier = input[1];
494   INT16 *Product = &output[0];
494   INT16* Product = &output[0];
495495
496496   *Product = Multiplicand * Multiplier >> 15;
497497}
r5778r5779
14191419
14201420   if (Angle < 0) {
14211421      if (Angle == -32768) return 0;
1422      return -sin((double)-Angle);
1422      return -DSP1_sin(-Angle);
14231423   }
14241424   S = DSP1_SinTable[Angle >> 8] + (DSP1_MulTable[Angle & 0xff] * DSP1_SinTable[0x40 + (Angle >> 8)] >> 15);
14251425   if (S > 32767) S = 32767;
src/mame/drivers/nss.c
r5778r5779
447447#define NSS_BIOS \
448448   ROM_REGION(0x100,           "user5", 0)      /* IPL ROM */ \
449449   ROM_LOAD("spc700.rom", 0, 0x40, CRC(44bb3a40) SHA1(97e352553e94242ae823547cd853eecda55c20f0) ) \
450   ROM_REGION(0x800,           "user6", 0)      /* add-on chip ROMs (DSP, SFX, etc) */\
450   ROM_REGION(0x1000,           "addons", 0)      /* add-on chip ROMs (DSP1 could be needed if we dump smk). the second 0x800 host DSP3 ROM in MESS */\
451451   ROM_LOAD("dsp1data.bin", 0x000000, 0x000800, CRC(4b02d66d) SHA1(1534f4403d2a0f68ba6e35186fe7595d33de34b1))\
452452   ROM_REGION(0x10000,         "bios",  0)      /* Bios CPU (what is it?) */ \
453453   ROM_LOAD("nss-c.dat"  , 0, 0x8000, CRC(a8e202b3) SHA1(b7afcfe4f5cf15df53452dc04be81929ced1efb2) )   /* bios */ \
src/mess/machine/snescart.c
r5778r5779
335335
336336static DEVICE_IMAGE_LOAD( snes_cart )
337337{
338   int i, supported_type = 0;
338   int i, supported_type = 1;
339339   running_machine *machine = image->machine;
340340   const address_space *space = cputag_get_address_space( machine, "maincpu", ADDRESS_SPACE_PROGRAM );
341341   int total_blocks, read_blocks;
r5778r5779
612612         case 0x01:
613613         case 0x02:
614614            snes_has_addon_chip = HAS_NONE;
615            supported_type = 1;
616615            break;
617616
618617         case 0x03:
619618            if (snes_r_bank1(space, 0x00ffd5) == 0x30)
620619               snes_has_addon_chip = HAS_DSP4;
621620            else
622            {
623621               snes_has_addon_chip = HAS_DSP1;
624               supported_type = 1;
625            }
626622            break;
627623
628624         case 0x04:
629625            snes_has_addon_chip = HAS_DSP1;
630            supported_type = 1;
631626            break;
632627
633628         case 0x05:
634629            if (snes_r_bank1(space, 0x00ffd5) == 0x20)
635            {
636630               snes_has_addon_chip = HAS_DSP2;
637               supported_type = 1;
638            }
639631            /* DSP-3 is hard to detect. We exploit the fact that the only game has been manufactured by Bandai */
640632            else if ((snes_r_bank1(space, 0x00ffd5) == 0x30) && (snes_r_bank1(space, 0x00ffda) == 0xb2))
641633               snes_has_addon_chip = HAS_DSP3;
642634            else
643            {
644635               snes_has_addon_chip = HAS_DSP1;
645               supported_type = 1;
646            }
647636            break;
648637
649638         case 0x13:   // Mario Chip 1
r5778r5779
652641         case 0x1a:   // GSU-1 (21 MHz at start)
653642            if (snes_r_bank1(space, 0x00ffd5) == 0x20)
654643               snes_has_addon_chip = HAS_SUPERFX;
655               supported_type = 1;
656644            break;
657645
658646         case 0x25:
659647            snes_has_addon_chip = HAS_OBC1;
660            supported_type = 1;
661648            break;
662649
663650         case 0x32:   // needed by a Sample game (according to ZSNES)
664651         case 0x34:
665652         case 0x35:
666653            if (snes_r_bank1(space, 0x00ffd5) == 0x23)
654            {   
667655               snes_has_addon_chip = HAS_SA1;
656               supported_type = 0;
657            }
668658            break;
669659
670660         case 0x43:
671661         case 0x45:
672662            if (snes_r_bank1(space, 0x00ffd5) == 0x32)
663            {   
673664               snes_has_addon_chip = HAS_SDD1;
665               supported_type = 0;
666            }
674667            break;
675668
676669         case 0x55:
677670            if (snes_r_bank1(space, 0x00ffd5) == 0x35)
671            {   
678672               snes_has_addon_chip = HAS_RTC;
673               supported_type = 0;
674            }
679675            break;
680676
681677         case 0xe3:
682678            snes_has_addon_chip = HAS_Z80GB;
679            supported_type = 0;
683680            break;
684681
685682         case 0xf3:
r5778r5779
688685
689686         case 0xf5:
690687            if (snes_r_bank1(space, 0x00ffd5) == 0x30)
688            {
691689               snes_has_addon_chip = HAS_ST018;
690               supported_type = 0;
691            }
692692            else if (snes_r_bank1(space, 0x00ffd5) == 0x3a)
693            {
693694               snes_has_addon_chip = HAS_SPC7110;
695               supported_type = 0;
696            }
694697            break;
695698
696699         case 0xf6:
697700            /* These Seta ST-01X chips have both 0x30 at 0x00ffd5,
698701            they only differ for the 'size' at 0x00ffd7 */
699702            if (snes_r_bank1(space, 0x00ffd7) < 0x0a)
703            {
700704               snes_has_addon_chip = HAS_ST011;
705               supported_type = 0;
706            }
701707            else
708            {
702709               snes_has_addon_chip = HAS_ST010;
710               supported_type = 0;
711            }
703712            break;
704713
705714         case 0xf9:
706715            if (snes_r_bank1(space, 0x00ffd5) == 0x3a)
716            {
707717               snes_has_addon_chip = HAS_SPC7110_RTC;
718               supported_type = 0;
719            }
708720            break;
709721
710722         default:
711723            snes_has_addon_chip = HAS_UNK;
724            supported_type = 0;
712725            break;
713726   }
714727
src/mess/drivers/snes.c
r5778r5779
275275ROM_START(snes)
276276   ROM_REGION( 0x100, "user5", 0 )      /* IPL ROM */
277277   ROM_LOAD( "spc700.rom", 0, 0x40, CRC(44bb3a40) SHA1(97e352553e94242ae823547cd853eecda55c20f0) )   /* boot rom */
278   ROM_REGION( 0x800, "user6", 0 )      /* add-on chip ROMs (DSP, SFX, etc) */
278   ROM_REGION( 0x1000, "addons", 0 )      /* add-on chip ROMs (DSP, SFX, etc) */
279279   ROM_LOAD( "dsp1data.bin", 0x000000, 0x000800, CRC(4b02d66d) SHA1(1534f4403d2a0f68ba6e35186fe7595d33de34b1) )
280   ROM_LOAD( "dsp3data.bin", 0x000800, 0x000800, CRC(4a1c5453) SHA1(2f69c652109938cde21df5eb89890bf090256dbb) )
280281ROM_END
281282
282283ROM_START(snessfx)
283284   ROM_REGION( 0x100, "user5", 0 )      /* IPL ROM */
284285   ROM_LOAD( "spc700.rom", 0, 0x40, CRC(44bb3a40) SHA1(97e352553e94242ae823547cd853eecda55c20f0) )   /* boot rom */
285   ROM_REGION( 0x800, "user6", 0 )      /* add-on chip ROMs (DSP, SFX, etc) */
286   ROM_REGION( 0x1000, "addons", 0 )      /* add-on chip ROMs (DSP, SFX, etc) */
286287   ROM_LOAD( "dsp1data.bin", 0x000000, 0x000800, CRC(4b02d66d) SHA1(1534f4403d2a0f68ba6e35186fe7595d33de34b1) )
287288ROM_END
288289
289290ROM_START(snespal)
290291   ROM_REGION( 0x100, "user5", 0 )      /* IPL ROM */
291292   ROM_LOAD( "spc700.rom", 0, 0x40, CRC(44bb3a40) SHA1(97e352553e94242ae823547cd853eecda55c20f0) )   /* boot rom */
292   ROM_REGION( 0x800, "user6", 0 )      /* add-on chip ROMs (DSP, SFX, etc) */
293   ROM_REGION( 0x1000, "addons", 0 )      /* add-on chip ROMs (DSP, SFX, etc) */
293294   ROM_LOAD( "dsp1data.bin", 0x000000, 0x000800, CRC(4b02d66d) SHA1(1534f4403d2a0f68ba6e35186fe7595d33de34b1) )
295   ROM_LOAD( "dsp3data.bin", 0x000800, 0x000800, CRC(4a1c5453) SHA1(2f69c652109938cde21df5eb89890bf090256dbb) )
294296ROM_END
295297
296298ROM_START(snespsfx)
297299   ROM_REGION( 0x100, "user5", 0 )      /* IPL ROM */
298300   ROM_LOAD( "spc700.rom", 0, 0x40, CRC(44bb3a40) SHA1(97e352553e94242ae823547cd853eecda55c20f0) )   /* boot rom */
299   ROM_REGION( 0x800, "user6", 0 )      /* add-on chip ROMs (DSP, SFX, etc) */
301   ROM_REGION( 0x1000, "addons", 0 )      /* add-on chip ROMs (DSP, SFX, etc) */
300302   ROM_LOAD( "dsp1data.bin", 0x000000, 0x000800, CRC(4b02d66d) SHA1(1534f4403d2a0f68ba6e35186fe7595d33de34b1) )
301303ROM_END
302304
r5778r5779
312314   ROM_REGION( 0x100, "user5", 0 )      /* IPL ROM */
313315   ROM_LOAD( "spc700.rom", 0x00, 0x40, CRC(44bb3a40) SHA1(97e352553e94242ae823547cd853eecda55c20f0) )   /* boot rom */
314316
315   ROM_REGION( 0x800, "user6", ROMREGION_ERASE00 )      /* add-on chip ROMs (DSP, SFX, etc) */
317   ROM_REGION( 0x1000, "addons", ROMREGION_ERASE00 )      /* add-on chip ROMs (DSP, SFX, etc) */
316318ROM_END
317319
318320/***************************************************************************

Previous 15994 Revisions Next


© 1998-2018 The MESS Team