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-11
Math instructions
Fixed-point arithmetic
(16Bit)
Status word
Math instructions of two 16Bit numbers. The
result is in ACCU1 res. ACCU1-L.
+I -
BR
CC1 CC0 OV OS OR STA RLO /FC
Add up two integers (16Bit).
1
- - - - - - - - - (ACCU1-L)=(ACCU1-L)+(ACCU2-L)
-I -
- Y Y Y Y - - - - Subtract two integers (16Bit).
1
(ACCU1-L)=(ACCU2-L)-(ACCU1-L)
*I -
Multiply two integers (16Bit).
1
(ACCU1-L)=(ACCU2-L)*(ACCU1-L)
/I -
Divide two integers (16Bit).
1
(ACCU1-L)=(ACCU2-L):(ACCU1-L)
The remainder is in ACCU1-H.
Fixed-point arithmetic
(32Bit)
Status word
Math instructions of two 32Bit numbers. The
result is in ACCU1.
+D -
BR
CC1 CC0 OV OS OR STA RLO /FC
Add up two integers (32Bit).
1
- - - - - - - - - (ACCU1)=(ACCU2)+(ACCU1)
-D -
- Y Y Y Y - - - - Subtract two integers (32Bit).
1
(ACCU1)=(ACCU2)-(ACCU1)
*D -
Multiply two integers (32Bit).
1
(ACCU1)=(ACCU2)*(ACCU1)
/D -
Divide two integers (32Bit).
1
(ACCU1)=(ACCU2):(ACCU1)
MOD -
Divide two integers (32Bit) and load the rest of the
1
division in ACCU1.
(ACCU1)=remainder of [(ACCU2):(ACCU1)]
Floating-point arithmetic
(32Bit)
Status word
The result of the math instructions is in
ACCU1. The execution time of the instruction
depends on the value to calculate.
+R -
BR
CC1 CC0 OV OS OR STA RLO /FC
Add up two real numbers (32Bit)
1
- - - - - - - - - (ACCU1)=(ACCU2)+(ACCU1)
-R -
- Y Y Y Y - - - - Subtract two real numbers (32Bit).
1
(ACCU1)=(ACCU2)-(ACCU1)
*R -
Multiply two real numbers (32Bit).
1
(ACCU1)=(ACCU2)*(ACCU1)
/R -
Divide two real numbers (32Bit).
1
(ACCU1)=(ACCU2):(ACCU1)
NEGR -
BR
CC1 CC0 OV OS OR STA RLO /FC
Negate the real number in ACCU1.
1
- - - - - - - - -
ABS -
- - - - - - - - - Form the absolute value of the real number in ACCU1.
1