565
Special Math Instructions Section 3-14
Flags
Precautions When COML(614) is executed, the Error Flag will turn OFF.
If as a result of COML, the content of R, R+1 is 00000000 hex, the Equals
Flag will turn ON.
If as a result of COML, the leftmost bit of R+1 is 1, the Negative Flag will turn
ON.
Examples When CIO 000000 is ON in the following example, the status of each bit in
D00100 and D00101 will be reversed.
3-14 Special Math Instructions
This section describes instructions used for special math calculations.
3-14-1 BINARY ROOT: ROTB(620)
Purpose Computes the square root of the 32-bit signed binary contents (positive value)
of the specified words and outputs the integer portion of the result to the spec-
ified result word.
Ladder Symbol
Variations
Name Label Operation
Error Flag ER OFF
Equals Flag = ON when the result is 0.
OFF in all other cases.
Negative Flag N ON when the leftmost bit of R is 1.
OFF in all other cases.
Instruction Mnemonic Function code Page
BINARY ROOT ROTB 620 565
BCD SQUARE ROOT ROOT 072 567
ARITHMETIC PROCESS APR 069 571
FLOATING POINT DIVIDE FDIV 079 583
BIT COUNTER BCNT 067 587
ROTB(620)
S
R
S: First source word
R: Result word
Variations Executed Each Cycle for ON Condition ROTB(620)
Executed Once for Upward Differentiation @ROTB(620)
Executed Once for Downward Differentiation Not supported.
Immediate Refreshing Specification Not supported.