Previous 199869 Revisions Next

r37071 Sunday 5th April, 2015 at 22:23:23 UTC by Zoƫ Blade
Fix more capitalisation
[src/mess/machine]megacdcd.c

trunk/src/mess/machine/megacdcd.c
r245582r245583
1/* CD controller code from megacd.c, used by Sega Cd / Mega CD */
1/* CD controller code from megacd.c, used by Sega CD / Mega CD */
22
33/* todo: cleanup(!!), make more generic, unifiy implementation with NeoCD, turn into a device and move to the proper lc89510.c file
44  currently this is a bit of a mix of system specific bits, incomplete implementations etc. as well as a rather kludgy combination
r245582r245583
217217   CLEAR_CDD_RESULT
218218   UINT32 msf;
219219   CDD_STATUS &= 0xFF;
220   if(segacd.cd == NULL) // no cd is there, bail out
220   if(segacd.cd == NULL) // no CD is there, bail out
221221      return;
222222   CDD_STATUS |= SCD_STATUS;
223223   msf = lba_to_msf_alt(SCD_CURLBA+150);
r245582r245583
233233   UINT32 msf;
234234   CDD_STATUS &= 0xFF;
235235   //  UINT32 end_msf = ;
236   if(segacd.cd == NULL) // no cd is there, bail out
236   if(segacd.cd == NULL) // no CD is there, bail out
237237      return;
238238   CDD_STATUS |= SCD_STATUS;
239239   elapsedlba = SCD_CURLBA - segacd.toc->tracks[ cdrom_get_track(segacd.cd, SCD_CURLBA) ].logframeofs;
r245582r245583
248248{
249249   CLEAR_CDD_RESULT
250250   CDD_STATUS &= 0xFF;
251   if(segacd.cd == NULL) // no cd is there, bail out
251   if(segacd.cd == NULL) // no CD is there, bail out
252252      return;
253253   CDD_STATUS |= SCD_STATUS;
254254   SCD_CURTRK = cdrom_get_track(segacd.cd, SCD_CURLBA)+1;
r245582r245583
259259{
260260   CLEAR_CDD_RESULT
261261   CDD_STATUS &= 0xFF;
262   if(segacd.cd == NULL) // no cd is there, bail out
262   if(segacd.cd == NULL) // no CD is there, bail out
263263      return;
264264   CDD_STATUS |= SCD_STATUS;
265265
r245582r245583
276276{
277277   CLEAR_CDD_RESULT
278278   CDD_STATUS &= 0xFF;
279   if(segacd.cd == NULL) // no cd is there, bail out
279   if(segacd.cd == NULL) // no CD is there, bail out
280280      return;
281281   CDD_STATUS |= SCD_STATUS;
282282   CDD_MIN = 1; // first
r245582r245583
291291   int last_track = cdrom_get_last_track(segacd.cd);
292292
293293   CDD_STATUS &= 0xFF;
294   if(segacd.cd == NULL) // no cd is there, bail out
294   if(segacd.cd == NULL) // no CD is there, bail out
295295      return;
296296   CDD_STATUS |= SCD_STATUS;
297297
r245582r245583
323323   int last_track = cdrom_get_last_track(segacd.cd);
324324
325325   CDD_STATUS &= 0xFF;
326   if(segacd.cd == NULL) // no cd is there, bail out
326   if(segacd.cd == NULL) // no CD is there, bail out
327327      return;
328328   CDD_STATUS |= SCD_STATUS;
329329
r245582r245583
359359   CLEAR_CDD_RESULT
360360   UINT32 msf = getmsf_from_regs();
361361   SCD_CURLBA = msf_to_lba(msf)-150;
362   if(segacd.cd == NULL) // no cd is there, bail out
362   if(segacd.cd == NULL) // no CD is there, bail out
363363      return;
364364   UINT32 end_msf = segacd.toc->tracks[ cdrom_get_track(segacd.cd, SCD_CURLBA) + 1 ].logframeofs;
365365   SCD_CURTRK = cdrom_get_track(segacd.cd, SCD_CURLBA)+1;
r245582r245583
384384   CLEAR_CDD_RESULT
385385   UINT32 msf = getmsf_from_regs();
386386   SCD_CURLBA = msf_to_lba(msf)-150;
387   if(segacd.cd == NULL) // no cd is there, bail out
387   if(segacd.cd == NULL) // no CD is there, bail out
388388      return;
389389   SCD_CURTRK = cdrom_get_track(segacd.cd, SCD_CURLBA)+1;
390390   LC8951UpdateHeader();
r245582r245583
417417{
418418   CLEAR_CDD_RESULT
419419   STOP_CDC_READ
420   if(segacd.cd == NULL) // no cd is there, bail out
420   if(segacd.cd == NULL) // no CD is there, bail out
421421      return;
422422   SCD_CURTRK = cdrom_get_track(segacd.cd, SCD_CURLBA)+1;
423423   SCD_STATUS = CDD_PLAYINGCDDA;


Previous 199869 Revisions Next


© 1997-2024 The MAME Team