•  Back 
  •  XBIOS Function Reference 
  •  Index 
  •  Tree View 
  •  Cross references 
  •  %About 
  •  Show info about hypertext 
  •  View a new file 
Topic       : The ATARI Compendium
Author      : Scott Sanders / JAY Software
Version     : 1.25 (20/6/2003)
Subject     : Documentation
Nodes       : 1117
Index Size  : 32614
HCP-Version : 6
Compiled on : Atari
@charset    : UTF-8
@lang       : en
@default    : 
@help       : %About
@options    : +g -i -t4 +y +z
@width      : 100
View Ref-FileEsetpalette()
vq_color()
EgetPalette()                                                         XBIOS

Syntax

VOID EgetPalette( start, count, paldata )
WORD start, count;
WORD *paldata;

Function      EgetPalette() copies the current TT030 color palette data
              into a specified buffer..

Opcode        85 (0x55)

Availability  This call is available when the high word of the '_VDO'
              cookie has a value of 2.

Parameters    start gives the index (0-255) of the first color register to
              copy data into. count specifies the total number of registers
              to copy. paldata is a pointer to an array where the TT030
              palette data will be stored. Each WORD will be formatted as
              follows:

              Bits 15-12    Bits 11-8     Bits 7-4      Bits 3-0

              Reserved      Red           Green         Blue

Binding       pea      paldata
              move.w   count,-(sp)
              move.w   start,-(sp)
              move.w   #$55,-(sp)
              trap     #14
              lea      10(sp),sp

Caveats       This call is machine-dependent to the TT030. It is therefore
              recommended that vq_color() be used in most instances.

Comments      Unlike Setpalette() this call encodes color nibbles from the
              most signifigant to least signifigant bit (3-2-1-0) as
              opposed to the compatibilty method of 0-3-2-1.

See Also      Esetpalette(), vq_color()