347
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Increment/Decrement Instructions
3
--B/--BL
--B/--BL
Applicable Program Areas
Operands
z Operand Specifications
Flags
Instruction Mnemonic Variations
Function
code
Function
DECREMENT BCD --B @--B 596
Decrements the 4-digit BCD content of the speci-
fied word by 1.
DOUBLE DECREMENT BCD --BL @--BL 597
Decrements the 8-digit BCD content of the speci-
fied words by 1.
Symbol
--B --BL
Area
Function block
definitions
Block program areas Step program areas Subroutines Interrupt tasks
SFC action or
transition programs
Usage OK OK OK 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/EM
addresses
Con-
stants
Registers Flags
Pulse
bits
TR
bits
CIO WR HR AR T C DM EM
@DM
@EM
*DM
*EM
DR IR
Indirect
using IR
TK CF
--B Wd
OK OK OK OK OK OK OK OK OK OK
---
OK
---
OK --- --- --- ---
--BL Wd ---
Name Label Operation
Error Flag ER • ON if the content of Wd/Wd+1 and Wd is not BCD.
• OFF in all other cases.
Equals Flag = • ON if the result is 0000/0000 0000 after execution.
• OFF in all other cases.
Carry Flag CY • ON if a digit in Wd/Wd+1 or Wd went from 0 to 9 during execution.
• OFF in all other cases.
- -B(596)
Wd
Wd: Word Wd: First word
-
-BL(597)
Wd