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-FileEsetGray()EsetShift()EsetSmear()EsetBank()EgetShift() XBIOSSyntaxWORD EgetShift( VOID )
Function EgetShift() returns the current mode of the video shifter.
Opcode 81 (0x51)
Availability This call is available when the high word of the '_VDO'
cookie has a value of 2.
Binding move.w #$51,-(sp)
trap #14
addq.l #2,sp
Return Value EgetShift() returns a WORD bit array which is divided as
follows:
Mask Nm. Bit(s) Meaning
ES_BANK 0-3 These bits determine the current color
bank being used by the TT (in all modes
with less than 256 colors). The macro
ColorBank() as defined below will extract
the current bank code.
#define ColorBank(x) ((x) & ES_BANK)
- 4-7 Unused
ES_MODE 8-10 These bits determine the current mode of
the TT video shifter as follows:
Name Value
ST_LOW 0x0000
ST_MED 0x0100
ST_HIGH 0x0200
TT_MED 0x0300
TT_HIGH 0x0600
TT_LOW 0x0700
The current shifter mode code can be
extracted with the following macro:
#define ScreenMode(x) ((x) & ES_MODE)
- 11 Unused
ES_GRAY 12 This bit determines if the TT video
shifter is currently in grayscale mode.
The following macro can be used to extract
this information:
#define IsGrayMode(x) ((x) & ES_GRAY)
- 13-14 Unused
ES_SMEAR 15 If this bit is set, the TT video shifter
is currently in smear mode. The following
macro can be used to extract this
information:
#define IsSmearMode(x) ((x) & ES_SMEAR)
See Also EsetGray(), EsetShift(), EsetSmear(), EsetBank()