[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
        DW      PALETTE         ; Load a color entry into the Palette

  Input:
     AX         The index number and function code for load
     BX         The color value to load into the palette

  Return:
     Nothing

The PALETTE vector is used to load single entries into the palette. The
register AX contains the function code for the load action and the index
of the color table entry to be loaded. The upper two bits of AX determine
the action to be taken. The table below tabulates the actions. If the
control bits are 00, the color table index in (AX AND 03FFFh) is loaded
with the value in BX. If the control bits are 10, the color table index in
(AX AND 03FFFh) is loaded with the RGB value in (Red=BX, Green=CX, and
Blue=DX). If the control bits are 11, the color table entry for the
background is loaded with the value in BX.

 Control Bits           Color Value and Index

      00                Register BX contains color, AX is index
      01                not used
      10                Red=BX  Green=CX  Blue=DX, AX is index
      11                Register BX contains color for background


        DW      ALLPALETTE      ; Load the full palette
        DW      ALLPALETTE      ; Load the full palette

  Input:
     ES:BX --> array of palette entries

  Return:
     Nothing

The ALLPALETTE routine loads the entire palette in one driver
call. The register pair ES:BX points to the table of values to be loaded
into the palette. The number of entries is determined by the color entries
in the Driver Status Table. The background color is not explicitly loaded
with this command.

This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson