Table des matières

INT 0x10 - 0x0b - Set Color Palette

Request/Call:

reg value descr
AH 0x0b
BH see (1) Palette Color ID
BL see (2) Color/Palette Value

(1) Palette Color ID

BH Descr
0 Set background and border color
1 Select the 4 color palette

(2) Color/palette value

Color Value when BH = 0

Palette Value when BH = 1

BH BL Descr
0 0 Current background color
1 green (2)
2 red (4)
3 brown (6)
1 0 Current background color
1 cyan (3)
2 magenta (5)
3 white (7)

Return:

Nothing

Notes & Comments

  • does not work for all EGA and VGA video modes
  • (BH=0) sets border color in text mode

Back