qa.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 0BH
   Summary  Notes  Back
──────────────────────────────────────────────────────────────────────────────
 
    In text modes, this function selects only the border color. The back-
    ground color of each individual character is controlled by the upper 4
    bits of that character's attribute byte.
 
    On the CGA and EGA, this function is valid for palette selection only
    in 320-by-200 4-color graphics modes.
 
    In 320-by-200 4-color graphics modes, if register BH =01H, the follow-
    ing palettes may be selected:
 
    Palette  Pixel value  Color
    ═══════  ═══════════  ══════════════════
    0        0            same as background
             1            green
             2            red
             3            brown or yellow
    1        0            same as background
             1            cyan
             2            magenta
             3            white
 
    On the CGA in 640-by-200 2-color graphics mode, the background color
    selected with this function actually controls the display color for non-
    zero pixels; zero pixels are always displayed as black.
 
    On the PCjr in 640-by-200 2-color graphics mode, if BH =00H and bit 0
    of register BL is cleared, pixel value 1 is displayed as white; if bit 0
    is set, pixel value 1 is displayed as black.
 
    See also Int 10H Function 10H, which is used for palette programming on
    the PCjr, EGA, MCGA, and VGA.
                                    -♦-