EasyManua.ls Logo

VIPA CPU 21 Series - Data type conversion instructions

VIPA CPU 21 Series
394 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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
- - - - -----
(BCD To Int.).
BTD -
- - - - -----Convert contents of ACCU1 from BCD to integer (32Bit). 1
(BCD To Doubleint.).
DTR -
Convert cont. of ACCU1 from integer (32Bit) to Real number 1
(32Bit) (Doubleint. To Real).
ITD -
Convert contents of ACCU1 from integer (16Bit) to integer 1
(32Bit) (Int. To Doubleint.).
ITB -
BR CC1 CC0 OV OS OR STA RLO /FC
Convert contents of ACCU1 from integer (16Bit) to BCD 1
- - - - -----
0 to +/-999 (Int. To BCD).
DTB -
- - - Y Y - - - - Convert contents of ACCU1 from integer (32Bit) to BCD 1
0 to +/-9 999 999 (Doubleint. To BCD).
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 - - - -

Table of Contents

Related product manuals