?
Solved

formatting a floppy using assembly

Posted on 2004-04-04
5
Medium Priority
?
884 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 2000 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

Want to be a Web Developer? Get Certified Today!

Enroll in the Certified Web Development Professional course package to learn HTML, Javascript, and PHP. Build a solid foundation to work toward your dream job!

Question has a verified solution.

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

Hey fellow admins! This time, I have a little fairy tale for you. As many tales do, it starts boring and then gets pretty gory. I hope you like it. TL;DR: It is about an important security matter, you should read it if you run or administer Windows …
Ready to get certified? Check out some courses that help you prepare for third-party exams.
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

765 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