Siemens C500 User Manual page 72

Microcontroller family
Table of Contents

Advertisement

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 30 H holds 40 H . The value of RAM location 40 H is 10 H . The
data present at input port 1 is 11001010B (0CA H ).
MOV
MOV
MOV
MOV
MOV
MOV
leaves the value 30 H in register 0, 40 H in both the accumulator and register 1, 10 H
in register B, and 0CA H (11001010 B ) both in RAM location 40 H and output on
port 2.
MOV
A,Rn
Operation:
MOV
(A) ¬ (Rn)
Encoding:
1 1 1 0
Bytes:
1
Cycles:
1
MOV
A,direct *)
Operation:
MOV
(A) ¬ (direct)
Encoding:
1 1 1 0
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.
Semiconductor Group
R0, #30H
A, @R0
R1,A
B, @R1
@R1,P1
P2,P1
1 r r r
0 1 0 1
; R0 < = 30H
; A < = 40H
; R1 < = 40H
; B < = 10 H
; RAM (40H) < = 0CAH
; P2 < = 0CAH
direct address
4-46
Instruction Set
C500 Family
1998-04-01

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents