Chapter
6
I
BIOS
Services
Entry Conditions:
AH
=
11
BH
=
0 Set background color (0-15)
to
color value in BL.
BL
=
color value
(0
=
black
I
1
=
blue 12
=
green 13
=
cyan
I
4
=
red
I
5
=
magenta
I
6
=
yellow
17
=
gray
I8
=
dark gray
I
9
=
light blue
I
10
=
light green
I
11
=
light
cyan
I
12
=
light red
I
13
=
light magenta
I
14
=
light yel-
low 115
=
white)
or
BH
=
1
Set default palette ot the number (0
or
1)
in BL.
In
black and white modes:
BL
=
0:
1
for
white
BL
=
1:
1
for black
In
4
color graphics modes:
BL
=
0
(1
=
green
I
2
=
red
I
3
=
yellow)
BL
=
1
(1
=
cyan 12
=
magenta
13
=
white)
In 16 color graphics modes:
(1
=
blue
I
2
=
green
I
3
=
cyan
I
4
=
red
I
5
=
magenta
I
6
=
yellow
I
7
=
light gray
I
8
=
dark gray
I9
=
light
blue
I
10
=
light green
I
11
=
light cyan
I
12
=
light red
I
13
=
light magenta 114
=
yellow 115
=
white)
Note:
For alpha modes palette entry 0 indicates the border color.
For
graphics mode palette entry 0 indicates the border and the
background color.
Write
Dot
Write
a
pixel (dot).
Entry Conditions:
AH
=
12
DX
=
row
number
CX
=
column number
AL
=
color value (When bit
7
of AL
is set, the resultant color
value
of
thz
dot
is the exclusive
OR
of
the current dot color
value and the value in
AL.)
201