•  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-FileEgetShift()
EsetGray()                                                            XBIOS

Syntax

WORD EsetGray( mode )
WORD mode;

Function      EsetGray() reads/modifies the TT030's video shifter gray
              mode bit.

Opcode        86 (0x56)

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

Parameters    mode is defined as follows:

              Name        mode  Meaning

              ESG_INQUIRE  -1   Return the gray bit of the video shifter.

              ESG_COLOR     0   Set the video shifter to interpret the
                                lower 16 bits of a palette entry as
                                a TT030 color value (RGB 0-15).

              ESG_GRAY      1   Set the video shifter to interpret the
                                lower 8 bits of a palette entry as a TT030
                                gray value (0-255)

Binding       move.w   mode,-(sp)
              move.w   #$56,-(sp)
              trap     #14
              addq.l   #4,sp

Return Value  EsetGray() returns the previous value of the video shifter's
              gray bit.

Caveats       This call is machine-dependent to the TT030.

See Also      EgetShift()