COA Report
COA Report
2024-25
Submitted By:
Harshavardha (1DT23EC032)
Hrishikesh (1DT23EC034)
SUBMITED TO:
DR SUMAIYAMN
Asst. Prof, Dept. of
E&CE,DSATM,
Bengaluru
ADDRESSING MODES
INTRODUCTION:
The various formats of representing operand in an instruction or location of an operand is
called as
“Addressing Mode”. The different types of Addressing Modes are
a) Register Addressing
b) Direct Addressing
c) Immediate Addressing
d) Indirect Addressing
e) Index Addressing
f) Relative Addressing
g) Auto Increment Addressing
h) Auto Decrement Addressing
a) Register Addressing:
In this mode operands are stored in the registers of CPU. The name of the register is directly
specified in the instruction.
Where R1 and R2 are the Source and Destination registers respectively. This instruction
transfers 32 bits of
data from R1 register into R2 register. This instruction does not refer memory
for operands. The operands are directly available in the registers.
b) Direct Addressing:
It is also called as Absolute Addressing Mode. In this addressing mode operands are stored in
the
memory locations. The name of the memory location is directly specified in the instruction.
c) Immediate Addressing:
In this Addressing Mode operands are directly specified in the instruction. The source field is
used to
represent the operands. The operands are represented by # (hash) sign
Ex: MOVE #23, R0
d) Indirect Addressing:
In this Addressing Mode effective address of an operand is stored in the memory location or
General Purpose Register. The memory locations or GPRS are used as the memory pointer.
Ex: ADD(R20),R0
Memory pointer: It stores the address of the memory location.
There are two types Indirect Addressing
i. Indirect through GPRS
ii. Indirect through memory location
Answer: c) NOT
12. What fills the vacant positions on the right during a Logical Shift Left operation?
a) Ones
b) Zeros
c) Carry bits
d) Previous values
Answer: b) Zeros
Answer: b) Least Significant Bit is transferred to carry and then to the Most Significant Bit
2. Efficiency: They optimize code size and execution speed by enabling direct, indirect, or
indexed data access, depending on the situation.
3. Support for Complex Operations: Complex data structures like arrays, pointers, and tables
are efficiently handled using specific addressing modes such as indexed or base-relative.