pTAL Reference Manual (G06.24+, H06.09+, J06.03+)

Yes (according the final value of var )Sets condition code
Yes, if traps are disabledSets $CARRY
Yes, if traps are disabled; otherwise, traps on overflowSets $OVERFLOW
var
input,output
sINT:variable
is the variable that $ATOMIC_ADD increments.
value
input
sINT:value
is the value $ATOMIC_ADD adds to var.
$ATOMIC_ADD performs the following operation:
var := var + value
The read, add, and store operations are performed without interruption, as if the three operations
were one.
Example 225 $ATOMIC_ADD Routine
INT var;
INT value;
$ATOMIC_ADD (var, value);
The following table shows examples of $ATOMIC_ADD:
resultvaluevar
%HBCDE%HAAAA%H1234
%H6789%H5555%H1234
%H1233%HAAAA%H6789
%HBCDE%H5555%H6789
$ATOMIC_AND
$ATOMIC_AND performs an atomic LAND on two INT values.
Yes (according the final value of var )Sets condition code
NoSets $CARRY
NoSets $OVERFLOW
var
input,output
Atomic Operations 277