English
Language : 

DR805X Datasheet, PDF (54/79 Pages) Digital Core Design – 8-bit RISC Microcontroller Instructions set details ver 3.10
DR805x Instructions set details
3.25. MOVC
- 54 -
Instruction: MOVC A, @A + <base-reg>
Function: 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:
10010011
3.25.2.
MOVC A, @A + PC
Operation: (PC) ← (PC) + 1
(A) ← ((A) + (PC))
Bytes:
1
Cycles:
4
Encoding:
10000011
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.