Solved

formatting a floppy using assembly

Posted on 2004-04-04
5
867 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
hi i want to thank dancie but the smatrtcop.zip link can not be open
0
 

Expert Comment

by:jjkola
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
SwapWord function 11 1,131
Debugging multi threaded application 25 612
C++ bitwise shift issue 12 610
SQL Server RDS clr assembly 4 33
Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
In this article, I will show you HOW TO: Create your first Windows Virtual Machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, the Windows OS we will install is Windows Server 2016.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

728 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now