Table des matières

INT 0x10 - 0x08 - Read Character and attribute at cursor position

Request/Call:

reg value descr
AH 0x08
BH var page number (00h to number of pages -1) see INT 10h, 00h

Return

reg descr
AH Attribute (see bellow)
AL Character

Attribute:

7 6 5 4 3 2 1 0
blink Background color Foreground color

Colors

Background Color Foreground Color
000 black 0000 black 1000 dark grey
001 blue 0001 blue 1001 light blue
010 green 0010 green 1010 light green
011 cyan 0011 cyan 1011 light cyan
100 red 0100 red 1100 light red
101 magenta 0101 magenta 1101 light magenta
110 brown 0110 brown 1110 yellow
111 white 0111 light grey 1111 white

Notes & Comments

  • for monochrome displays, a foreground of 1 with background 0 is underlined
  • the blink bit may be reprogrammed to enable intense background colors using AX=1003h or by programming the CRT controller

Back