Previous 15994 Revisions Next

r12271 Tuesday 19th July, 2011 at 13:49:17 UTC by Angelo Salese
Work-around for a bogus play command parameter, fixes Galaxy Fight crash on attract
[src/mame/machine]stvcd.c
[src/mame/video]stvvdp1.c

src/mame/machine/stvcd.c
r12270r12271
774774         }
775775         else   // play until the end of the disc
776776         {
777            fadstoplay = (cdrom_get_track_start(cdrom, 0xaa)) - cd_curfad;
778            printf("track mode %08x %08x\n",cd_curfad,fadstoplay);
777            UINT32 start_pos;
778
779            start_pos = ((cr1&0xff)<<16) | cr2;
780
781            /* Galaxy Fight calls 10ff ffff ffff ffff, is it a valid command? */
782            if(start_pos != 0xffffff)
783            {
784               fadstoplay = (cdrom_get_track_start(cdrom, 0xaa)) - cd_curfad;
785               printf("track mode %08x %08x\n",cd_curfad,fadstoplay);
786            }
787            else
788               printf("Illegal play call?\n");
779789         }
780790
781791         CDROM_LOG(("CD: Play Disc: start %x length %x\n", cd_curfad, fadstoplay))
src/mame/video/stvvdp1.c
r12270r12271
350350   if ( STV_VDP1_TVM & 1 )
351351   {
352352      /* 8-bit mode */
353      printf("%08x %02x\n",offset,data);
353      printf("VDP1 8-bit mode %08x %02x\n",offset,data);
354354   }
355355   else
356356   {
r12270r12271
374374   if ( STV_VDP1_TVM & 1 )
375375   {
376376      /* 8-bit mode */
377      printf("%08x\n",offset);
377      printf("VDP1 8-bit mode %08x\n",offset);
378378   }
379379   else
380380   {
r12270r12271
20622062      case 1:/*Draw by request*/
20632063         break;
20642064      case 2:/*Automatic Draw*/
2065         if ( framebuffer_changed )
2065         //if ( framebuffer_changed )
20662066         {
20672067            /*set CEF to 1*/
20682068            stv_vdp1_process_list(machine);

Previous 15994 Revisions Next


© 1998-2018 The MESS Team