61
CS/CJ/NSJ Series Instructions Reference Manual (W474)
2. Summary of Instructions
2-2 Instruction Functions
2
2-2-9 Symbol Math Instructions
DOUBLE
SIGNED BINARY
WITH CARRY
–CL
@–CL
413
Output
Required
362
BCD SUBTRACT
WITHOUT
CARRY
–B
@–B
414
Output
Required
365
DOUBLE BCD
SUBTRACT
WITHOUT
CARRY
–BL
@–BL
415
Output
Required
365
BCD SUBTRACT
WITH CARRY
–BC
@–BC
416
Output
Required
368
DOUBLE BCD
SUBTRACT
WITH CARRY
–BCL
@–BCL
417
Output
Required
368
Instruction
Mnemonic
Code
Symbol/Operand Function Location
Execution
condition
Page
−CL(413)
Mi
Su
R
Mi: Minuend word
Su: Subtrahend
word
R: Result word
R+1
CY
RCY
Mi+1
Su+1
Mi
Su
CY will turn
ON when
there is a
borrow.
Subtracts 8-digit (double-word) hexadecimal data and/or constants
with the Carry Flag (CY).
(Signed binary)
(Signed binary)
(Signed binary)
−
−B(414)
R
Mi
Su
Mi: Minuend word
Su: Subtrahend
word
R: Result word
Mi
Su
Subtracts 4-digit (single-word) BCD data and/or constants.
CY will turn ON
when there is a
carry.
−
RCY
(BCD)
(BCD)
(BCD)
−BL(415)
R
Su
Mi: 1st minuend
word
Su: 1st
subtrahend word
R: 1st result word
Mi
R+1CY R
(BCD)
(BCD)
(BCD)
−
Mi +1
Su+1
Mi
Su
Subtracts 8-digit (double-word) BCD data and/or constants.
CY will turn ON
when there is a
borrow.
−BC(416)
Mi
Su
R
Mi: Minuend word
Su: Subtrahend
word
R: Result word
CY
CY
(BCD)
(BCD)
(BCD)
R
−
Mi
Su
CY will turn ON
when there is a
borrow.
Subtracts 4-digit (single-word) BCD data and/or constants with the
Carry Flag (CY).
−BCL(417)
Mi
Su
R
Mi: 1st minuend
word
Su: 1st
subtrahend word
R: 1st result word
R+1
CY
RCY
(BCD)
(BCD)
(BCD)
−
Mi +1
Su+1
Mi
Su
Subtracts 8-digit (double-word) BCD data and/or constants with the
Carry Flag (CY).
CY will turn ON
when there is a
borrow.