Instructions

Library
akYtec GmbH · Vahrenwalder Str. 269 A · 30179 Hannover · Germany · Tel.: +49 (0) 511 16 59 672-0 · www.akytec.de
45
Fig. 6.6
The output value may not exceed 4294967295 (32 bits). Otherwise the extra bits will be
truncated.
6.1.2.2 Subtraction (SUB, fSUB)
Fig. 6.7
The function SUB operates with INT variables, the function fSUB operates with REAL
variables.
The output value Q is the result of subtraction of the value I2 from the value I1.
Example 1:
Fig. 6.8
If the value I1 is less than the value I2, the output is calculated as follows:
Q = I1 + 0x100000000 I2
0x100000000 = 4294967296
Example 2:
Fig. 6.9
6.1.2.3 Multiplication (MUL, fMUL)
Fig. 6.10
The function MUL operates with INT variables, the function fMUL operates with REAL
variables.
The output value Q is the product of the input values.
Example: