S3F84B8_UM_REV 1.00
6.3.43 LDCPI/LDEPI — LOAD MEMORY WITH PRE-INCREMENT
LDCPI/
dst,src
LDEPI
rr rr + 1
Operation:
dst src
These instructions are used for block transfers of data from program or data memory to the
register file. The address of memory location is specified by a working register pair and is first
incremented. After this step, the contents of source location are loaded into the destination
location. The contents of the source remain unaffected.
LDCPI refers to program memory and LDEPI refers to external data memory. The assembler
makes 'Irr' an even number for program memory and an odd number for data memory.
No flags are affected.
Flags:
Format:
opc
Given R0 = 7FH, R6 = 21H, and R7 = 0FFH:
Examples:
LDCPI @RR6,R0
LDEPI @RR6,R0
src | dst
; (RR6 RR6 + 1)
; 7FH (contents of R0) is loaded into program memory
; location 2200H (21FFH + 1H)
; R0 = 7FH, R6 = 22H, R7 = 00H
; (RR6 RR6 + 1)
; 7FH (contents of R0) is loaded into external data memory
; location 2200H (21FFH + 1H)
; R0 = 7FH, R6 = 22H, R7 = 00H
Bytes
Cycles
2
6-56
6 INSTRUCTION SET
Opcode
Addr Mode
(Hex)
dst
14
F3
src
Irr
r