Int 10H [MCGA] [VGA] Function 10H (16) Subfunction 12H (18) Set block of color registers

Programs a group of consecutive color registers in one operation.

Call with:

AH = 10H

AL = 12H

BX = first color register

CX = number of color registers

ES:DX = segment:offset of color table

Returns:

Nothing

Notes:

The table consists of a series of 3-byte entries, one entry per color register to be programmed. The bytes of an individual entry specify the red, green, and blue values (in that order) for the associated color register.

If gray-scale summing is enabled, the weighted gray-scale value for each register is calculated as described under Int 10H Function 10H Subfunction 1BH and is stored into all three components of the color register. See also Int 10H Function 12H Subfunction 33H.