pTAL Reference Manual (H06.03+)
Built-In Routines
HP pTAL Reference Manual—523746-005
15-9
$ATOMIC_OR
$ATOMIC_OR
$ATOMIC_OR performs an atomic LOR on two INT values.
var input,output
INT:variable
is the variable to which $ATOMIC_OR applies mask.
mask input
INT:value
is a 16-bit mask that $ATOMIC_OR applies to var.
$ATOMIC_OR performs the following statement:
var := var LOR mask
The read, LOR, and store operations are performed without interruption, as if the three
operations were one.
The following table shows examples of $ATOMIC_OR:
Sets condition code Yes (according the final value of var )
Sets $CARRY No
Sets $OVERFLOW No
Example 15-7. $ATOMIC_OR Routine
INT var;
INT mask;
$ATOMIC_OR(var, mask);
var mask result
%H1234 %HAAAA %HBABC
%H1234 %H5555 %H5775
%H6789 %HAAAA %HEFAB
%H6789 %H5555 %H77DB
$ATOMIC_OR ( , ) ;
VST611.vsd
var mask










