Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- BIOS ref. - <b>int 10h, 1000h set palette register ega, vga</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Int 10h, 1000h          Set Palette Register                         EGA, VGA

    Sets one of the 16 palette registers ("EGA registers").

        Entry   AX = 1000h
                BL = Palette register (00h..0Fh)
                BH = Color value

        Return  Nothing

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

    Each of the 16 palette registers can take on 1 of 64 values. the
    value in BH is formatted as follows:

          Bit 7 - Reserved
          Bit 6 - Reserved
          Bit 5 - Secondary Red
          Bit 4 - Secondary Green
          Bit 3 - Secondary Blue
          Bit 2 - Red
          Bit 1 - Green
          Bit 0 - Blue

    The secondary colors have an intensity of 1/3, while the normal
    colors have an intensity of 2/3. For example, BH = 02h will
    produce green, BH = 10h will produce a dim green, and BH = 12h
    will produce a bright green.

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

    The default values for the palette registers are defined below:

        Palette
        Register        Color value         Color
          00h               00h             Black
          01h               01h             Blue
          02h               02h             Green
          03h               03h             Cyan
          04h               04h             Red
          05h               05h             Magenta
          06h               14h             Brown
          07h               07h             White
          08h               38h             Dark Gray
          09h               39h             Light Blue
          0Ah               3Ah             Light Green
          0Bh               3Bh             LIght Cyan
          0Ch               3Ch             Light Red
          0Dh               3Dh             Light Magenta
          0Eh               3Eh             Yellow
          0Fh               3Fh             Bright White

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