pTAL Reference Manual (H06.03+)

Built-In Routines
HP pTAL Reference Manual523746-005
15-10
$ATOMIC_PUT
$ATOMIC_PUT
$ATOMIC_PUT atomically puts a value into a variable.
var output
type:variable
the variable into which $ATOMIC_PUT stores value. var must be one of:
A 1-byte, 2-byte, or 4-byte variable whose address is an integral multiple of
its width.
A bit field fully contained in a 1-byte, 2-byte, or 4-byte variable that is
aligned on an even-byte boundary.
value input
type:value
the value $ATOMIC_PUT stores in var. value must be assignment-
compatible with var.
$ATOMIC_PUT performs the following action:
var := value
Sets condition code No
Sets $CARRY No
Sets $OVERFLOW No
Example 15-8. $ATOMIC_PUT Routine
INT var;
INT value;
$ATOMIC_PUT(var, value);
$ATOMIC_PUT ( , ) ;
VST612.vsd
var
value