Transforms the red, green, and blue values of one or more color registers into the gray-scale equivalents.
Call with:
AH = 10H
AL = 1BH
BX = first color register
CX = number of color registers
Returns:
Nothing
Note:
For each color register, the weighted sum of its red, green, and blue values is calculated (30% red + 59% green + 11% blue) and written back into all three components of the color register. The original red, green, and blue values are lost.