Instruction Set
C500 Family
Semiconductor Group
4-46
1998-04-01
MOV
<dest-byte>, <src-byte>
Function:
Move byte variable
Description:
The byte variable indicated by the second operand is copied into the location
specified by the first operand. The source byte is not affected. No other register or
flag is affected.
This is by far the most flexible operation. Fifteen combinations of source and
destination addressing modes are allowed.
Example:
Internal RAM location 30H holds 40H. The value of RAM location 40H is 10H. The
data present at input port 1 is 11001010B (0CAH).
MOV
R0, #30H
; R0 < = 30H
MOV
A, @R0
; A < = 40H
MOV
R1,A
; R1 < = 40H
MOV
B, @R1
; B < = 10H
MOV
@R1,P1
; RAM (40H) < = 0CAH
MOV
P2,P1
; P2 < = 0CAH
leaves the value 30H in register 0, 40H in both the accumulator and register 1, 10H
in register B, and 0CAH (11001010B) both in RAM location 40H and output on
port 2.
MOV
A,Rn
Operation:
MOV
(A)
¬
(Rn)
Bytes:
1
Cycles:
1
MOV
A,direct *)
Operation:
MOV
(A)
¬
(direct)
Bytes:
2
Cycles:
1
*) MOV A,ACC is not a valid instruction. The content of the accumulator after the execution of this
instruction is undefined.
Encoding:
1 1 1 0
1 r r r
Encoding:
1 1 1 0
0 1 0 1
direct address