Académique Documents
Professionnel Documents
Culture Documents
professorgstatla@gmail.com
6 Oct. 2010
www.eazynotes.com
Memory Segmentation
6 Oct. 2010
www.eazynotes.com
Memory Segmentation
6 Oct. 2010
www.eazynotes.com
Memory Segmentation
These are:
Code Segment
Data Segment
Stack Segment
Extra Segment
6 Oct. 2010
www.eazynotes.com
Segment Registers
6 Oct. 2010
www.eazynotes.com
Segment Registers
6 Oct. 2010
www.eazynotes.com
Segment Registers
6 Oct. 2010
www.eazynotes.com
Example
6 Oct. 2010
www.eazynotes.com
Example (Contd.)
6 Oct. 2010
www.eazynotes.com
Example (Contd.)
Segment + Offset
6 Oct. 2010
www.eazynotes.com
10
Example (Contd.)
Therefore:
EA =
22220 H
+ 0016 H
-----------22236 H
6 Oct. 2010
www.eazynotes.com
11
Example (Contd.)
2222 H
BYTE 0
DS Register
BYTE 1
22220 H
BYTE 2
Offset = 0016 H
Addressed Byte
6 Oct. 2010
www.eazynotes.com
22236 H
12
6 Oct. 2010
www.eazynotes.com
13
Offset Registers
Function
CS
IP
DS
BX, DI, SI
Address of data
SS
SP, BP
ES
BX, DI, SI
6 Oct. 2010
www.eazynotes.com
14
Question
CS = 1111 H
DS = 3333 H
SS = 2526 H
IP = 1232 H
SP = 1100 H
DI = 0020 H
6 Oct. 2010
www.eazynotes.com
15
Solution
1. CS = 1111 H
2. DS = 3333 H
3. SS = 2526 H
6 Oct. 2010
www.eazynotes.com
16
17