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 0Bh
 Summary                                   Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
     In text modes, this function selects only the border color. The
     background 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
     following 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 nonzero 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.
                                    -♦-