Technical data
Arithmetic operations
Operation Operand Function
+F
-F
xF
: F
+G
-G
xG
:G
– Add two fixed point numbers (16 bits)
Subtract one fixed point number from another (16 bits)
Multiply two fixed point numbers (16 bits)
Divide one fixed point number by another (16 bits):
quotient in ACCU-1-L, remainder in ACCU-1-H
Add two floating point numbers (32 bits)
Subtract one floating point number from another (32 bits)
Multiply two floating point numbers (32 bits)
Divide one floating point number by another (32 bits)
Arithmetic operations logically combine the contents of ACCU 1 and
ACCU 2 (e.g. ACCU 2 - ACCU 1). The result is then contained in
ACCU 1. An arithmetic operation changes the arithmetic registers as
follows (in fixed point operations only the low word):
Note
Within the supplementary operations, there are operations for
subtraction and addition of double word fixed point numbers.
In addition, you can use the
ENT operation from the set of
supplementary operations for loading ACCU 3 and ACCU 4 (see
Section 3.5.3).
Table 3-7 Arithmetic operations
ACCU 1 ACCU 2 ACCU 3 ACCU 4
before: <ACCU 1> <ACCU 2> <ACCU 3> <ACCU 4>
after: <result> <ACCU 3> <ACCU 4> <ACCU 4>
3
Basic Operations
CPU 928B Programming Guide
C79000-B8576-C898-01
3 - 31