beautypg.com

B/–bl, Applicable program areas operands, Flags – Omron SYSMAC CP CP1E-N@@D@-@ User Manual

Page 208: 2 instructions, Operand specifications

background image

2 Instructions

2-172

CP1E CPU Unit Instructions Reference Manual(W483)

–B/–BL

Applicable Program Areas

Operands

Operand Specifications

Flags

Instruction

Mnemonic

Variations

Function

code

Function

BCD SUBTRACT WITHOUT
CARRY

–B

@–B

414

Subtracts 4-digit (single-word) BCD data and/or
constants.

DOUBLE BCD SUBTRACT
WITHOUT CARRY

–BL

@–BL

415

Subtracts 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

Mi

–B: Minuend word

–BL: First minuend word

WORD

DWORD

1

2

Su

–B: Subtrahend word

–BL: First subtrahend word

WORD

DWORD

1

2

R

–B: Result word

–BL: First result word

WORD

DWORD

1

2

Area

Word addresses

Indirect DM addresses

Constants

CF

Pulse bits

TR bits

CIO

WR

HR

AR

T

C

DM

@DM

*DM

Mi, Su

OK

OK

OK

OK

OK

OK

OK

OK

OK

OK

---

---

---

R

---

Name

Label

Operation

–B

–BL

Error Flag

P_ER

ON when Mi is not BCD.

ON when Su is not BCD.

OFF in all other cases.

ON when Mi and/or Mi +1 are not BCD.

ON when Su and/or Su +1 are not BCD.

OFF in all other cases.

Equals Flag

P_EQ

ON when the result is 0.

OFF in all other cases.

ON when the result is 0.

OFF in all other cases.

Carry Flag

P_CY

ON when the subtraction results in a borrow.

OFF in all other cases.

ON when the subtraction results in a borrow.

OFF in all other cases.

–B(414)

R

Mi

Su

Mi: Minuend word

Su: Subtrahend word

R: Result word

–BL(415)

R

Mi

Su

Mi: 1st minuend word

Su: 1st subtrahend word

R: 1st result word

This manual is related to the following products: