en:docs:bios:api:int17: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 17H, AH=01H

Version

IBM 5150 and higher

Brief

Initialize printer port

Family API

Input

  • AH = 01h
  • DX = printer number (00h-02h)

Return

  • AH = printer status (see #00631)

Macro

INCLUDE BIOS.INC
 
@PrnInit 0

Notes

  • some printers report that they are ready immediately after initialization when they actually are not; a more reliable result may be obtained by calling AH=02h after a brief delay

Note