![Samsung S3P80C5 User Manual Download Page 125](http://html1.mh-extra.com/html/samsung/s3p80c5/s3p80c5_user-manual_3993739125.webp)
INSTRUCTION SET
S3P80C5/C80C5/C80C8
6-16
AND
—
Logical AND
AND
dst,src
Operation:
dst
←
dst AND src
The source operand is logically ANDed with the destination operand. The result is stored in the
destination. The AND operation results in a "1" bit being stored whenever the corresponding bits
in the two operands are both logic ones; otherwise a "0" bit value is stored. The contents of the
source are unaffected.
Flags:
C:
Unaffected.
Z:
Set if the result is "0"; cleared otherwise.
S:
Set if the result bit 7 is set; cleared otherwise.
V:
Always cleared to "0".
D:
Unaffected.
H:
Unaffected.
Format:
Bytes
Cycles
Opcode
(Hex)
Addr Mode
dst src
opc
dst | src
2
4
52
r
r
6
53
r
lr
opc
src
dst
3
6
54
R
R
6
55
R
IR
opc
dst
src
3
6
56
R
IM
Examples:
Given: R1 = 12H, R2 = 03H, register 01H = 21H, register 02H = 03H, register 03H = 0AH:
AND
R1,R2
→
R1 = 02H, R2 = 03H
AND
R1,@R2
→
R1 = 02H, R2 = 03H
AND
01H,02H
→
Register 01H = 01H, register 02H = 03H
AND
01H,@02H
→
Register 01H = 00H, register 02H = 03H
AND
01H,#25H
→
Register 01H = 21H
In the first example, destination working register R1 contains the value 12H and the source
working register R2 contains 03H. The statement "AND R1,R2" logically ANDs the source
operand 03H with the destination operand value 12H, leaving the value 02H in register R1.
Summary of Contents for S3P80C5
Page 2: ...S3P80C5 C80C5 C80C8 8 BIT CMOS MICROCONTROLLERS USER S MANUAL Revision 1 ...
Page 5: ......
Page 13: ......
Page 15: ......
Page 17: ......
Page 19: ......
Page 49: ...ADDRESS SPACES S3P80C5 C80C5 C80C8 2 20 NOTES ...
Page 197: ...INSTRUCTION SET S3P80C5 C80C5 C80C8 6 88 NOTES ...
Page 201: ...CLOCK CIRCUITS S3P80C5 C80C5 C80C8 7 4 NOTES ...
Page 237: ...TIMER 1 S3P80C5 C80C5 C80C8 11 6 NOTES ...
Page 245: ...COUNTER A S3P80C5 C80C5 C80C8 12 8 NOTES ...
Page 255: ......
Page 257: ......
Page 259: ......
Page 261: ......