Outils pour utilisateurs

Outils du site


back2root:ibm-pc-ms-dos:interrupts:int_10:int_10_09

Table des matières

INT 0x10 - 0x09 - Write Character and attribute at cursor position

Request/Call:

reg value descr
AH 0x09
AL var Character to display
BH var page number (00h to number of pages -1) see INT 10h, 00h
BL var attribute (see bellow)
CX var number of times to write character

Attribute:

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

if bit 7 set in graphics mode, character is xor'ed onto screen

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

Return

nothing

Notes & Comments

  • 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

Back

back2root/ibm-pc-ms-dos/interrupts/int_10/int_10_09.txt · Dernière modification : 2024/01/19 22:04 de frater