[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
INT 10h,  0Bh (11)       Set Color Palette

    Selects color palette for various display modes.

       On entry:      AX         0Bh
                      BH         Palette Color ID (0 or 1, See below)
                      BL         Color or palette value to be used with Color
                                 ID (0 - 31)

       Returns:       None

       Registers destroyed:      AX, SP, BP, SI, DI

  --------------------------------------------------------------------------

    If BH (Palette Color ID) is 0, then:
        .    Sets background color for 320 x 200 graphics modes
        .    Sets border color for text modes
        .    Sets foreground color for 640 x 200 graphics modes

    BL contains the color to use. The EGA will set the
        .    background color for 640 x 200 graphics modes.

    When setting the border color for text modes, colors 16-31 will select
    the high-intensity background set.

    If BH (Palette Color ID) is 1, then:
        .    Selects the palette for 320 x 200 graphics modes

    The value in BL determines which palette combination to use, as
    defined below:

  --------------------------------------------------------------------------
                              Palette 0 (BL = 0)

                         Pixel Value          Color
                             0                Current background color
                             1                Green
                             2                Red
                             3                Brown
  --------------------------------------------------------------------------
                              Palette 1 (BL = 1)

                         Pixel Value          Color
                             0                Current background color
                             1                Cyan
                             2                Magenta
                             3                White
  --------------------------------------------------------------------------

See Also: INT 10h, 10h
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson