Manual VIPA CPU 21x
Chapter 12
Instruction list
Command
Operand
Parameter
Status word
Function
Length
in
BR
CC1 CC0 OV OS OR STA RLO /FC
words
: Instruction depends on
: Instruction influences
HB103E - Rev. 05/45
12-11
Math instructions
Fixed-point arithmetic
(16Bit)
Status word
Math instructions of two 16Bit numbers. The
result is in ACCU1 res. ACCU1-L.
+I -
BR
CC1 CC0 OV OS OR STA RLO /FC
Add up two integers (16Bit).
1
-
-
-
-
-
-
-
-
-
(ACCU1-L)=(ACCU1-L)+(ACCU2-L)
-I -
- Y Y Y Y
-
-
-
-
Subtract two integers (16Bit).
1
(ACCU1-L)=(ACCU2-L)-(ACCU1-L)
*I -
Multiply two integers (16Bit).
1
(ACCU1-L)=(ACCU2-L)*(ACCU1-L)
/I -
Divide two integers (16Bit).
1
(ACCU1-L)=(ACCU2-L):(ACCU1-L)
The remainder is in ACCU1-H.
Fixed-point arithmetic
(32Bit)
Status word
Math instructions of two 32Bit numbers. The
result is in ACCU1.
+D -
BR
CC1 CC0 OV OS OR STA RLO /FC
Add up two integers (32Bit).
1
-
-
-
-
-
-
-
-
-
(ACCU1)=(ACCU2)+(ACCU1)
-D -
- Y Y Y Y
-
-
-
-
Subtract two integers (32Bit).
1
(ACCU1)=(ACCU2)-(ACCU1)
*D -
Multiply two integers (32Bit).
1
(ACCU1)=(ACCU2)*(ACCU1)
/D -
Divide two integers (32Bit).
1
(ACCU1)=(ACCU2):(ACCU1)
MOD -
Divide two integers (32Bit) and load the rest of the
1
division in ACCU1.
(ACCU1)=remainder of [(ACCU2):(ACCU1)]
Floating-point arithmetic
(32Bit)
Status word
The result of the math instructions is in ACCU1.
The execution time of the instruction depends
on the value to calculate.
+R -
BR
CC1 CC0 OV OS OR STA RLO /FC
Add up two real numbers (32Bit)
1
-
-
-
-
-
-
-
-
-
(ACCU1)=(ACCU2)+(ACCU1)
-R -
- Y Y Y Y
-
-
-
-
Subtract two real numbers (32Bit).
1
(ACCU1)=(ACCU2)-(ACCU1)
*R -
Multiply two real numbers (32Bit).
1
(ACCU1)=(ACCU2)*(ACCU1)
/R -
Divide two real numbers (32Bit).
1
(ACCU1)=(ACCU2):(ACCU1)
NEGR -
BR
CC1 CC0 OV OS OR STA RLO /FC
Negate the real number in ACCU1.
1
-
-
-
-
-
-
-
-
-
ABS -
-
-
-
-
-
-
-
-
-
Form the absolute value of the real number in ACCU1.
1
Содержание CPU 21 Series
Страница 1: ...Manual VIPA CPU 21x Order No VIPA HB103E Rev 05 45 ...
Страница 2: ...Lerrzeichen ...
Страница 6: ...About this Manual Manual VIPA CPU 21x Subject to change to cater for technical progress ...
Страница 10: ...Contents Manual VIPA CPU 21x iv HB103E Rev 05 45 ...
Страница 30: ...Chapter 1 Principles Manual VIPA CPU 21x 1 18 HB103E Rev 05 45 ...
Страница 58: ...Chapter 2 Hardware description Manual VIPA CPU 21x 2 28 HB103E Rev 05 45 ...
Страница 80: ...Chapter 3 Deployment CPU 21x Manual VIPA CPU 21x 3 22 HB103E Rev 05 45 ...
Страница 178: ...Chapter 5 Deployment CPU 21x 2BT02 with H1 TCP IP Manual VIPA CPU 21x 5 48 HB103E Rev 05 45 ...