1
Addressing Modes
krraju.in
What you’ll learn
2
Central Processing Unit: Introduction, General Register Organization, Stack Organization, Instruction Formats, Addressing Modes, Data Transfer and Manipulation, Program Control, Reduced Instruction Set Computer (RISC)
Unit-3
krraju.in
Byte Ordering
3
The most significant byte of the data is stored in the low addressed byte followed by remaining bytes in higher addressed locations.
The least significant byte of the data is stored in the low addressed byte followed by remaining bytes in higher addressed locations.
Storing a multiple byte data element in a byte-addressable architecture.
krraju.in
Word Alignment
Storage of different data types might require different multiples of bytes. This results in the storage that is not in exact multiples of word size.
4
krraju.in
Addressing Mode
Most instructions have operands, specifying where the operands are (i.e., their addresses) is called addressing.
Addressing mode refers to the way in which the operand of an instruction is chosen during program execution.
5
Opcode
Mode
Operand Address
Instruction with mode field
krraju.in
Why Addressing Mode is important?
Enables efficient memory utilization, operand access, and code optimization, which ultimately impacts the system's overall performance.
6
Trade off
krraju.in
Implicit/Inherent/Implied Mode
7
Opcode
Instruction
krraju.in
Immediate/Literal Mode
Advantage:
Disadvantage:
Typical usage: Constant operand
8
Opcode
Instruction
Operand
krraju.in
Direct/Absolute Mode
9
Opcode
Instruction
Address
Memory
Operand
krraju.in
Direct/Absolute Mode contd..
10
krraju.in
Indirect Mode
11
Opcode
Instruction
Address
Memory
Operand
Address
krraju.in
Indirect Mode Contd..
12
krraju.in
Register Direct Mode
13
Opcode
Instruction
Reg.
Registers
Operand
krraju.in
Register Indirect Mode
14
Opcode
Instruction
Reg.
Registers
Address
Memory
Operand
krraju.in
Displacement Addressing
15
Opcode
Instruction
Reg.
Registers
Address
Memory
Operand
Address Offset
krraju.in
Relative Address Mode
16
Opcode
Instruction
Program Counter
Address
Memory
Operand
Address Offset
krraju.in
Base Register Addressing Mode
17
Opcode
Instruction
Base Register
Address
Memory
Operand
Address Offset
krraju.in
Indexed Addressing Mode
18
Opcode
Instruction
Index Register
Address Offset
Memory
Operand
Address
krraju.in
Auto Increment/Decrement Mode
Auto increment
Auto decrement
19
krraju.in
Recap
20
krraju.in
Video Links
21
krraju.in