From 07b8c4a33e4dd008b12b355a10213f0fe7dd287c Mon Sep 17 00:00:00 2001 From: Harley Travis Date: Fri, 29 May 2026 17:03:42 -0500 Subject: Update DskImg.HC Since implied seek is enabled during the initialization process, I realized that I could make the disk dumper program much faster by just doing the read without first doing a manual seek. However, because the data transfer code does not do any error checking, I have made the program more prone to calamity in case of a read failure. --- Examples/DskImg.HC | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'Examples/DskImg.HC') diff --git a/Examples/DskImg.HC b/Examples/DskImg.HC index 7aec469..b2a6560 100644 --- a/Examples/DskImg.HC +++ b/Examples/DskImg.HC @@ -37,16 +37,6 @@ U8 DskImg() for (i = 0; i < CYLINDERS; i++) { "Track %d\n", i; - if (FDCSeek(BASE, i, 0)) { - FDCReset(BASE); - FClose(img); - return 1; - } - if (FDCSeek(BASE, i, 1)) { - FDCReset(BASE); - FClose(img); - return 1; - } FDCReadMulti(BASE, i, 0, 1, 18); FBlkWrite(img, &FDC_DMA, 36 * i, 36); } @@ -58,11 +48,6 @@ U8 DskImg() FClose(img); return 1; } - if (FDCSeek(BASE, 0, 1)) { - FDCReset(BASE); - FClose(img); - return 1; - } // Close the image file FClose(img); -- cgit v1.2.3