{
	File:  GrayBlt.dfn
	Description: Definitions for GrayBlt opcodes
	Created: March 7, 1986 by Jeff Goldfield
	Last Edited: July 23, 1986 by John Monahan
	Some defs moved to Daybreak.dfn and Mesa.dfn: August 7, 1986 by John Monahan
	Additional comments October 14, 1986
}
{	Copyright (C) 1986 by Xerox Corporation.  All rights reserved.}

{Table loading: size in words, initial offset into stack}

Set[GBSizeLess1,	0C];
Set[SumSizeLess1,	5];
Set[ThresholdSizeLess1,	0A];

Set[GBLastIndex,	0E];
Set[SumLastIndex,	0B];
Set[ThresholdLastIndex,	0C];

{GRAYBLT roadmap definitions}

Set[gr.fwd,0],
Set[gr.rev,8];
Set[gr.aligned,0],
Set[gr.trc.unaligned.fwd,2],
Set[gr.unaligned.fwd,4],
Set[gr.unaligned.rev,6];
Set[gr.trc.set,4];
Set[gr.null,0],
Set[gr.inv,1];
Set[gr.readDest,0C],
Set[gr.writeDest.fwd,7],
Set[gr.writeDest.rev,0F],
Set[gr.rotateSource.fwd,5],
Set[gr.rotateSource.rev,0D],
Set[gr.trc,8],
Set[gr.trc.aligned,0],
Set[gr.trc.unaligned.rev,3];
Set[gr.highByteOnly,8],
Set[gr.lowByteOnly,1];
Set[gr.set,0],
Set[gr.add,2],
Set[gr.subtract,4],
Set[gr.average,6];
Set[gr.trc.inHighByte,0],
Set[gr.trc.inLowByte,1];
Set[gr.noCarry,0],
Set[gr.carry,1],
Set[gr.noPgCarry,0],
Set[gr.pgCarry,1],
Set[gr.noCarryover,0],
Set[gr.carryover,8];
Set[gr.setOK,gr.carryover],
Set[gr.trc.setOK,0];
Set[gr.bit0,0],
Set[gr.bit1,1];
Set[gr.noPgCross,0],
Set[gr.pgCross,2];

{Additional constants and macros: referenced constants found in Mesa.dfn}

Set[L0.GrBLTInt, Or[L0.GrBLT,1]];
Set[L0.GrSumInt, Or[L0.GrSum,1]];
Set[L0.GrThresholdInt, Or[L0.GrThreshold,1]];

MacroDef[MapGrSrcI, at[#1,10,MapGrSrcInt]];