Int 10/AH=08h

Prev Next Ralf Interrups Categories Contents

------

VIDEO - READ CHARACTER AND ATTRIBUTE AT CURSOR POSITION

AH = 08h
BH = page number (00h to number of pages - 1) (see #00010)

Return:
AH = character's attribute (text mode only) (see #00014) AH = character's color (Tandy 2000 graphics mode only) AL = character

Notes: 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. The foreground intensity bit (3) can be programmed to switch between character sets A and B on EGA and VGA cards, thus enabling 512 simultaneous characters on screen. In this case the bit's usual function (intensity) is regularly turned off.. In graphics modes, only characters drawn with white foreground pixels are matched by the pattern-comparison routine. On the Tandy 2000, BH=FFh specifies that the current page should be used. Because of the IBM BIOS specifications, there may exist some clone BIOSes which do not preserve SI or DI; the Novell DOS kernel preserves SI, DI, and BP before many INT 10h calls to avoid problems due to those registers not being preserved by the BIOS.

BUG: Some IBM PC ROM BIOSes destroy BP when in graphics modes

See Also: AH=09h - AX=1003h - AX=1103h - AH=12h/BL=37h

Bitfields for character's display attribute: Bit(s) Description (Table 00014) 7 foreground blink or (alternate) background bright (see also AX=1003h) 6-4 background color (see #00015) 3 foreground bright or (alternate) alternate character set (see AX=1103h) 2-0 foreground color (see #00015)

See Also: #00026

(Table 00015) Values for character color:. Normal Bright 000b black dark gray 001b blue light blue 010b green light green 011b cyan light cyan 100b red light red 101b magenta light magenta 110b brown yellow 111b light gray white

Category: Video - Int 10h - V

------

Prev Next Ralf Interrups Categories Contents

Sponsors
Shopping
Forum
Forum
email
EMail
Index
Index
Home
Home

Search the web with Google
Google
Google
Google

------