Instruction Functions
2-2-12 Special Math Instructions
Instruction
Symbol/Operand
Mnemonic
Code
BINARY ROOT
ROTB(620)
ROTB
@ROTB
620
S: 1st source
word
R: Result word
BCD SQUARE
ROOT
ROOT(072)
ROOT
@ROOT
072
S: 1st source
word
R: Result word
ARITHMETIC
APR(069)
PROCESS
APR
@APR
069
C: Control word
S: Source data
R: Result word
FLOATING
FDIV(079)
POINT DIVIDE
FDIV
@FDIV
079
Dd: 1st dividend
word
Dr: 1st divisor
word
R: 1st result word
BIT COUNTER
BCNT(067)
BCNT
@BCNT
067
N: Number of
words
S: 1st source
word
R: Result word
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
S+1
Binary data (32 bits)
Computes the square root of an 8-digit BCD number and outputs the
integer portion of the result to the specified result word.
S
R
S+1
BCD data (8 digits)
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.
C
S
R
Divides one 7-digit floating-point number by another. The floating-
point numbers are expressed in scientific notation (7-digit mantissa
and 1-digit exponent).
Dd
Dr
R
Dr+1
Counts the total number of ON bits in the specified word(s).
N
S
R
S+(N −1)
Function
S
Binary data (16 bits)
S
BCD data (4 digits)
Quotient
R+1
Dr
Dd+1
N words
Counts the number
of ON bits.
to
Binary result
R
Section 2-2
Location
Execution
condition
Output
Required
R
Output
Required
R
Output
Required
Output
Required
R
Dd
Output
Required
Page
566
568
572
584
588
65
Need help?
Do you have a question about the SYSMAC CJ - REFERENCE MANUAL 01-2008 and is the answer not in the manual?
Questions and answers