Square Root - Root(72) - Omron CPM1 Programming Manual

Hide thumbs Also See for CPM1:
Table of Contents

Advertisement

BCD Calculation Instructions
Flags
5-20-11 SQUARE ROOT – ROOT(72)
Limitations
Description
Flags
divided by the content of Dr and Dr+1 and the result is placed in R to R+3: the
quotient in R and R+1, the remainder in R+2 and R+3.
Remainder
R+3
Dr+1
ER:
Dr and Dr+1 contain 0.
Dd, Dd+1, Dr, or Dr+1 is not BCD.
Indirectly addressed DM word is non-existent. (Content of *DM word
is not BCD, or the DM area boundary has been exceeded.)
EQ:
ON when the result is 0.
Ladder Symbols
ROOT(72)
@ROOT(72)
Sq
R
This instruction is available in the CQM1 only.
DM 6144 to DM 6655 cannot be used for R.
When the execution condition is OFF, ROOT(72) is not executed. When the
execution condition is ON, ROOT(72) computes the square root of the eight-
digit content of Sq and Sq+1 and places the result in R. The fractional portion
is truncated.
ER:
Sq is not BCD.
Indirectly addressed DM word is non-existent. (Content of *DM word
is not BCD, or the DM area boundary has been exceeded.)
EQ:
ON when the result is 0.
R+2
R+1
Dr
Dd+1
Operand Data Areas
Sq: First source word (BCD)
IR, SR, AR, DM, HR, TC, LR
Sq
R
IR, SR, AR, DM, HR, LR,
R
Sq+1
Sq
Section 5-20
Quotient
R
Dd
R: Result word
295

Advertisement

Table of Contents
loading

Table of Contents