User Guide

Set Commands 221
Set Commands
A Set command performs an arithmetic or bitwise calculation based on one or more GPRMs,
an SPRM, and a specified value, and stores the result in another GPRM. Set command
instructions include:
Assign Assigns to the GPRM a specified value, GPRM value, or SPRM value.
Exchange Swaps the values in two GPRMs.
Add Assigns to the GPRM the sum of a specified value and GPRM value, or the sum of two
GPRM values.
Subtract Assigns to the GPRM the difference of a specified value and GPRM value, or the
differences of two GPRM values.
Multiply Assigns to the GPRM the product of a specified value and GPRM value, or the
product of two GPRM values.
Divide Assigns to the GPRM the quotient of a specified value and GPRM value, or the
quotient of two GPRM values. The value cannot be zero.
Remainder Assigns to the GPRM the remainder when dividing a specified value and GPRM
value, of the remainder when dividing two GPRM values.
Random Value Assigns to the GPRM a random number or random GPRM value. The value
cannot be zero.
Bitwise Product Assigns to the GPRM the result of a bitwise AND compare between a
specified value and GPRM value, two GPRM values, or a GPRM value and SPRM value.
Bitwise Sum Assigns to the GPRM the result of a bitwise OR compare between a specified
value and GPRM value, two GPRM values, or a GPRM value and SPRM value.
Exclusive Or Assigns to the GPRM the result of a bitwise XOR compare between a specified
value and GPRM value, two GPRM values, or a GPRM value and SPRM value.