
User Manual
Chapter 12
GFK-1742F
Jan 2020
Local Logic Language Syntax
295
12.4.3
Operator *
Performs a signed multiply of source1 and source2 generating a signed 64-bit result. The
result may be stored to a 32-bit or 64-bit destination.
Syntax 1
destination := source1 * source2;
Syntax 2
double destination := source1 * source2;
The * operator syntax has these parts:
Overflow
–
Never set.
Remarks
If the result is assigned to a 32-bit variable, the least significant 32-bits are stored. Any
excess is truncated.
The second syntax may be used for multiplication operations where the result will fall
outside the range of +/- 2 billion.
12.4.4
Operator MOD
The MOD operator returns the remainder resulting from the signed integer division of
source1 by source2. A double precision (64-bit) parameter register may be used as the
numerator.
Syntax 1
destination := source1 MOD source2;
Syntax 2
destination := double source1 MOD source2;
The MOD operator syntax has these parts:
Overflow - See remarks below.
Remarks
In case of a divide by zero, the Module_Status_Code is set to 16#2093. In case of a divide
overflow, the Module_Status_Code is set to 16#2094.