gc80c520a CORERIVER Semiconductor, gc80c520a Datasheet - Page 127

no-image

gc80c520a

Manufacturer Part Number
gc80c520a
Description
Midas1.0 Family Mask Rom/eprom/romless 8-bit Turbo Microcontrollers
Manufacturer
CORERIVER Semiconductor
Datasheet
MOV
MOV A, ACC is not a valid instruction
MOV A, Rn
MOV A, direct
Description:
Operation:
Operation:
Encoding:
Encoding:
Function:
<dest-byte>, <src-byte>
Example:
MiDAS1.0 Family
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
r
Page 127 of 187
r
r
direct address

Related parts for gc80c520a