trunk/src/mame/machine/megacdcd.c
| r24011 | r24012 | |
| 357 | 357 | CLEAR_CDD_RESULT |
| 358 | 358 | UINT32 msf = getmsf_from_regs(); |
| 359 | 359 | SCD_CURLBA = msf_to_lba(msf)-150; |
| 360 | if(segacd.cd == NULL) // no cd is there, bail out |
| 361 | return; |
| 360 | 362 | UINT32 end_msf = segacd.toc->tracks[ cdrom_get_track(segacd.cd, SCD_CURLBA) + 1 ].logframeofs; |
| 361 | 363 | SCD_CURTRK = cdrom_get_track(segacd.cd, SCD_CURLBA)+1; |
| 362 | 364 | LC8951UpdateHeader(); |
| r24011 | r24012 | |
| 380 | 382 | CLEAR_CDD_RESULT |
| 381 | 383 | UINT32 msf = getmsf_from_regs(); |
| 382 | 384 | SCD_CURLBA = msf_to_lba(msf)-150; |
| 385 | if(segacd.cd == NULL) // no cd is there, bail out |
| 386 | return; |
| 383 | 387 | SCD_CURTRK = cdrom_get_track(segacd.cd, SCD_CURLBA)+1; |
| 384 | 388 | LC8951UpdateHeader(); |
| 385 | 389 | STOP_CDC_READ |
| r24011 | r24012 | |
| 411 | 415 | { |
| 412 | 416 | CLEAR_CDD_RESULT |
| 413 | 417 | STOP_CDC_READ |
| 418 | if(segacd.cd == NULL) // no cd is there, bail out |
| 419 | return; |
| 414 | 420 | SCD_CURTRK = cdrom_get_track(segacd.cd, SCD_CURLBA)+1; |
| 415 | 421 | SCD_STATUS = CDD_PLAYINGCDDA; |
| 416 | 422 | CDD_STATUS = 0x0102; |