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 |
nothing