2-153
2 Instructions
CP1E CPU Unit Instructions Reference Manual(W483)
Increment/Decrement
Instructions
2
++B/++BL
++B/+ +BL
Applicable Program Areas
Operands
Operand Specifications
Flags
Instruction Mnemonic Variations
Function
code
Function
INCREMENT BCD ++B @++B 594
Increments the 4-digit BCD content of the speci-
fied word by 1.
DOUBLE INCREMENT BCD ++BL @++BL 595
Increments the 8-digit BCD content of the speci-
fied words by 1.
Symbol
++B ++BL
Area Step program areas Subroutines Interrupt tasks
Usage OK OK OK
Operand Description
Data type Size
++ ++L ++ ++L
Wd
++B: Word
++BL: First 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
Wd OK OK OK OK OK OK OK OK OK --- --- --- ---
Name Label Operation
Error Flag P_ER • ON if the content of Wd/Wd+1 and Wd is not BCD.
• OFF in all other cases.
Equals Flag P_EQ • ON if the result is 0000/0000 0000 after execution.
• OFF in all other cases.
Carry Flag P_CY • ON if a digit in Wd/Wd+1 or Wd went from 9 to 0 during execution.
• OFF in all other cases.
Wd: Word
++B(594)
Wd
Wd: First word
++BL(595)
Wd