pTAL Reference Manual (G06.24+, H06.09+, J06.03+)
NoSets condition code
NoSets $CARRY
NoSets $OVERFLOW
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
Example 230 $ATOMIC_PUT Routine
INT var;
INT value;
$ATOMIC_PUT(var, value);
Nonatomic Operations
• pTAL Privileged Routines (page 281)
• Type-Conversion Routines (page 282)
• Address-Conversion Routines (page 283)
• Character-Test Routines (page 284)
• Minimum and Maximum Routines (page 285)
• Arithmetic Routines (page 285)
• Carry and Overflow Routines (page 285)
• FIXED-Expression Routines (page 285)
• Variable-Characteristic Routines (page 285)
• Procedure-Parameter Routines (page 286)
• Miscellaneous Routines (page 286)
Table 70 (page 286) lists the built-in routines for nonatomic operations alphabetically and shows
which hardware indicators they can can set.
pTAL Privileged Routines
pTAL privileged routines execute in privileged mode (see Privileged Mode (page 274)).
The pTAL compiler supports all pTAL privileged routines except $TRIGGER.
Nonatomic Operations 281