Appendices
A-24
CJ2 CPU Unit Software User’s Manual
A-1-8 Increment/Decrement Instructions
Instruction Mnemonic Code Symbol/Operand Function Location
Execution
condition
INCREMENT
BINARY
++
@++
590 Output Required
DOUBLE
INCREMENT
BINARY
++L
@++L
591 Output Required
DECREMENT
BINARY
− −
@− −
592 Output Required
DOUBLE DEC-
REMENT
BINARY
− −L
@− −L
593 Output Required
INCREMENT
BCD
++B
@++B
594 Output Required
DOUBLE
INCREMENT
BCD
++BL
@++BL
595 Output Required
DECREMENT
BCD
− −B
@− −B
596 Output Required
DOUBLE DEC-
REMENT BCD
− −BL
@− −BL
597 Output Required
A-1-9 Symbol Math Instructions
Instruction Mnemonic Code Symbol/Operand Function Location
Execution
condition
SIGNED
BINARY ADD
WITHOUT
CARRY
+
@+
400 Output Required
++(590)
Wd
Wd: Word
Wd Wd
Increments the 4-digit hexadecimal
content of the specified word by 1.
++L(591)
Wd
Wd: Word
Wd+1 Wd Wd+1 Wd
Increments the 8-digit hexadecimal content of the
specified words by 1.
− − (592)
Wd
Wd: Word
Wd Wd
Decrements the 4-digit hexadecimal content
of the specified word by 1.
− − L(593)
Wd
Wd: 1st word
Wd+1 Wd Wd+1 Wd
Decrements the 8-digit hexadecimal content of the
specified words by 1.
++B(594)
Wd
Wd: Word
Wd Wd
Increments the 4-digit BCD content
of the specified word by 1.
++BL(595)
Wd
Wd: 1st word
Wd+1 Wd Wd+1 Wd
Increments the 8-digit BCD content of the specified
words by 1.
− − B(596)
Wd
Wd: Word
−1
Wd Wd
Decrements the 4-digit BCD content of
the specified word by 1.
− − BL(597)
Wd
Wd: 1st word
Wd+1 Wd Wd+1 Wd
Decrements the 8-digit BCD content of the specified
words by 1.
+(400)
Au
Ad
R
Au: Augend word
Ad: Addend word
R: 1st result word
Au
Ad
RCY
+
(Signed binary)
(Signed binary)
(Signed binary)
CY will turn
ON when
there is a
carry.
Adds 4-digit (single-word) hexadecimal data and/or
constants.