BIOS color attributes
Encyclopedia
BIOS Color Attribute is a 8 bit
8-bit
The first widely adopted 8-bit microprocessor was the Intel 8080, being used in many hobbyist computers of the late 1970s and early 1980s, often running the CP/M operating system. The Zilog Z80 and the Motorola 6800 were also used in similar computers...

 value where the low 4 bits represent the character color and the high 4 bits represent the background color
Web colors
Web colors are colors used in designing web pages, and the methods for describing and specifying those colors. Hexadecimal color codes begin with a hash ....

.

For example to print a white character 'A' with black background, we should set the "BIOS Color Attribute" in the hexadecimal value 0x0F.

List of BIOS color attributes

Hex Binary Color
0 0000 Black  
1 0001 Blue
2 0010 Green
3 0011 Cyan
4 0100 Red
5 0101 Magenta
6 0110 Brown
7 0111 Light Gray
8 1000 Dark Gray
9 1001 Light Blue
A 1010 Light Green
B 1011 Light Cyan
C 1100 Light Red
D 1101 Light Magenta
E 1110 Yellow
F 1111 White
The source of this article is wikipedia, the free encyclopedia.  The text of this article is licensed under the GFDL.
 
x
OK