PRESCRIBE Command Reference
332
SROP — Set Raster OPeration
Format
SROP value;
Parameter
value:
logical operation value: 0 to 255
Function
The SROP command applies logical functions (AND, OR, XOR, NOT) to source,
texture, and destination. Possible logical operations provided by this command is 255.
These logical operations directory map to their raster operations (ROP3).
Logical operation value is eset to the default of 252 by the RES command. An error
results and this command has no effect if the ROP3 value is outside the range 0 to 255.
File
!R!
DAM;
RES;
MCRO DBOX;
NEWP;
PMRP 0,0;
PDRP 0.5,0;
PDRP 0,0.5;
PDRP -0.5,0;
CLSP;
SROP 252;
GPAT 0;
FILL;
NEWP;
PMRP 0.2,0.2;
PDRP 0.5,0;
PDRP 0,0.5;
PDRP -0.5,0;
CLSP;
SROP %1;
PAT 25;
FILL;
MRP 0.8, -0.2;
ENDM;
MCRO TROP;
MZP0,2;
CALL DBOX,0;
CALL DBOX,1;