CPU ADAM 821x
Chapter 9 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
ADAM 8000 Manual CPU 821x – Rev 1.1
8-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 - - - -