Omron CP1E-N@@D@-@ Computer Hardware User Manual


 
2 Instructions
2-164
CP1E CPU Unit Instructions Reference Manual(W483)
+BC/+BCL
Applicable Program Areas
Operands
Operand Specifications
Flags
Instruction Mnemonic Variations
Function
code
Function
BCD ADD WITH CARRY +BC @+BC 406
Adds 4-digit (single-word) BCD data and/or con-
stants with the Carry Flag (CY).
DOUBLE BCD ADD WITH
CARRY
+BCL @+BCL 407
Adds 8-digit (double-word) BCD data and/or con-
stants with the Carry Flag (CY).
Symbol
+BC +BCL
Area Step program areas Subroutines Interrupt tasks
Usage OK OK OK
Operand Description
Data type Size
+BC +BCL +BC +BCL
Au
+BC: Augend word
+BCL: First augend word
WORD DWORD 1 2
Ad
+BC: Addend word
+BCL: First addend word
WORD DWORD 1 2
R
+BC: Result word
+BCL: 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
Au, Ad
OK OK OK OK OK OK OK OK OK
OK
--- --- ---
R ---
Name Label
Operation
+BC +BCL
Error Flag P_ER ON when Au is not BCD.
ON when Ad is not BCD.
OFF in all other cases.
ON when Au, Au +1 is not BCD.
ON when Ad, Ad +1 is 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 addition results in a carry.
OFF in all other cases.
ON when the addition results in a carry.
OFF in all other cases.
+BC(406)
R
Au
Ad
Au: Augend word
Ad: Addend word
R: Result word
+BCL(407)
R
Au
Ad
Au: 1st augend word
Ad: 1st addend word
R: 1st result word