Specifications
COMParo
CMP rrc.dst
2.3ur’
01
2
WC
dst
I
I I I 1 1
1 I I I t
(5
12 11
6 5
0
.Operation: (src) -
(dst) [in detail, (src) + - (dst) + 11
Condition Codes:
Z: set if result = 0; cleared otherwise
N: set if ‘result < 0; cleared ptherwise
C: cleared if there was a carry from the most significant
bit of the result; set otherwise
V: set if there was arithmetic overflow; that is, operands
were of opposite signs and the sign of the destination
was the same as the sign of the result; cleared
otherwise.
Description: Arithmetically compares the source and destination operands.
Affects neither operand. The only action is to set the condition codes
appropriately.
Boolean Instructions-These instructions have the same format- as the
double operand arithmetic group. They permit operations on data at the
bit level.
Bll set
BIS src.dst
2.31~~
0 ,
5
It~IJ*I~~I’~l
15
12 11
6 5
0
.
Operation: (src) V (dst) + (dst)
Condition Codes: ,Z: set if resu’lt = 0; cleared otherwise
N: set if high-order bit of result set; cleared otherwise
C: not affected
V: cleared
Description: Performs “Inclusive OR” transfer between the source and des-
tination operands and leaves the result at the destination address; that is,
corresponding bits set in the source are set in the destination. The original
contents of the destination are lost. The source is not affected.
Bit Clear
BIC src, dst
2 9us
0 4 src
dst
1 I L I t I t t I I I
15 12 11
6 5 0
Operation: - (src) A (dst) + (dst)
Conditions Codes: Z: set if result = 0; cleared otherwise
N: set if high-order bit of result set; cleared otherwise
C: not affected
V: cleared .
Description: The BIC instructi,on clears each bit in the destination that car-
responds to a set bit in the source. The original contents of the destination
are lost. The contents of the sources are unaffected.
*There is no read/modify/write cycle in the CMP, BIT. and TST operations. This.iaves
0.4 ws in all destination address modes except register mode.
20 ’