Professional Documents
Culture Documents
Memory Structure
Dimensions
n-bit words k-bit address
Operations
Read, Load Write, Store
2
Instruction Sequencing
R2 [LOC]
R4 [R2]+[R3]
Instruction Execution
C [A] + [B]
Branching
Addressing Modes
Register modeThe operand is the contents of a processor register Add R4, R2, R3 Registers R2 and R3 hold the two source operands, while R4 is the destination
10
The Absolute mode can represent global variables in a program Integer NUM1, NUM2, SUM
allocates a memory location to each of the variables NUM1, NUM2, and SUM
Or
Load R2, NUM1
11
Register indirect mode The effective address of the operand is the contents of a register that is specied in the instruction
12
13