Previous 199869 Revisions Next

r21323 Friday 22nd February, 2013 at 17:43:28 UTC by Angelo Salese
Actually fixed track seek, fixes regression with Zero Divide
[hash]saturn.xml
[src/emu/machine]stvcd.c

trunk/hash/saturn.xml
r21322r21323
493493     Horde, The (Japan) [T-15902G]                                                         | (hordej)
494494     Horror Tour (Japan) [T-24301G]                                                        | (horror)
495495     Houkago Ren-ai Club: Koi no Etude (Japan) [T-19713G]                                  | (houkago)
496     Houkago Ren-ai Club: Koi no Etude (Japan) (Genteiban) [T-19714G]                      | houkagogen)
496     Houkago Ren-ai Club: Koi no Etude (Japan) (Genteiban) [T-19714G]                      | (houkagogen)
497497     Houma Hunter Lime: Perfect Collection (Japan) [T-2001G]                               | (hhuntlim)
498498     House of the Dead, The (Japan) [GS-9173]                                              | (hotdj)
499499     House of the Dead, The (Japan) (Satakore) [GS-9207]                                   |  @@
trunk/src/emu/machine/stvcd.c
r21322r21323
24502450{
24512451   if ((cd_stat & 0x0f00) == CD_STAT_SEEK)
24522452   {
2453      INT32 fad_diff;
2454      //printf("PRE %08x %08x %08x %d\n",cd_curfad,cd_fad_seek,cd_stat,cd_fad_seek - cd_curfad);
2455
2456      fad_diff = (cd_fad_seek - cd_curfad);
2457
24532458      /* Zero Divide wants this TODO: timings. */
2454      if((cd_fad_seek - cd_curfad) > (750*cd_speed))
2459      if(fad_diff > (750*cd_speed))
2460      {
2461         //printf("PRE FFWD %08x %08x %08x %d %d\n",cd_curfad,cd_fad_seek,cd_stat,cd_fad_seek - cd_curfad,750*cd_speed);
24552462         cd_curfad += (750*cd_speed);
2456      else if((cd_fad_seek - cd_curfad) < (-750*cd_speed))
2463         //printf("POST FFWD %08x %08x %08x %d %d\n",cd_curfad,cd_fad_seek,cd_stat,cd_fad_seek - cd_curfad, 750*cd_speed);
2464      }
2465      else if(fad_diff < (-750*cd_speed))
2466      {
2467         //printf("PRE REW %08x %08x %08x %d %d\n",cd_curfad,cd_fad_seek,cd_stat,cd_fad_seek - cd_curfad, -750*cd_speed);
24572468         cd_curfad -= (750*cd_speed);
2469         //printf("POST REW %08x %08x %08x %d %d\n",cd_curfad,cd_fad_seek,cd_stat,cd_fad_seek - cd_curfad, -750*cd_speed);
2470      }
24582471      else
24592472      {
2473         //printf("Ready\n");
24602474         cd_curfad = cd_fad_seek;
24612475         cd_stat = CD_STAT_PLAY;
24622476      }

Previous 199869 Revisions Next


© 1997-2024 The MAME Team