You have to call this service multiple times to format an entire disk. (The service number goes in the AH register when you invoke the interrupt.) Note that this service formats a single track, not the entire disk at once. Specifically, int 13h, service 05h formats a disk track. An application program generally leaves such low-level manipulation of the FAT to the operating system, using only the OS-provided services to do high-level read/write operations. I don't think DOS provides any service to format a disk. Int 13h is the appropriate way to do it, but rather than calling a DOS service, you're actually using it to call a ROM BIOS service.
0 Comments
Leave a Reply. |