src/mame/machine/stvcd.c
| r12646 | r12647 | |
| 305 | 305 | CDROM_LOG(("%s:CD: Initialize CD system\n", machine.describe_context())) |
| 306 | 306 | if((cr1 & 0x81) == 0x00) //guess |
| 307 | 307 | { |
| 308 | | int i; |
| 308 | //int i; |
| 309 | 309 | cd_stat = CD_STAT_PAUSE; |
| 310 | 310 | cd_curfad = 150; |
| 311 | 311 | //cur_track = 1; |
| r12646 | r12647 | |
| 318 | 318 | /* reset filter connections */ |
| 319 | 319 | /* Guess: X-Men COTA sequence is 0x48->0x48->0x04(01)->0x04(00)->0x30 then 0x10, without this game throws a FAD reject error */ |
| 320 | 320 | /* X-Men vs. SF is even fussier, sequence is 0x04 (1) 0x04 (0) 0x03 (0) 0x03 (1) 0x30 */ |
| 321 | #if 0 |
| 321 | 322 | for(i=0;i<MAX_FILTERS;i++) |
| 322 | 323 | { |
| 323 | 324 | filters[i].fad = 0; |
| r12646 | r12647 | |
| 330 | 331 | filters[i].smval = 0; |
| 331 | 332 | filters[i].cival = 0; |
| 332 | 333 | } |
| 334 | #endif |
| 333 | 335 | |
| 334 | 336 | /* reset CD device connection */ |
| 335 | 337 | //cddevice = (filterT *)NULL; |
| r12646 | r12647 | |
| 653 | 655 | |
| 654 | 656 | CDROM_LOG(("%s:CD: Set Filter Range\n", machine.describe_context())) |
| 655 | 657 | |
| 658 | printf("%08x %08x %d\n",filters[fnum].fad,filters[fnum].range,fnum); |
| 659 | |
| 656 | 660 | filters[fnum].fad = ((cr1 & 0xff)<<16) | cr2; |
| 657 | 661 | filters[fnum].range = ((cr3 & 0xff)<<16) | cr4; |
| 658 | 662 | |
| r12646 | r12647 | |
| 2142 | 2146 | // loop on the filters |
| 2143 | 2147 | do |
| 2144 | 2148 | { |
| 2149 | // FAD range check? |
| 2150 | /* according to an obscure document note, this switches the filter connector to be false if the range fails ... I think ... */ |
| 2151 | if (flt->mode & 0x40) |
| 2152 | { |
| 2153 | if ((cd_curfad < flt->fad) || (cd_curfad > (flt->fad + flt->range))) |
| 2154 | { |
| 2155 | printf("curfad reject %08x %08x %08x %08x\n",cd_curfad,fadstoplay,flt->fad,flt->fad+flt->range); |
| 2156 | //match = 0; |
| 2157 | lastbuf = flt->condfalse; |
| 2158 | flt = &filters[lastbuf]; |
| 2159 | |
| 2160 | keepgoing--; |
| 2161 | } |
| 2162 | } |
| 2163 | |
| 2145 | 2164 | if ((trktype != CD_TRACK_AUDIO) && (curblock.data[15] == 2)) |
| 2146 | 2165 | { |
| 2147 | 2166 | if (flt->mode & 1) // file number |
| r12646 | r12647 | |
| 2186 | 2205 | } |
| 2187 | 2206 | } |
| 2188 | 2207 | |
| 2189 | | // FAD range check? |
| 2190 | | if (flt->mode & 0x40) |
| 2191 | | { |
| 2192 | | if ((cd_curfad < flt->fad) || (cd_curfad > (flt->fad + flt->range))) |
| 2193 | | { |
| 2194 | | printf("curfad reject %08x %08x %08x %08x\n",cd_curfad,fadstoplay,flt->fad,flt->fad+flt->range); |
| 2195 | | match = 0; |
| 2196 | | } |
| 2197 | | } |
| 2198 | | |
| 2199 | 2208 | if (match) |
| 2200 | 2209 | { |
| 2201 | 2210 | lastbuf = flt->condtrue; |
src/mame/drivers/saturn.c
| r12646 | r12647 | |
| 1377 | 1377 | PORT_CONFSETTING(0x01,"Racing Device") /* steering wheel only */ |
| 1378 | 1378 | PORT_CONFSETTING(0x02,"Analog Device") //Nights pad? |
| 1379 | 1379 | // PORT_CONFSETTING(0x03,"Lightgun Device") |
| 1380 | | PORT_CONFSETTING(0x04,"Pointing Device") // TODO: what's this? trackball? |
| 1380 | PORT_CONFSETTING(0x04,"Trackball") // TODO: according to the docs this ID is labeled "Pointing Device" |
| 1381 | 1381 | PORT_CONFSETTING(0x05,"Keyboard Device") |
| 1382 | 1382 | PORT_CONFSETTING(0x06,"Megadrive 3B Pad") |
| 1383 | 1383 | PORT_CONFSETTING(0x07,"Megadrive 6B Pad") |
| r12646 | r12647 | |
| 1678 | 1678 | } |
| 1679 | 1679 | #endif |
| 1680 | 1680 | |
| 1681 | | #ifdef UNUSED_FUNCTION |
| 1682 | | static void print_game_info(void); |
| 1683 | | #endif |
| 1684 | | |
| 1685 | 1681 | DRIVER_INIT ( stv ) |
| 1686 | 1682 | { |
| 1687 | 1683 | saturn_state *state = machine.driver_data<saturn_state>(); |