Previous 199869 Revisions Next

r19808 Tuesday 25th December, 2012 at 17:01:12 UTC by Angelo Salese
Worked around comparison is always true error
[src/mame/machine]stvcd.c

trunk/src/mame/machine/stvcd.c
r19807r19808
319319         CDROM_LOG(("%s:CD: Initialize CD system\n", machine.describe_context()))
320320         if((cr1 & 0x81) == 0x00) //guess
321321         {
322            if(cd_stat != CD_STAT_NODISC && cd_stat != CD_STAT_OPEN)
322            if(((cd_stat & 0x0f00) != CD_STAT_NODISC) && ((cd_stat & 0x0f00) != CD_STAT_OPEN))
323323            {
324324               cd_stat = CD_STAT_PAUSE;
325325               cd_curfad = 150;
r19807r19808
13451345         sectorstore = 0;
13461346         xfertype32 = XFERTYPE32_INVALID;
13471347         xferdnum = 0;
1348         if(cd_stat != CD_STAT_NODISC && cd_stat != CD_STAT_OPEN)
1348         if(((cd_stat & 0x0f00) != CD_STAT_NODISC) && ((cd_stat & 0x0f00) != CD_STAT_OPEN))
13491349            cd_stat = CD_STAT_PAUSE;   // force to pause
13501350         cr_standard_return(cd_stat);
13511351         break;
13521352
13531353      case 0xe000:   // appears to be copy protection check.  needs only to return OK.
13541354         CDROM_LOG(("%s:CD: Verify copy protection\n",   machine.describe_context()))
1355         if(cd_stat != CD_STAT_NODISC && cd_stat != CD_STAT_OPEN)
1355         if(((cd_stat & 0x0f00) != CD_STAT_NODISC) && ((cd_stat & 0x0f00) != CD_STAT_OPEN))
13561356            cd_stat = CD_STAT_PAUSE;
13571357         cr1 = cd_stat;   // necessary to pass
13581358         cr2 = 0x4;
r19807r19808
13891389
13901390   cd_stat |= CD_STAT_PERI;
13911391
1392   if(cd_stat != CD_STAT_NODISC && cd_stat != CD_STAT_OPEN)
1392   /* TODO: doesn't boot if a disk isn't in? */
1393   //if(((cd_stat & 0x0f00) != CD_STAT_NODISC) && ((cd_stat & 0x0f00) != CD_STAT_OPEN))
13931394      hirqreg |= SCDQ;
13941395
13951396   cr_standard_return(cd_stat);

Previous 199869 Revisions Next


© 1997-2024 The MAME Team