pTAL Conversion Guide

pTAL Built-In Routines
pTAL Conversion Guide527302-002
18-15
$ATOMIC_PUT
$ATOMIC_PUT
$ATOMIC_PUT, an atomic operation, puts (stores) a value into a variable.
var output
type:variable
is the variable into which $ATOMIC_PUT stores value.
value input
type:value
is the value $ATOMIC_PUT stores in var.
var must be one of:
A one-byte , two-byte, or four-byte variable whose address is an integral multiple of
its width.
A bit field fully contained in a one-byte , two-byte , or four-byte variable that is
aligned on an even-byte boundary.
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 18-7. Call to $ATOMIC_PUT Routine
INT var;
INT value;
$ATOMIC_PUT(var, value);
$ATOMIC_PUT ( , ) ;
VST612.vsd
var
value