B, /bl, Applicable program areas operands, Flags – Omron SYSMAC CP CP1E-N@@D@-@ User Manual
Page 219: 2 instructions, Operand specifications
2-183
2 Instructions
CP1E CPU Unit Instructions Reference Manual(W483)
Sym
bol
Math I
n
stru
ctio
ns
2
/B
, /BL
/B, /BL
Applicable Program Areas
Operands
Operand Specifications
Flags
Instruction
Mnemonic
Variations
Function
code
Function
BCD DIVIDE
/B
@/B
434
Divides 4-digit (single-word) BCD data and/or con-
stants.
DOUBLE BCD DIVIDE
/BL
@/BL
435
Divides 8-digit (double-word) BCD data and/or
constants.
Symbol
/B
/BL
Area
Step program areas
Subroutines
Interrupt tasks
Usage
OK
OK
OK
Operand
Description
Data type
Size
/B
/BL
/B
/BL
Dd
/B: Dividend word
/BL: First dividend word
WORD
DWORD
1
2
Dr
/B: Divisor word
/BL: First divisor word
WORD
DWORD
1
2
R
First result word
DWORD
LWORD
2
4
Area
Word addresses
Indirect DM addresses
Constants
CF
Pulse bits
TR bits
CIO
WR
HR
AR
T
C
DM
@DM
*DM
Dd, Dr
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
---
---
---
R
---
Name
Label
Operation
/B
/BL
Error Flag
P_ER
• ON when Dd is not BCD.
• ON when Dr is not BCD.
• ON when the divisor is 0.
• OFF in all other cases.
• ON when Dd, Dd+1 is not BCD.
• ON when Dr, Dr +1 is not BCD.
• ON when the divisor is 0.
• OFF in all other cases.
Equals Flag
P_EQ
• ON when as a result of the division R is 0.
• OFF in all other cases.
• ON when as a result of the division R+1, R is 0.
• OFF in all other cases.
/B(434)
R
Dd
Dr
Dd: Dividend word
Dr: Divisor word
R: Result word
/BL(435)
R
Dd
Dr
Dd: 1st dividend word
Dr: 1st divisor word
R: 1st result word