en:docs:bios:api:int13:05

Note: This IBM PC BIOS API call is for DOS/Win16 personality only. Use Family API for portability.

Note: osFree Macro Library provides macros for most of functions

2022/03/13 05:41 · prokushev · 0 Comments

Int 13H, AH=05H

Version

IBM 5150 and higher

Brief

Format Track

Family API

none

Input

  • AH = 05h
  • AL = number of sectors to format
  • CH = track number
  • DH = head number
  • DL = drive number
  • ES:BX → address field buffer (see format)

Return

  • CF set on error
  • CF clear if successful
  • AH = status (see status)

Macro

INCLUDE BIOS.INC
 
@DskFormat  0, 0, 0, offset buf

Notes

  • on AT or higher, call AH=17h first
  • the number of sectors per track is read from the diskette parameter table pointed at by INT 1E
  • some old Compaq BIOSes have a bug when attempting to call this function from Windows Standard Mode with EMM386 loaded. A possible workaround is to call this function from Real Mode e.g. through DPMI function “Call Real Mode function with FAR return” (see INT 31/AX=0301h).

Note