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

Function disk_debug

src/debug.cpp:6961–6998  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6959}
6960
6961static void disk_debug (TCHAR **inptr)
6962{
6963 TCHAR parm[10];
6964 int i;
6965
6966 if (**inptr == 'd') {
6967 (*inptr)++;
6968 ignore_ws (inptr);
6969 disk_debug_logging = readint(inptr, NULL);
6970 console_out_f (_T("Disk logging level %d\n"), disk_debug_logging);
6971 return;
6972 }
6973 disk_debug_mode = 0;
6974 disk_debug_track = -1;
6975 ignore_ws (inptr);
6976 if (!next_string (inptr, parm, sizeof (parm) / sizeof (TCHAR), 1))
6977 goto end;
6978 for (i = 0; i < _tcslen(parm); i++) {
6979 if (parm[i] == 'R')
6980 disk_debug_mode |= DISK_DEBUG_DMA_READ;
6981 if (parm[i] == 'W')
6982 disk_debug_mode |= DISK_DEBUG_DMA_WRITE;
6983 if (parm[i] == 'P')
6984 disk_debug_mode |= DISK_DEBUG_PIO;
6985 }
6986 if (more_params(inptr))
6987 disk_debug_track = readint(inptr, NULL);
6988 if (disk_debug_track < 0 || disk_debug_track > 2 * 83)
6989 disk_debug_track = -1;
6990 if (disk_debug_logging == 0)
6991 disk_debug_logging = 1;
6992end:
6993 console_out_f (_T("Disk breakpoint mode %c%c%c track %d\n"),
6994 disk_debug_mode & DISK_DEBUG_DMA_READ ? 'R' : '-',
6995 disk_debug_mode & DISK_DEBUG_DMA_WRITE ? 'W' : '-',
6996 disk_debug_mode & DISK_DEBUG_PIO ? 'P' : '-',
6997 disk_debug_track);
6998}
6999
7000static void find_ea (TCHAR **inptr)
7001{

Callers 1

debug_lineFunction · 0.85

Calls 5

ignore_wsFunction · 0.85
readintFunction · 0.85
next_stringFunction · 0.85
more_paramsFunction · 0.85
console_out_fFunction · 0.50

Tested by

no test coverage detected