The mini hard disk reader and writer under DOS is finally completed!
Can read and write absolute sectors, support large hard disks, USB flash drives (need to load drivers), and floppy disks..
Due to high code efficiency, it is very fast.
Preliminarily passed the test.
Finally, a bold write test was carried out on my own machine, that is, writing bad data to the hard disk. After the hard disk crashed, the pre-backed-up data was restored to the hard disk with this program, and the hard disk was as good as new..
There is source code for everyone to play with...
Sorry: The first time I uploaded the wrong executable file, now I have re-uploaded it.
Just added a prompt for the reason if there is a reading or writing error
Replaced with C comments, so it can be compiled without TC3 (BC31), TC2
Just solved the BUG that the basic INT13 does not show the error prompt..
In addition to considering being able to read and write 2048GB, the detection of negative numbers for incorrect input of the starting sector and the number of sectors to be processed is not added (otherwise, it can only read and write about 1024GB). Detection has been carried out for the other several input parameters..
Considering the objective opinions of DOSFOREVER
Today, added that if the extended 13 interrupt is not supported, the parameters of the hard disk itself are first obtained and displayed, and the basic 13 interrupt is called to read and write with its CHS value, so that it is compatible with hard disks that are not 255 heads and 63 sectors (that is, very old hard disks), so that the compatibility of the program is very strong..
Also added the function of reading and writing "non-1.44mb" floppy disks, and the instructions are in the main post...
In addition, even if the extension is supported, the hard disk parameters are obtained according to the extended 48th function and displayed.
Displaying the hard disk parameters can make the user have a clear understanding..
In addition, the read-write buffer of the extended 13 is increased to the number of bytes of 100 sectors, so that the speed is faster!
(Can't exceed this anymore, otherwise, it will exceed the maximum number of file reads and writes)
The program is basically coming to an end here...
If you need to expand the program functions, you can add them to the program..
Everyone is welcome to download and play..
I hope it will be a little helpful for those who are interested..
***********************************
%%%%%%%%%%%%%%%%%%%%%%%%%%%
Successfully added compression and volume splitting functions! And adopted the Linux help style...
Preliminarily passed the test! Welcome to try out!..
The main post program has been updated!
[ Last edited by GOTOmsdos on 2006-8-8 at 12:14 ]
Can read and write absolute sectors, support large hard disks, USB flash drives (need to load drivers), and floppy disks..
Due to high code efficiency, it is very fast.
Preliminarily passed the test.
Finally, a bold write test was carried out on my own machine, that is, writing bad data to the hard disk. After the hard disk crashed, the pre-backed-up data was restored to the hard disk with this program, and the hard disk was as good as new..
There is source code for everyone to play with...
Sorry: The first time I uploaded the wrong executable file, now I have re-uploaded it.
Just added a prompt for the reason if there is a reading or writing error
Replaced with C comments, so it can be compiled without TC3 (BC31), TC2
Just solved the BUG that the basic INT13 does not show the error prompt..
In addition to considering being able to read and write 2048GB, the detection of negative numbers for incorrect input of the starting sector and the number of sectors to be processed is not added (otherwise, it can only read and write about 1024GB). Detection has been carried out for the other several input parameters..
Considering the objective opinions of DOSFOREVER
Today, added that if the extended 13 interrupt is not supported, the parameters of the hard disk itself are first obtained and displayed, and the basic 13 interrupt is called to read and write with its CHS value, so that it is compatible with hard disks that are not 255 heads and 63 sectors (that is, very old hard disks), so that the compatibility of the program is very strong..
Also added the function of reading and writing "non-1.44mb" floppy disks, and the instructions are in the main post...
In addition, even if the extension is supported, the hard disk parameters are obtained according to the extended 48th function and displayed.
Displaying the hard disk parameters can make the user have a clear understanding..
In addition, the read-write buffer of the extended 13 is increased to the number of bytes of 100 sectors, so that the speed is faster!
(Can't exceed this anymore, otherwise, it will exceed the maximum number of file reads and writes)
The program is basically coming to an end here...
If you need to expand the program functions, you can add them to the program..
Everyone is welcome to download and play..
I hope it will be a little helpful for those who are interested..
***********************************
%%%%%%%%%%%%%%%%%%%%%%%%%%%
Successfully added compression and volume splitting functions! And adopted the Linux help style...
Preliminarily passed the test! Welcome to try out!..
The main post program has been updated!
[ Last edited by GOTOmsdos on 2006-8-8 at 12:14 ]
Attachments



