3. Instructions
354
CS/CJ/NSJ Series Instructions Reference Manual (W474)
+B/+BL
Applicable Program Areas
Operands
z Operand Specifications
Flags
Instruction Mnemonic Variations
Function
code
Function
BCD ADD WITHOUT CARRY +B @+B 404
Adds 4-digit (single-word) BCD data and/or con-
stants.
DOUBLE BCD ADD WITHOUT
CARRY
+BL @+BL 405
Adds 8-digit (double-word) BCD data and/or con-
stants.
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
+B +BL +B +BL
Au
+B: Augend word
+BL: First augend word
WORD DWORD 1 2
Ad
+B: Addend word
+BL: First addend word
WORD DWORD 1 2
R
+B: Result word
+BL: First result word
WORD DWORD 1 2
Area
Word addresses
Indirect
DM/EM
addresses
Con-
stants
Registers
TK CF
Pulse
bits
TR
bits
CIO WR HR AR T C DM EM
@DM
@EM
*DM
*EM
DR IR
Indirect
using IR
+B
Au, Ad
OK OK OK OK OK OK OK OK OK OK
OK
OK --- OK --- --- --- ---
R ---
+BL
Au, Ad
OK OK OK OK OK OK OK OK OK OK
OK
--- --- OK --- --- --- ---
R ---
Name Label
Operation
+B +BL
Error Flag 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 = • ON when the result is 0.
• OFF in all other cases.
• ON when the result is 0.
• OFF in all other cases.
Carry Flag 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.
+B(404)
R
Au
Ad
Au: Augend word
Ad: Addend word
R: Result word
+BL(405)
R
Au
Ad
Au: 1st augend word
Ad: 1st addend word
R: 1st result word