Register-Register
Code Example: To store the sum of memory variables A and B
into location C of memory:
Load R1,A ;copy A from memory into register R1
Load R2,B ;copy B from memory into register R2.
Add R3,R1,R2 ;put R1 + R2 into register R3.
Store C,R3 ;store R3 into memory location C.
Benefits: Arithmetic doesn't overwrite source operands. Simple
fixed-length encoding. Simple code generation model. Similar
number of clock pulses per instruction.
Disadvantages: Higher instruction count: extra load/store
instructions required. Wasted space in arithmetic
instructions.