trunk/src/mame/machine/stvcd.c
| r19807 | r19808 | |
| 319 | 319 | CDROM_LOG(("%s:CD: Initialize CD system\n", machine.describe_context())) |
| 320 | 320 | if((cr1 & 0x81) == 0x00) //guess |
| 321 | 321 | { |
| 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)) |
| 323 | 323 | { |
| 324 | 324 | cd_stat = CD_STAT_PAUSE; |
| 325 | 325 | cd_curfad = 150; |
| r19807 | r19808 | |
| 1345 | 1345 | sectorstore = 0; |
| 1346 | 1346 | xfertype32 = XFERTYPE32_INVALID; |
| 1347 | 1347 | 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)) |
| 1349 | 1349 | cd_stat = CD_STAT_PAUSE; // force to pause |
| 1350 | 1350 | cr_standard_return(cd_stat); |
| 1351 | 1351 | break; |
| 1352 | 1352 | |
| 1353 | 1353 | case 0xe000: // appears to be copy protection check. needs only to return OK. |
| 1354 | 1354 | 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)) |
| 1356 | 1356 | cd_stat = CD_STAT_PAUSE; |
| 1357 | 1357 | cr1 = cd_stat; // necessary to pass |
| 1358 | 1358 | cr2 = 0x4; |
| r19807 | r19808 | |
| 1389 | 1389 | |
| 1390 | 1390 | cd_stat |= CD_STAT_PERI; |
| 1391 | 1391 | |
| 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)) |
| 1393 | 1394 | hirqreg |= SCDQ; |
| 1394 | 1395 | |
| 1395 | 1396 | cr_standard_return(cd_stat); |