MCPcopy Create free account
hub / github.com/BlitterStudio/amiberry / cdrom_command_accepted

Function cdrom_command_accepted

src/cdtv.cpp:502–524  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

500}
501
502static void cdrom_command_accepted (int size, uae_u8 *cdrom_command_input, int *cdrom_command_cnt_in)
503{
504#ifdef CDTV_DEBUG_CMD
505 TCHAR tmp[200];
506 int i;
507#endif
508 cdrom_command_size_out = size;
509#ifdef CDTV_DEBUG_CMD
510 tmp[0] = 0;
511 for (i = 0; i < *cdrom_command_cnt_in; i++)
512 _stprintf (tmp + i * 3, _T("%02X%c"), cdrom_command_input[i], i < *cdrom_command_cnt_in - 1 ? '.' : ' ');
513 write_log (_T("CD<-: %s\n"), tmp);
514 if (size > 0) {
515 tmp[0] = 0;
516 for (i = 0; i < size; i++)
517 _stprintf (tmp + i * 3, _T("%02X%c"), cdrom_command_output[i], i < size - 1 ? '.' : ' ');
518 write_log (_T("CD->: %s\n"), tmp);
519 }
520#endif
521 *cdrom_command_cnt_in = 0;
522 cdrom_command_cnt_out = 0;
523 cdrom_command_done = 1;
524}
525
526static void cdrom_command_thread (uae_u8 b)
527{

Callers 1

cdrom_command_threadFunction · 0.85

Calls 1

write_logFunction · 0.70

Tested by

no test coverage detected