summaryrefslogtreecommitdiff
path: root/Examples
diff options
context:
space:
mode:
authorHarley Travis <harleytravis123@outlook.com>2026-05-29 17:03:42 -0500
committerHarley Travis <harleytravis123@outlook.com>2026-05-29 17:03:42 -0500
commit07b8c4a33e4dd008b12b355a10213f0fe7dd287c (patch)
tree4df0f97ebd301f84d99865cbead06f880e02995b /Examples
parent5c1cd605a1ad2b5428576078bf812f4d9b65f4b7 (diff)
downloadtempleos-floppy-driver-07b8c4a33e4dd008b12b355a10213f0fe7dd287c.tar.gz
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.
Diffstat (limited to 'Examples')
-rw-r--r--Examples/DskImg.HC15
1 files changed, 0 insertions, 15 deletions
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);