B, /Bl - Omron CJ - REFERENCE MANUAL 02-2010 Reference Manual

Table of Contents

Advertisement

3. Instructions

/B, /BL

Instruction
BCD DIVIDE
DOUBLE BCD DIVIDE
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
OK
Operands
Operand
/B: Dividend word
Dd
/BL: First dividend word
/B: Divisor word
Dr
/BL: First divisor word
R
First result word
Operand Specifications
Area
CIO
WR
HR
Dd, Dr
*B
OK
OK
OK
R
Dd, Dr
*BL
OK
OK
OK
R
Flags
Name
Error Flag
ER
Equals Flag
=
378
Mnemonic
Variations
/B
@/B
/BL
@/BL
/B
/B(434)
Dd
Dd: Dividend word
Dr
Dr: Divisor word
R
R: Result word
Block program areas
Step program areas
OK
OK
Description
Word addresses
AR
T
C
DM
EM
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
Label
• 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 as a result of the division R is 0.
• OFF in all other cases.
Function
code
Divides 4-digit (single-word) BCD data and/or con-
434
stants.
Divides 8-digit (double-word) BCD data and/or
435
constants.
Subroutines
OK
Data type
/B
/BL
WORD
DWORD
WORD
DWORD
DWORD
LWORD
Indirect
DM/EM
Registers
Con-
addresses
stants
@DM
*DM
DR
@EM
*EM
OK
OK
OK
OK
---
---
OK
OK
OK
---
---
Operation
/B
• 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.
• ON when as a result of the division R+1, R is 0.
• OFF in all other cases.
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Function
/BL
/BL(435)
Dd
Dd: 1st dividend word
Dr
Dr: 1st divisor word
R
R: 1st result word
SFC action or
Interrupt tasks
transition programs
OK
OK
Size
/B
/BL
1
2
1
2
2
4
Pulse
TK
CF
bits
Indirect
IR
using IR
---
OK
---
---
---
---
OK
---
---
---
/BL
TR
bits
---
---

Advertisement

Table of Contents
loading

Table of Contents