•  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-FileSetcolor()
EsetPalette()
VsetRGB()
vs_color()
Setpalette()                                                          XBIOS

Syntax

VOID Setpalette( palette )
WORD *palette;

Function      Setpalette() loads the ST color lookup table with a new
              palette.

Opcode        6 (0x06)

Availability  All TOS versions.

Parameters    palette is a pointer to a WORD array containing 16 color
              encoded WORDs as defined in Setcolor().

Binding       pea      palette
              move.w   #$06,-(sp)
              trap     #14
              addq.l   #6,sp

Comments      The actual palette data is not copied from the specified
              array until the next vertical blank interrupt. For this
              reason, this call should be followed by Vsync() to be sure
              the array memory is not modified or reallocated prior to the
              transfer.

See Also      Setcolor(), EsetPalette(), VsetRGB(), vs_color()