Omron CJ2 CPU UNIT SOFTWARE User Manual page 511

Cj2 cpu unit software
Hide thumbs Also See for CJ2 CPU UNIT SOFTWARE:
Table of Contents

Advertisement

Instruction
Mnemonic
− BL
DOUBLE BCD
415
SUBTRACT
@− BL
WITHOUT
CARRY
− BC
BCD SUB-
416
TRACT WITH
@− BC
CARRY
− BCL
DOUBLE BCD
417
SUBTRACT
@− BCL
WITH CARRY
SIGNED
*
420
BINARY MULTI-
@*
PLY
DOUBLE
*L
421
SIGNED
@*L
BINARY MULTI-
PLY
UNSIGNED
*U
422
BINARY
@*U
MULTIPLY
CJ2 CPU Unit Software User's Manual
Code
Symbol/Operand
Subtracts 8-digit (double-word) BCD data and/or constants.
−BL(415)
Mi
Su
R
CY will turn
ON when
Mi: 1st minuend
there is a
word
borrow.
Su: 1st
subtrahend word
R: 1st result word
Subtracts 4-digit (single-word) BCD data and/or
−BC(416)
constants with the Carry Flag (CY).
Mi
Su
R
Mi: Minuend word
Su: Subtrahend
CY will turn
word
ON when
R: Result word
there is a
borrow.
Subtracts 8-digit (double-word) BCD data and/or constants
−BCL(417)
with the Carry Flag (CY).
Mi
Su
R
Mi: 1st minuend
word
CY will turn
Su: 1st
subtrahend word
ON when
there is a
R: 1st result word
borrow.
Multiplies 4-digit signed hexadecimal data and/or constants.
*(420)
Md
Mr
R
Md: Multiplicand
word
Mr: Multiplier
word
R: Result word
Multiplies 8-digit signed hexadecimal data and/or constants.
*L(421)
Md
Mr
R
Md: 1st
R + 3
multiplicand word
Mr: 1st multiplier
word
R: 1st result word
Multiplies 4-digit unsigned hexadecimal data
*U(422)
and/or constants.
Md
Mr
R
Md: Multiplicand
word
Mr: Multiplier
word
R: Result word
Function
Mi +1
Mi
Su+1
Su
CY
R+1
R
(BCD)
Mi
(BCD)
Su
CY
(BCD)
CY
R
Mi +1
Su+1
CY
R+1
(Signed binary)
Md
×
(Signed binary)
Mr
(Signed binary)
R +1
R
Md
Md + 1
×
Mr
Mr + 1
R + 2
R + 1
R
Md
(Unsigned binary)
×
(Unsigned binary)
Mr
(Unsigned binary)
R +1
R
Appendices
Execution
Location
condition
Output
Required
(BCD)
(BCD)
(BCD)
Output
Required
Output
Required
(BCD)
Mi
(BCD)
Su
CY
(BCD)
R
Output
Required
Output
Required
(Signed binary)
(Signed binary)
(Signed binary)
Output
Required
A-27

Advertisement

Table of Contents
loading

Table of Contents