Instruction List
B-38
ET 200S Interface Module IM 151/CPU
A5E00058783-01
B.24 Fixed-Point Math Instructions (32 Bits)
Math instructions of two 32-bit numbers. The result is in ACCU1.
In-
struc-
tion
Address
ID
Description
Length
in
Words
Typical Execution Time in
s
+D – Add 2 integers (32 bits)
(ACCU1)=(ACCU2)+(ACCU1)
1 2.0
–D – Subtract 2 integers (32 bits)
(ACCU1)=(ACCU2)–(ACCU1)
1 2.7
*
D – Multiply 2 integers (32 bits)
(ACCU1)=(ACCU2)
*
(ACCU1)
1 9.9
/D – Divide 2 integers (32 bits)
(ACCU1)=(ACCU2):(ACCU1)
1 10.8
MOD – Divide 2 integers (32 bits) and load the re-
mainder of the division in ACCU1:
(ACCU1)=Remainder from
[(ACCU2):(ACCU1)]
1 11.3
Status word for: +D, –D,
*
D, /D, MOD BR A1 A0 OV OS OR STA RLO /FC
Instruction depends on: – – – – – – – – –
Instruction controls: – Yes Yes Yes Yes – – – –