gc80c510 CORERIVER Semiconductor, gc80c510 Datasheet - Page 154

no-image

gc80c510

Manufacturer Part Number
gc80c510
Description
Eprom/rom 8-bit Turbo Microcontrollers
Manufacturer
CORERIVER Semiconductor
Datasheet
MOV
MOV A, ACC is not a valid instruction
MOV A, direct
MOV A, Rn
Description:
Operation:
Operation:
Encoding:
Encoding:
Function:
<dest-byte>, <src-byte>
Example:
Cycles:
Cycles:
Bytes:
Bytes:
Move byte variable
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.
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
MOV R1, A
MOV B, @R1
MOV @R1, P1 ;RAM (40h)< = 0CAh
MOV P2, P1
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 Iocation 40h and output
on port 2.
1
1
MOV
(A)
2
2
MOV
(A)
1
1
1
1
(Rn)
(direct)
1
1
0
0
;A < = 40h
;R1 < = 40h
;B < = 10h
;P2 #0CAh
1
0 1 0 1
Page 154 of 211
r
r
r
direct address
Appendix A: Instruction Set

Related parts for gc80c510