//BitBlt.decl

//last modified May 22, 1978  12:10 AM

//---------------------------------------------------------------------------
structure BBT:		//BitBlt Table
//---------------------------------------------------------------------------
[
function word =
   [
   blank bit 12
   sourceType bit 2
   operation bit 2
   ]
blank word
dbca word		//dest bitmap core address
dbmr word		//dest bit map raster
dlx word		//dest left x coordinate
dty word		//dest top y coordinate
dw word			//dest width
dh word			//dest height
sbca word		//src bitmap core address
sbmr word		//src bit map raster
slx word		//src left x coordinate
sty word		//src top y coordinate
gray↑0,3 word		//gray block
]
manifest lenBBT = size BBT/16

//---------------------------------------------------------------------------
manifest
//---------------------------------------------------------------------------
[
//operations
opReplace = 0		//Dest ← Src
opPaint = 1		//Dest ← Src % Dest
opInvert = 2		//Dest ← Src xor Dest
opErase = 3		//Dest ← not Src & Dest

//source types
stBlock = 0		//a block
stCompBlock = 4		//the complement of a block
stBrush = 8		//a block as a brush with a gray
stGray = 12		//a gray

//gray values
black = -1
darkestGray = #76575
darkerGray = #165727
darkGray = #125125
gray = #55132
lightGray = #36074
lighterGray = #12050
lightestGray = #101202
white = 0

//texture values
texture1 = #27164
texture2 = #154033
texture3 = #31714
texture4 = #63
texture5 = #177714
]