/* Copyright (C) 2025-2026 Harley Travis . This software (including source code) is licensed under the BSD Zero Clause License. See the Copying.TXT file for details. */ // PURPOSE: Demonstration of floppy driver // TO USE: #include this file at the cmd prompt or run it with F5. U8 DskImg() { U64 i; // Replace W with the letter you mounted your floppy as. CDrv *dv=Let2Drv('W'); // Open image file for writing CFile *img = FOpen("Floppy.IMG","w",dv->size*dv->bd->blk_size); //Read every sector on the disk to the file BlkRead(dv,img,0,bd->max_blk); // Close the image file FClose(img); return 0; } DskImg;