114
Special Math Instructions
Section 3-12
3-12 Special Math Instructions
DOUBLE EXCLU-
SIVE NOR
XNRL
@XNRL
613
Output
Required
COMPLEMENT
COM
@COM
029
Output
Required
DOUBLE COM-
PLEMENT
COML
@COML
614
Output
Required
Instruction
Mnemonic
Code
Symbol/Operand Function Location
Execution condition
BINARY ROOT
ROTB
@ROTB
620
Output
Required
BCD SQUARE
ROOT
ROOT
@ROOT
072
Output
Required
ARITHMETIC
PROCESS
APR
@APR
069
Calculates the sine, cosine, or a linear extrapolation of the source data.
The linear extrapolation function allows any relationship between X and
Y to be approximated with line segments.
Output
Required
Instruction
Mnemonic
Code
Symbol/Operand Function Location
Execution condition
XNRL(613)
I
1
I
2
R
I
1
: Input 1
I
2
: Input 2
R: 1st result word
(I
1
, I
1
+1). (I
2
, I
2
+1) + (I
1
, I
1
+1). (I
2
, I
2
+1) → (R, R+1)
I
1
, I
1
+1
1
1
0
0
I
2
, I
2
+1
1
0
1
0
R, R+1
1
0
0
1
Takes the logical exclusive NOR of corresponding bits in double
words of word data and/or constants.
COM(029)
Wd
Wd: Word
Wd → Wd: 1 → 0 and 0 → 1
Turns OFF all ON bits and turns ON all OFF bits in Wd.
COML(614)
Wd
Wd: Word
Turns OFF all ON bits and turns ON all OFF bits in Wd and Wd+1.
(Wd+1, Wd) → (Wd+1, Wd)
S
R
ROTB(620)
S: 1st source
word
R: Result word
RS+1 S
Binary data (32 bits) Binary data (16 bits)
Computes the square root of the 32-bit binary content of the specified
words and outputs the integer portion of the result to the specified
result word.
S
R
ROOT(072)
S: 1st source
word
R: Result word
RS+1 S
BCD data (8 digits) BCD data (4 digits)
Computes the square root of an 8-digit BCD number and outputs the
integer portion of the result to the specified result word.
APR(069)
C
S
R
C: Control word
S: Source data
R: Result word