
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Programmers Reference 0.02b - <b>int 10h, 0bh (11) set color palette</b>
[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
INT 10h, 0Bh (11) Set Color Palette
Selects color palette for various display modes.
On entry: AX 0Bh
BH Palette Color ID (0 or 1, See below)
BL Color or palette value to be used with
Color ID (0 - 31)
Returns: None
Registers destroyed: AX, SP, BP, SI, DI
--------------------------------------------------------------------------
If BH (Palette Color ID) is 0, then:
. Sets background color for 320 x 200 graphics modes
. Sets border color for text modes
. Sets foreground color for 640 x 200 graphics modes
BL contains the color to use. The EGA will set the
. background color for 640 x 200 graphics modes.
When setting the border color for text modes, colors 16-31 will select
the high-intensity background set.
If BH (Palette Color ID) is 1, then:
. Selects the palette for 320 x 200 graphics modes
The value in BL determines which palette combination to use, as
defined below:
--------------------------------------------------------------------------
Palette 0 (BL = 0)
Pixel Value Color
0 Current background color
1 Green
2 Red
3 Brown
--------------------------------------------------------------------------
Palette 1 (BL = 1)
Pixel Value Color
0 Current background color
1 Cyan
2 Magenta
3 White
See Also: INT 10h, 10h
Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson