DR805x Instructions set details
- 54 -
3.25. MOVC
Instruction:
Function:
MOVC A, @A + <base-reg>
Move code byte
Description: The MOVC instructions load the accumulator with a code byte, or
constant from program memory. The address of the byte fetched is the
sum of the original unsigned eight-bit accumulator contents and the
contents of a sixteen-bit base register, which may be either the data
pointer or the PC. In the latter case, the PC is incremented to the
address of the following instruction before being added to the
accumulator; otherwise the base register is not altered. Sixteen-bit
addition is performed so a carry-out from the low-order eight bits may
propagate through higher-order bits. No flags are affected.
3.25.1.
MOVC A, @A + DPTR
Operation: (PC) ← (PC) + 1
(A) ← ((A) + (DPTR))
Bytes:
1
Cycles:
4
Encoding:
1
0
0
1
0
0
1
1
3.25.2.
MOVC A, @A + PC
Operation: (PC) ← (PC) + 1
(A) ← ((A) + (PC))
Bytes:
Cycles:
1
4
Encoding:
1
0
0
0
0
0
1
1
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.