B, /Bl - Omron SYSMAC CP Series Instruction & Reference Manual

Cpu unit
Hide thumbs Also See for SYSMAC CP Series:
Table of Contents

Advertisement

/B, /BL

Instruction
BCD DIVIDE
DOUBLE BCD DIVIDE
Symbol
Applicable Program Areas
Area
Usage
Operands
Operand
/B: Dividend word
Dd
/BL: First dividend word
/B: Divisor word
Dr
/BL: First divisor word
R
First result word
Operand Specifications
Word addresses
Area
CIO
WR
HR
Dd, Dr
OK
OK
OK
R
Flags
Name
Error Flag
P_ER
Equals Flag
P_EQ
CP1E CPU Unit Instructions Reference Manual(W483)
Mnemonic
Variations
/B
@/B
/BL
@/BL
/B
/B(434)
Dd
Dd: Dividend word
Dr
Dr: Divisor word
R
R: Result word
Step program areas
OK
Description
AR
T
C
DM
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 addresses
Constants
@DM
*DM
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.
2 Instructions
Function
/BL
/BL(435)
Dd
Dd: 1st dividend word
Dr
Dr: 1st divisor word
R
R: 1st result word
Interrupt tasks
OK
Size
/B
/BL
1
2
1
2
2
4
CF
Pulse bits
TR bits
---
---
---
/BL
2-183
2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents