Binary Multiply -- Mlb; Binary Divide -- Dvb - Omron CPM1 Programming Manual

Hide thumbs Also See for CPM1:
Table of Contents

Advertisement

7-21-3 BINARY MULTIPLY - - MLB(52)
Limitations
Description
Flags
7-21-4 BINARY DIVIDE - - DVB(53)
Limitations
Description
Ladder Symbols
MLB(52)
@MLB(52)
Md
Mr
R
DM 6144 to DM 6655 cannot be used for R.
MLB(52) cannot be used to multiply signed binary data.
When the execution condition is OFF, MLB(52) is not executed. When the
execution condition is ON, MLB(52) multiplies the content of Md by the contents
of Mr, places the rightmost four digits of the result in R, and places the leftmost
four digits in R+1.
ER:
Indirectly addressed DM word is non-existent. (Content of
not BCD, or the DM area boundary has been exceeded.)
EQ:
ON when the result is 0.
Ladder Symbols
DVB(53)
@DVB(53)
Dd
Dr
R
DM 6144 to DM 6655 cannot be used for R.
DVB(53) cannot be used to divide signed binary data.
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.
Dr
Operand Data Areas
Md: Multiplicand word (binary)
IR, SR, AR, DM, HR, TC, LR, #
Mr: Multiplier word (binary)
Md
IR, SR, AR, DM, HR, TC, LR, #
Mr
R
IR, SR, AR, DM, HR LR
Md
X
Mr
R +1
R
Operand Data Areas
Dd: Dividend word (binary)
IR, SR, AR, DM, HR, TC, LR, #
Dr: Divisor word (binary)
Dd
IR, SR, AR, DM, HR, TC, LR, #
Dr
R
IR, SR, AR, DM, HR LR
Quotient
Remainder
R
R + 1
Dd
Section
7-21
R: First result word

DM word is
R: First result word

Advertisement

Table of Contents
loading

This manual is also suitable for:

Srm-v2Cpm1aCpm2aSrm1Cpm2c

Table of Contents