DP805x Instructions set details
- 9 -
2.2.4. DATA TRANSFERS
Mnemonic
MOV A,Rn
Description
Code
0xE8-0xEF
0xE5
0xE6-0xE7
0x74
0xF8-0xFF
0xA8-0xAF
0x78-0x7F
0xF5
0x88-8F
85
Bytes Cycles
Move register to accumulator
Move direct byte to accumulator
Move indirect RAM to accumulator
Move immediate data to accumulator
Move accumulator to register
Move direct byte to register
Move immediate data to register
Move accumulator to direct byte
Move register to direct byte
1
2
1
2
1
2
2
2
2
3
2
3
1
2
2
3
1
1
1
1
1
2
2
2
1
3
2
2
2
3
3
3
2
3
2
3
5
4
3*
2*
MOV A,direct
MOV A,@Ri
MOV A,#data
MOV Rn,A
MOV Rn,direct
MOV Rn,#data
MOV direct,A
MOV direct,Rn
MOV direct1,direct2 Move direct byte to direct byte
MOV direct,@Ri
MOV direct,#data
MOV @Ri,A
MOV @Ri,direct
MOV @Ri,#data
Move indirect RAM to direct byte
Move immediate data to direct byte
Move accumulator to indirect RAM
Move direct byte to indirect RAM
Move immediate data to indirect RAM
86-87
75
F6-F7
A6-A7
76-77
90
93
83
E2-E3
E0
MOV DPTR,#data16 Load data pointer with a 16-bit constant
MOVC A,@A+DPTR Move code byte relative to DPTR to accumulator
MOVC A,@A+PC
MOVX A,@Ri
MOVX A,@DPTR
Move code byte relative to PC to accumulator
Move external RAM (8-bit address) to A
Move external RAM (16-bit address) to A
CODE inside ROM/RAM
4*
5*
Move A to external
RAM (8-bit address)
destination XRAM data
MOVX @Ri,A
F2-F3
1
all other cases
CODE inside ROM/RAM
destination XRAM data
3*
4*
Move A to external
RAM (16-bit address)
MOVX @DPTR,A
F0
1
all other cases
PUSH direct
POP direct
XCH A,Rn
XCH A,direct
XCH A,@Ri
XCHD A,@Ri
Push direct byte onto stack
Pop direct byte from stack
Exchange register with accumulator
Exchange direct byte with accumulator
Exchange indirect RAM with accumulator
Exchange low-order nibble indirect RAM with A
C0
D0
C8-CF
C5
C6-C7
D6-D7
2
2
1
2
1
1
3
2
2
3
3
3
Table 6. Data transfer
* MOVX cycles depends on STRETCH register. Table shows values with STRETCH=0.
All trademarks mentioned in this document
are trademarks of their respective owners.
http://www.DigitalCoreDesign.com
http://www.dcd.pl
Copyright 1999-2003 DCD – Digital Core Design. All Rights Reserved.