Chapter 9 Instruction list
CPU ADAM 821x
Command
Operand
Parameter
Status word
Function
Length
in
BR
CC1 CC0 OV OS OR STA RLO /FC
words
: Instruction depends on
: Instruction influences
8-12
ADAM 8000 Manual CPU 821x – Rev 1.1
Square root an square
instructions (32Bit)
Status word
The result of the instructions is in ACCU1. The
instructions may be interrupted by alarms.
SQRT -
BR
CC1 CC0 OV OS OR STA RLO /FC
Calculate the Square root of a real number in ACCU1.
1
- - - - - - - - -
SQR -
- Y Y Y Y - - - - Form the square of a real number in ACCU1.
1
Logarithmic function
(32Bit)
Status word
The result of the logarithm function is in
ACCU1. The instructions may be interrupted by
alarms.
LN -
BR
CC1 CC0 OV OS OR STA RLO /FC
Calculate the natural logarithm of a real number in
1
- - - - - - - - - ACCU1.
EXP -
- Y Y Y Y - - - - Calculate the exponential value of a real number in ACCU1
1
on basis e (=2.71828).
Trigonometrical functions
(32Bit)
Status word
The result of the trigonometrical function is in
ACCU1. The instructions may be interrupted by
alarms.
SIN
1
-
BR
CC1 CC0 OV OS OR STA RLO /FC
Calculate the sine of the real number.
1
- - - - - - - - -
ASIN
2
-
- Y Y Y Y - - - - Calculate the arcsine of the real number.
1
COS
1
-
Calculate the cosine of the real number.
1
ACOS
2
-
Calculate the arccosine of the real number.
1
TAN
1
-
Calculate the tangent of the real number.
1
ATAN
2
-
Calculate the arctangent of the real number.
1
Addition of constants
Addition of integer constants to ACCU1. The
condition code bits are not affected
+ i8
Add an 8Bit integer constant.
1
+ i16
Add a 16Bit integer constant.
2
+ i32
Add a 32Bit integer constant.
3
Addition via
address register
Adding a 16Bit integer to contents of address
register. The value is in the instruction or in
ACCU1-L. Condition code bits are not affected
+AR1 -
Add the contents of ACCU1-L to AR1.
1
+AR1 m
Add a pointer constant to the contents of AR1.
2
+AR2 -
Add the contents of ACCU1-L to those of AR2.
1
+AR2 m
Add pointer constant to the contents of AR2.
2
1 Specify the angle in radians; the angle must be given as a floating point value in ACCU 1.
2 The result is an angle in radians.