114 / 132 page

Handshake Solutions
HT80C51 User Manual
80C51 Family Instruction Set – Instruction definitions
Page 114 of 132
© Philips Electronics N.V. 2005
MOV @Ri,direct
Bytes: 2
Cycles: 2
Encoding:
Operation: MOV
((Ri))
← (direct)
MOV @Ri,#data
Bytes: 2
Cycles: 1
Encoding:
Operation: MOV
((Ri))
← #data
MOV <dest-bit>,<src-bit>
Function: Move bit data
Description: The Boolean variable indicated by the second operand is copied into the location specified by the
first operand. One of the operands must be the carry flag; the other may be any directly address-
able bit. No other register or flag is affected.
Example: The carry flag is originally set. The data present at input Port 3 is 11000101B. The data previously
written to output Port 1 is 35H (00110101B). The instruction sequence,
MOV P1.3,C
MOV C,P3.3
MOV P1.2,C
will leave the carry cleared and change Port 1 to 39H (00111001B).
MOV C,bit
Bytes: 2
Cycles: 1
Encoding:
Operation: MOV
(C)
← (bit)
MOV bit,C
Bytes: 2
Cycles: 2
Encoding:
Operation: MOV
(bit)
← (C)
1
0
1
0
0
1
1
i
direct address
0
1
1
1
0
1
1
i
immediate data
1
0
1
0
0
0
1
0
bit address
1
0
0
1
0
0
1
0
bit address