Int 10H [PCjr] [EGA] [VGA] Function 10H (16) Subfunction 02H Set palette and border

Sets all palette registers and the border color (overscan) in one operation.

Call with:

AH = 10H

AL = 02H

ES:DX = segment:offset of color list

Returns:

Nothing

Notes:

The color list is 17 bytes long. The first 16 bytes are the color values to be loaded into palette registers 0—15, and the last byte is stored in the border color register.

In 16-color graphics modes, the following default palette is set up:

Pixel value Color 01H blue 02H green 03H cyan 04H red 05H magenta 06H brown 07H white 08H gray 09H light blue 0AH light green 0BH light cyan 0CH light red 0DH light magenta 0EH yellow 0FH intense white