S3F84B8_UM_REV 1.00 6 INSTRUCTION SET6-556.3.42 LDCPD/LDEPD — LOAD MEMORY WITH PRE-DECREMENTLDCPD/LDEPD dst,srcOperation: rr rr – 1dst srcThese instructions are used for block transfers of data from program or data memory from theregister file. The address of memory location is specified by a working register pair and is firstdecremented. After this step, the contents of source location are loaded into destination location.The contents of source remain unaffected.LDCPD refers to program memory and LDEPD refers to external data memory. The assemblermakes ‘Irr’ an even number for program memory and an odd number for external data memory.Flags: No flags are affected.Format:Bytes Cycles Opcode(Hex)Addr Modedst srcopc src | dst 2 14 F2 Irr rExamples: Given R0 = 77H, R6 = 30H, and R7 = 00H:LDCPD @RR6,R0 ; (RR6 RR6 – 1); 77H (contents of R0) is loaded into program memory location; 2FFFH (3000H – 1H); R0 = 77H, R6 = 2FH, R7 = 0FFHLDEPD @RR6,R0 ; (RR6 RR6 – 1); 77H (contents of R0) is loaded into external data memory; location 2FFFH (3000H – 1H); R0 = 77H, R6 = 2FH, R7 = 0FFH