en:docs:bios:api:int10:09

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 10H, AH=09H

Version

IBM 5150 and higher

Brief

Print character and attribute at cursor position

osFree Macro Library

Family API

Parameters

  • AH = 09h
  • AL = character to display
  • BH = page number (00h to number of pages - 1) (see #00010) background color in 256-color graphics modes (ET4000)
  • BL = attribute (text mode) or color (graphics mode) if bit 7 set in <256-color graphics mode, character is XOR'ed onto screen
  • CX = number of times to write character

Return

Macro

INCLUDE BIOS.INC
 
@PutChAtr 'A', 7, 0, 5

Notes

  • all characters are displayed, including CR, LF, and BS
  • replication count in CX may produce an unpredictable result in graphics modes if it is greater than the number of positions remaining in the current row
  • With PhysTechSoft's PTS ROM-DOS the BH, BL, and CX values are ignored on entry.