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

Function dumpdisk

src/disk.cpp:3830–3859  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3828}
3829
3830void dumpdisk (const TCHAR *name)
3831{
3832 int i, j, k;
3833 uae_u16 w;
3834
3835 for (i = 0; i < MAX_FLOPPY_DRIVES; i++) {
3836 drive *drv = &floppy[i];
3837 if (!(disabled & (1 << i))) {
3838 console_out_f (_T("%s: drive %d motor %s cylinder %2d sel %s %s mfmpos %d/%d\n"),
3839 name, i, drv->motoroff ? _T("off") : _T(" on"), drv->cyl, (selected & (1 << i)) ? _T("no") : _T("yes"),
3840 drive_writeprotected (drv) ? _T("ro") : _T("rw"), drv->mfmpos, drv->tracklen);
3841 if (drv->motoroff == 0) {
3842 w = 0;
3843 for (j = -4; j < 13; j++) {
3844 for (k = 0; k < 16; k++) {
3845 int pos = drv->mfmpos + j * 16 + k;
3846 if (pos < 0)
3847 pos += drv->tracklen;
3848 w <<= 1;
3849 w |= getonebit(NULL, drv->bigmfmbuf, pos, NULL);
3850 }
3851 console_out_f(_T("%04X%c"), w, j == -1 ? '|' : ' ');
3852 }
3853 console_out (_T("\n"));
3854 }
3855 }
3856 }
3857 console_out_f (_T("side %d dma %d off %d word %04X pt %08X len %04X bytr %04X adk %04X sync %04X\n"),
3858 side, dskdmaen, bitoffset, word, dskpt, dsklen, dskbytr_val, adkcon, dsksync);
3859}
3860
3861static void disk_dmafinished(void)
3862{

Callers 5

wordsync_detectedFunction · 0.85
DSKBYTRFunction · 0.85
DISK_startFunction · 0.85
restore_disk_finishFunction · 0.85
debug_lineFunction · 0.85

Calls 4

drive_writeprotectedFunction · 0.85
getonebitFunction · 0.85
console_out_fFunction · 0.50
console_outFunction · 0.50

Tested by

no test coverage detected