184
5-18-4 BINARY DIVIDE – DVB(53)
Dd: Dividend word (binary)
IR, SR, AR, DM, HR, TC, LR, #
Dr: Divisor word (binary)
IR, SR, AR, DM, HR, TC, LR, #
Ladder Symbols
Operand Data Areas
R: First result word
IR, AR, DM, HR LR
DVB(53)
Dd
Dr
R
@DVB(53)
Dd
Dr
R
When the execution condition is OFF, DVB(53) is not executed. When the
execution condition is ON, DVB(53) divides the content of Dd by the content
of Dr and the result is placed in R and R+1: the quotient in R, the remainder
in R+1.
DdDr
R R + 1
Quotient Remainder
Flags ER: Dr contains 0.
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.
5-19 Logic Instructions
The logic instructions - COM(29), ANDW(34), ORW(35), XORW(36), and
XNRW(37) - perform logic operations on word data.
5-19-1 COMPLEMENT – COM(29)
Wd: Complement word
IR, AR, DM, HR, LR
Ladder Symbols Operand Data Areas
COM(29)
Wd
@COM(29)
Wd
When the execution condition is OFF, COM(29) is not executed. When the
execution condition is ON, COM(29) clears all ON bits and sets all OFF bits
in Wd.
10 0110 0110 0110 01
01 1001 1001 1001 10
15 00
15 00
Original
Complement
Description
Description
Example
Logic Instructions Section 5-19