Module 1 - Lecture 5
Module 1 - Lecture 5
Lecture 5
Contents: 2
Memory Segmentation
Addressing modes of 8086
Forming the effective Addresses
References
Memory Segmentation:
3
If the destination location lies in the same segment, the mode is called
intrasegment mode.
Addressing modes of 8086:
17
Intersegment direct
Intersegment
Intrasegment
Intrasegment indirect
Addressing modes for Control Transfer Instructions
Addressing modes of 8086:
18
9. Intrasegment Direct Mode: In this mode, the address to which the
control is to be transferred lies in the same segment in which the
control transfer instruction lies and appears directly in the
instruction as an immediate displacement value. In this addressing
mode, the displacement is computed relative to the content of the
instruction pointer IP.
Offset (displacement)=5000H
MOV AX,[5000H]
------------------
15000H – Effective address
Forming the effective Addresses:
22
ii. Register indirect:
DS : BX 1000H : 2000H
------------------
12000H – Effective address
Forming the effective Addresses:
23
iii. Register relative:
DS : [5000+BX]
[BX] +2000
DS : [BX+SI]
[BX] +2000
[SI] +3000
[BX] +2000
[SI] +3000
+5000