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-25
Data type conversion instructions
Data type
conversion instructions
Status word
The results of the conversion are in ACCU1.
When converting real numbers, the execution
time depends on the value.
BTI -
BR
CC1 CC0 OV OS OR STA RLO /FC
Convert contents of ACCU1 from BCD to integer (16Bit)
1
-
-
-
-
-
-
-
-
-
(
B
CD
T
o
I
nt.).
BTD -
-
-
-
-
-
-
-
-
-
Convert contents of ACCU1 from BCD to integer (32Bit).
1
(
B
CD
T
o
D
oubleint.).
DTR -
Convert cont. of ACCU1 from integer (32Bit) to Real number
1
(32Bit) (
D
oubleint.
T
o
R
eal).
ITD -
Convert contents of ACCU1 from integer (16Bit) to integer
1
(32Bit) (
I
nt.
T
o
D
oubleint.).
ITB -
BR
CC1 CC0 OV OS OR STA RLO /FC
Convert contents of ACCU1 from integer (16Bit) to BCD
1
-
-
-
-
-
-
-
-
-
0 to +/-999 (
I
nt.
T
o
B
CD).
DTB -
- - - Y Y
-
-
-
-
Convert contents of ACCU1 from integer (32Bit) to BCD
1
0 to +/-9 999 999 (
D
oubleint.
T
o
B
CD).
RND -
BR
CC1 CC0 OV OS OR STA RLO /FC
Convert a real number to 32Bit integer.
1
RND- -
-
-
-
-
-
-
-
-
-
Convert a real number to 32Bit integer.
1
- - - Y Y
-
-
-
-
The number is rounded next hole number..
RND+ -
Convert real number to 32Bit integer.
1
It is rounded up to the next integer.
TRUNC -
Convert real number to 32Bit integer.
1
The places after the decimal point are truncated.
Complement creation
Status word
INVI -
BR
CC1 CC0 OV OS OR STA RLO /FC
Forms the ones complement of ACCU1-L (integer).
1
INVD -
-
-
-
-
-
-
-
-
-
Forms the ones complement of ACCU1.
1
-
-
-
-
-
-
-
-
-
NEGI -
BR
CC1 CC0 OV OS OR STA RLO /FC
Forms the twos complement of ACCU1-L.
1
NEGD -
-
-
-
-
-
-
-
-
-
Forms the twos complement of ACCU1 (double integer).
1
- Y Y Y Y
-
-
-
-
Содержание 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 ...