formatting a floppy using assembly

hi
i want to know how can i format a floppy disk using assembly language the code will be very useful to me
thanks alot
rania12345Asked:
Who is Participating?
 
dimitryConnect With a Mentor Commented:
As a reference you can use this utility in assembly:
http://www.brillianet.com/programming/assembly/source_code/fmt130.zip
0
 
joghurtCommented:
You can either
- use the int 13h BIOS interrupt with the 05h function to low-level format a track, then put a boot sector and an empty FAT on the disk; or
- use the int 21h DOS interrupt with the 4Bh function to execute an external command, "FORMAT A:" in this case. The advantage is this second method that it's a magnitude simpler and you can specify commands to the formatting (such as "/S", "/Q" or "/U").


0
 
DancieCommented:
Look at my web site at www.reevessoft.com.
The program smartcop.exe has all the source code for formating and copy routines in asembler.
There are enough comments in the asm file to see how it works
0
 
rania12345Author Commented:
hi i want to thank dancie but the smatrtcop.zip link can not be open
0
 
jjkolaCommented:
hi, the right link for smartcop.exe is http://www.reevessoft.com/dos-etc/smartcop/SMARTCOP.ZIP. I think they are using linux as their webserver and it doesn't work well with case differencies.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.