Instruction List
B-46
ET 200S Interface Module IM 151/CPU
A5E00058783-01
B.35 Data Type Conversion Instructions
Result
The results of the conversion are in ACCU1.
The execution time for the conversion of real numbers depends on the value.
In-
struc-
tion
Address
ID
Description
Length
in
Words
Typical Execution Time in
s
BTI – Convert contents of ACCU1 from BCD to
integer (16 bits) (BCD To Int)
1 4.7
BTD – Convert contents of ACCU1 from BCD to
double integer (32 bits) (BCD To Doubleint)
1 11.5
DTR – Convert contents of ACCU1 from double
integer (32 bits) to real (32 bits) (Doubleint
To Real)
1 < 15
ITD – Convert contents of ACCU1 from integer
(16 bits) to double integer (32 bits) (Int To
Doubleint)
1 0.1
Status word for: BTI, BTD, DTR, ITD BR A1 A0 OV OS OR STA RLO /FC
Instruction depends on: – – – – – – – – –
Instruction controls: – – – – – – – – –
ITB – Convert contents of ACCU1 from integer
(16 bits) to BCD (Int To BCD)
1 5.1
DTB – Convert contents of ACCU1 from double
integer (32 bits) to BCD (Doubleint To
BCD)
1 11.8
Status word for: ITB, DTB BR A1 A0 OV OS OR STA RLO /FC
Instruction depends on: – – – – – – – – –
Instruction controls: – – – Yes Yes – – – –
RND – Convert real number to 32-bit double inte-
ger.
1 < 20
RND– – Convert real number to 32-bit double inte-
ger. Rounded up to next integer.
1 < 20
RND+ – Convert real number to 32-bit double inte-
ger. Rounded up to next integer.
1 < 20
TRUN
C
– Convert real number to 32-bit double inte-
ger. Digits after the decimal point are trun-
cated.
1 < 20
Status word for: RND, RND–, RND+,
TRUNC
BR A1 A0 OV OS OR STA RLO /FC
Instruction depends on: – – – – – – – – –
Instruction controls: – – – Yes Yes – – – –