Solved

formatting a floppy using assembly

Posted on 2004-04-04
5
870 Views
Last Modified: 2008-03-10
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
0
Comment
Question by:rania12345
5 Comments
 
LVL 6

Expert Comment

by:joghurt
ID: 10753266
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
 
LVL 11

Accepted Solution

by:
dimitry earned 500 total points
ID: 10753314
As a reference you can use this utility in assembly:
http://www.brillianet.com/programming/assembly/source_code/fmt130.zip
0
 
LVL 3

Expert Comment

by:Dancie
ID: 10755312
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
 

Author Comment

by:rania12345
ID: 10756350
hi i want to thank dancie but the smatrtcop.zip link can not be open
0
 

Expert Comment

by:jjkola
ID: 10878628
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

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Patching and EXE 3 1,020
Reverse Engineering Assembly Code 17 1,697
Lowlevel details of a C program 2 491
Return (ret) value over-writing on x64 8 667
Color can increase conversions, create feelings of warmth or even incite people to get behind a cause. If you want your website to really impact site visitors, then it is vital to consider the impact color has on them.
Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question