en:docs:bios:api:int13:01

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=01H

Version

IBM 5150 and higher

Brief

Get last disk status

Family API

None. Most error statuses available via API return codes.

Input

  • AH = 01h
  • DL = drive (bit 7 set for hard disk)

Return

  • CF clear if successful (returned status 00h)
  • CF set on error
  • AH = status of previous operation (see status)

Macro

INCLUDE BIOS.INC
 
@DskStatus

Notes

  • some BIOSes return the status in AL; the PS/2 Model 30/286 returns the status in both AH and AL

Note