Memory-Memory

 

Code Example: To store the sum of memory variables A and B

into location C of memory:

 

Add C,A,B ;read A and B from memory and put their sum in memory location C.

Benefits: Most compact: no extra load/store instructions

required. No registers used for temporary storage.

Disadvantages: Large variation in instruction size and work per

Instruction. Memory bottleneck: up to 3 data accesses are

performed with each instruction access.