Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Peter Norton Programmer's Guide - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

  Service 0BH (decimal 11) actually consists of two subservices. You select
  either subservice 00H or subservice 01H by storing the proper value in
  register BH. (See Figure 9-11.) Subservice 00H lets you set the border
  color in CGA alphanumeric modes or the background color in CGA 320 x 200,
  4-color graphics mode. You designate the border color in BL with a value
  between 00H and 0FH.

  Subservice 01H lets you select one of the two 4-color palettes used in 320
  x 200, 4-color mode. The value in BL specifies which of the two hardware
  palettes to use. A value of 0 designates the red-green-brown palette, and
  a value of 1 selects the cyan-magenta-white palette. (See page 77 for
  more on color palettes.)

  This service was designed primarily for use with the CGA. Use service
  10H to control colors in other video modes on the EGA, MCGA, and VGA.

  Service Number Subservice Number            Parameters
  --------------------------------------------------------------------------
  AH = 0BH       BH = 00H                     BL = border or background
                                              color
                 BH = 01H                     BL = palette number (0 or 1)
  --------------------------------------------------------------------------

  Figure 9-11.  Color control in CGA-compatible video modes using service
  0BH.

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson