Assembly Language Help (alang.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Int 10h Function 10h Subfunction 1Bh
                                             Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
  Interrupt:   10h     Function:   10h     Subfunction:   1Bh
 
  Title:       Set Gray-Scale Values
 
  See also:    Enable/Disable Gray-Scale Summing
 
  Description:                                              [MCGA] [VGA]
 
     Transforms the red, green, and blue values of one or more color
     registers into the gray-scale equivalents. 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.
 
     Input                              Output
 
     AH = 10h                           None
     AL = 1Bh
     BX = First color register
     CX = Number of color registers
                                    -♦-