SlideShare a Scribd company logo
1 of 17
Download to read offline
Gursharan Singh Tatla
professorgstatla@gmail.com
6 Oct. 2010 1www.eazynotes.com
Memory Segmentation
ο‚ž The total memory size is divided into
segments of various sizes.
ο‚ž A segment is just an area in memory.
ο‚ž The process of dividing memory this
way is called Segmentation.
6 Oct. 2010 2www.eazynotes.com
Memory Segmentation
ο‚ž In memory, data is stored as bytes.
ο‚ž Each byte has a specific address.
ο‚ž Intel 8086 has 20 lines address bus.
ο‚ž With 20 address lines, the memory that can
be addressed is 220 bytes.
ο‚ž 220 = 1,048,576 bytes (1 MB).
ο‚ž 8086 can access memory with address
ranging from 00000 H to FFFFF H.
6 Oct. 2010 3www.eazynotes.com
Memory Segmentation
ο‚ž In 8086, memory has four different types
of segments.
ο‚ž These are:
ο‚— Code Segment
ο‚— Data Segment
ο‚— Stack Segment
ο‚— Extra Segment
6 Oct. 2010 4www.eazynotes.com
Segment Registers
ο‚ž Each of these segments are addressed by
an address stored in corresponding
segment register.
ο‚ž These registers are 16-bit in size.
ο‚ž Each register stores the base address
(starting address) of the corresponding
segment.
ο‚ž Because the segment registers cannot
store 20 bits, they only store the upper 16
bits.
6 Oct. 2010 5www.eazynotes.com
Segment Registers
6 Oct. 2010 6www.eazynotes.com
Segment Registers
ο‚ž How is a 20-bit address obtained if there are only 16-
bit registers?
ο‚ž The answer lies in the next few slides.
ο‚ž The 20-bit address of a byte is called its Physical
Address.
ο‚ž But, it is specified as a Logical Address.
ο‚ž Logical address is in the form of:
Base Address : Offset
ο‚ž Offset is the displacement of the memory location
from the starting location of the segment.
6 Oct. 2010 7www.eazynotes.com
Example
ο‚ž The value of Data Segment Register
(DS) is 2222 H.
ο‚ž To convert this 16-bit address into 20-bit,
the BIU appends 0H to the LSBs of the
address.
ο‚ž After appending, the starting address of
the Data Segment becomes 22220H.
6 Oct. 2010 8www.eazynotes.com
Example (Contd.)
ο‚ž If the data at any location has a logical
address specified as:
2222 H : 0016 H
ο‚ž Then, the number 0016 H is the offset.
ο‚ž 2222 H is the value of DS.
6 Oct. 2010 9www.eazynotes.com
Example (Contd.)
ο‚ž To calculate the effective address of the
memory, BIU uses the following formula:
ο‚ž Effective Address = Starting Address of
Segment + Offset
ο‚ž To find the starting address of the
segment, BIU appends the contents of
Segment Register with 0H.
ο‚ž Then, it adds offset to it.
6 Oct. 2010 10www.eazynotes.com
Example (Contd.)
ο‚ž Therefore:
ο‚ž EA = 22220 H
+ 0016 H
------------
22236 H
6 Oct. 2010 11www.eazynotes.com
Example (Contd.)
6 Oct. 2010 12www.eazynotes.com
BYTE – 0
BYTE – 1
BYTE – 2
-
-
-
-
-
Addressed Byte
2222 H
DS Register
22220 H
Offset = 0016 H
22236 H
Max. Size of Segment
ο‚ž All offsets are limited to 16-bits.
ο‚ž It means that the maximum size
possible for segment is 216 = 65,535
bytes (64 KB).
ο‚ž The offset of the first location within the
segment is 0000 H.
ο‚ž The offset of the last location in the
segment is FFFF H.
6 Oct. 2010 13www.eazynotes.com
Where to Look for the Offset
Segment Offset Registers Function
CS IP Address of the next instruction
DS BX, DI, SI Address of data
SS SP, BP Address in the stack
ES BX, DI, SI Address of destination data
(for string operations)
6 Oct. 2010 14www.eazynotes.com
Question
ο‚ž The contents of the following registers are:
ο‚ž CS = 1111 H
ο‚ž DS = 3333 H
ο‚ž SS = 2526 H
ο‚ž IP = 1232 H
ο‚ž SP = 1100 H
ο‚ž DI = 0020 H
ο‚ž Calculate the corresponding physical addresses for
the address bytes in CS, DS and SS.
6 Oct. 2010 15www.eazynotes.com
Solution
1. CS = 1111 H
ο‚ž The base address of the code segment is 11110 H.
ο‚ž Effective address of memory is given by 11110H + 1232H = 12342H.
2. DS = 3333 H
ο‚ž The base address of the data segment is 33330 H.
ο‚ž Effective address of memory is given by 33330H + 0020H = 33350H.
3. SS = 2526 H
ο‚ž The base address of the stack segment is 25260 H.
ο‚ž Effective address of memory is given by 25260H + 1100H = 26350H.
6 Oct. 2010 16www.eazynotes.com
17

More Related Content

What's hot

8086 memory segmentation
8086 memory segmentation8086 memory segmentation
8086 memory segmentationSridari Iyer
Β 
Addressing Modes Of 8086
Addressing Modes Of 8086Addressing Modes Of 8086
Addressing Modes Of 8086Ikhlas Rahman
Β 
Instruction set of 8086
Instruction set of 8086Instruction set of 8086
Instruction set of 80869840596838
Β 
Addressing modes of 8051
Addressing modes of 8051Addressing modes of 8051
Addressing modes of 8051SARITHA REDDY
Β 
1327 Addressing Modes Of 8086
1327 Addressing Modes Of 80861327 Addressing Modes Of 8086
1327 Addressing Modes Of 8086techbed
Β 
Addressing modes of 8086
Addressing modes of 8086Addressing modes of 8086
Addressing modes of 8086saurav kumar
Β 
Instruction set-of-8085
Instruction set-of-8085Instruction set-of-8085
Instruction set-of-8085saleForce
Β 
Interfacing memory with 8086 microprocessor
Interfacing memory with 8086 microprocessorInterfacing memory with 8086 microprocessor
Interfacing memory with 8086 microprocessorVikas Gupta
Β 
8051 data types and directives
8051 data types and directives8051 data types and directives
8051 data types and directivesSARITHA REDDY
Β 
Memory Segmentation of 8086
Memory Segmentation of 8086Memory Segmentation of 8086
Memory Segmentation of 8086Nikhil Kumar
Β 
8086 pin details
8086 pin details8086 pin details
8086 pin detailsAJAL A J
Β 
Microprocessor Interfacing and 8155 Features
Microprocessor Interfacing and 8155 FeaturesMicroprocessor Interfacing and 8155 Features
Microprocessor Interfacing and 8155 FeaturesSrikrishna Thota
Β 
8051 Microcontroller PPT's By Er. Swapnil Kaware
8051 Microcontroller PPT's By Er. Swapnil Kaware8051 Microcontroller PPT's By Er. Swapnil Kaware
8051 Microcontroller PPT's By Er. Swapnil KawareProf. Swapnil V. Kaware
Β 
Logical instruction of 8085
Logical instruction of 8085Logical instruction of 8085
Logical instruction of 8085vishalgohel12195
Β 
Memory sementation sem
Memory sementation semMemory sementation sem
Memory sementation semVishal Jangid
Β 
Addressing modes of 8086 - Binu Joy
Addressing modes of 8086 - Binu JoyAddressing modes of 8086 - Binu Joy
Addressing modes of 8086 - Binu JoyBinu Joy
Β 
Stack in 8085 microprocessor
Stack in 8085 microprocessorStack in 8085 microprocessor
Stack in 8085 microprocessorhepzijustin
Β 

What's hot (20)

8086 memory segmentation
8086 memory segmentation8086 memory segmentation
8086 memory segmentation
Β 
Addressing Modes Of 8086
Addressing Modes Of 8086Addressing Modes Of 8086
Addressing Modes Of 8086
Β 
Instruction set of 8086
Instruction set of 8086Instruction set of 8086
Instruction set of 8086
Β 
Addressing modes of 8051
Addressing modes of 8051Addressing modes of 8051
Addressing modes of 8051
Β 
1327 Addressing Modes Of 8086
1327 Addressing Modes Of 80861327 Addressing Modes Of 8086
1327 Addressing Modes Of 8086
Β 
Addressing modes of 8086
Addressing modes of 8086Addressing modes of 8086
Addressing modes of 8086
Β 
Instruction set-of-8085
Instruction set-of-8085Instruction set-of-8085
Instruction set-of-8085
Β 
Interfacing memory with 8086 microprocessor
Interfacing memory with 8086 microprocessorInterfacing memory with 8086 microprocessor
Interfacing memory with 8086 microprocessor
Β 
Timing diagram 8085 microprocessor
Timing diagram 8085 microprocessorTiming diagram 8085 microprocessor
Timing diagram 8085 microprocessor
Β 
8051 data types and directives
8051 data types and directives8051 data types and directives
8051 data types and directives
Β 
Memory Segmentation of 8086
Memory Segmentation of 8086Memory Segmentation of 8086
Memory Segmentation of 8086
Β 
8086 pin details
8086 pin details8086 pin details
8086 pin details
Β 
Microprocessor Interfacing and 8155 Features
Microprocessor Interfacing and 8155 FeaturesMicroprocessor Interfacing and 8155 Features
Microprocessor Interfacing and 8155 Features
Β 
8051 Microcontroller PPT's By Er. Swapnil Kaware
8051 Microcontroller PPT's By Er. Swapnil Kaware8051 Microcontroller PPT's By Er. Swapnil Kaware
8051 Microcontroller PPT's By Er. Swapnil Kaware
Β 
Logical instruction of 8085
Logical instruction of 8085Logical instruction of 8085
Logical instruction of 8085
Β 
Register & Memory
Register & MemoryRegister & Memory
Register & Memory
Β 
Memory sementation sem
Memory sementation semMemory sementation sem
Memory sementation sem
Β 
Addressing modes of 8086 - Binu Joy
Addressing modes of 8086 - Binu JoyAddressing modes of 8086 - Binu Joy
Addressing modes of 8086 - Binu Joy
Β 
8085 instruction set
8085 instruction set8085 instruction set
8085 instruction set
Β 
Stack in 8085 microprocessor
Stack in 8085 microprocessorStack in 8085 microprocessor
Stack in 8085 microprocessor
Β 

Viewers also liked

1326 Introduction To 8086 Microprocessor
1326 Introduction To 8086 Microprocessor1326 Introduction To 8086 Microprocessor
1326 Introduction To 8086 Microprocessortechbed
Β 
Segments
SegmentsSegments
Segmentsaviban
Β 
Protection mode
Protection modeProtection mode
Protection modeDeepak Kumar
Β 
Paging and Segmentation in Operating System
Paging and Segmentation in Operating SystemPaging and Segmentation in Operating System
Paging and Segmentation in Operating SystemRaj Mohan
Β 
ppt on Segmentation in operationg system
ppt on Segmentation in operationg systemppt on Segmentation in operationg system
ppt on Segmentation in operationg systemsuraj sharma
Β 
Memory segmentations
Memory  segmentations Memory  segmentations
Memory segmentations maamir farooq
Β 
Instruction set-of-8086
Instruction set-of-8086Instruction set-of-8086
Instruction set-of-8086mudulin
Β 
Why the Address Translation Scheme Matters?
Why the Address Translation Scheme Matters?Why the Address Translation Scheme Matters?
Why the Address Translation Scheme Matters?Jiaqing Du
Β 
Register Organisation of 8086 Microprocessor
Register Organisation of 8086 MicroprocessorRegister Organisation of 8086 Microprocessor
Register Organisation of 8086 MicroprocessorNikhil Kumar
Β 
Address translation-mechanism-of-80386 by aniket bhute
Address translation-mechanism-of-80386 by aniket bhuteAddress translation-mechanism-of-80386 by aniket bhute
Address translation-mechanism-of-80386 by aniket bhuteAniket Bhute
Β 
Introduction to 80386 microprocessor
Introduction to 80386 microprocessorIntroduction to 80386 microprocessor
Introduction to 80386 microprocessorShehrevar Davierwala
Β 
Memory & the fetch decode-execute cycle
Memory & the fetch decode-execute cycleMemory & the fetch decode-execute cycle
Memory & the fetch decode-execute cyclechantellemallia
Β 
80386 Architecture
80386 Architecture80386 Architecture
80386 ArchitectureRohit Choudhury
Β 
Operating Systems - memory management
Operating Systems - memory managementOperating Systems - memory management
Operating Systems - memory managementMukesh Chinta
Β 
Microprocessor Protected Mode Memory addressing By DHEERAJ KATARIA
Microprocessor Protected Mode Memory addressing By DHEERAJ KATARIAMicroprocessor Protected Mode Memory addressing By DHEERAJ KATARIA
Microprocessor Protected Mode Memory addressing By DHEERAJ KATARIADheeraj Kataria
Β 
Architecture of 8086 Microprocessor
Architecture of 8086 Microprocessor  Architecture of 8086 Microprocessor
Architecture of 8086 Microprocessor Mustapha Fatty
Β 

Viewers also liked (20)

Memory mgmt 80386
Memory mgmt 80386Memory mgmt 80386
Memory mgmt 80386
Β 
1326 Introduction To 8086 Microprocessor
1326 Introduction To 8086 Microprocessor1326 Introduction To 8086 Microprocessor
1326 Introduction To 8086 Microprocessor
Β 
Segments
SegmentsSegments
Segments
Β 
Protection 80386
Protection 80386Protection 80386
Protection 80386
Β 
Protection mode
Protection modeProtection mode
Protection mode
Β 
Paging and Segmentation in Operating System
Paging and Segmentation in Operating SystemPaging and Segmentation in Operating System
Paging and Segmentation in Operating System
Β 
Memory
MemoryMemory
Memory
Β 
ppt on Segmentation in operationg system
ppt on Segmentation in operationg systemppt on Segmentation in operationg system
ppt on Segmentation in operationg system
Β 
Memory segmentations
Memory  segmentations Memory  segmentations
Memory segmentations
Β 
Instruction set-of-8086
Instruction set-of-8086Instruction set-of-8086
Instruction set-of-8086
Β 
Why the Address Translation Scheme Matters?
Why the Address Translation Scheme Matters?Why the Address Translation Scheme Matters?
Why the Address Translation Scheme Matters?
Β 
DAT Education
DAT EducationDAT Education
DAT Education
Β 
Register Organisation of 8086 Microprocessor
Register Organisation of 8086 MicroprocessorRegister Organisation of 8086 Microprocessor
Register Organisation of 8086 Microprocessor
Β 
Address translation-mechanism-of-80386 by aniket bhute
Address translation-mechanism-of-80386 by aniket bhuteAddress translation-mechanism-of-80386 by aniket bhute
Address translation-mechanism-of-80386 by aniket bhute
Β 
Introduction to 80386 microprocessor
Introduction to 80386 microprocessorIntroduction to 80386 microprocessor
Introduction to 80386 microprocessor
Β 
Memory & the fetch decode-execute cycle
Memory & the fetch decode-execute cycleMemory & the fetch decode-execute cycle
Memory & the fetch decode-execute cycle
Β 
80386 Architecture
80386 Architecture80386 Architecture
80386 Architecture
Β 
Operating Systems - memory management
Operating Systems - memory managementOperating Systems - memory management
Operating Systems - memory management
Β 
Microprocessor Protected Mode Memory addressing By DHEERAJ KATARIA
Microprocessor Protected Mode Memory addressing By DHEERAJ KATARIAMicroprocessor Protected Mode Memory addressing By DHEERAJ KATARIA
Microprocessor Protected Mode Memory addressing By DHEERAJ KATARIA
Β 
Architecture of 8086 Microprocessor
Architecture of 8086 Microprocessor  Architecture of 8086 Microprocessor
Architecture of 8086 Microprocessor
Β 

Similar to Memory segmentation-of-8086

Lecture 9 examples (1)
Lecture 9 examples (1)Lecture 9 examples (1)
Lecture 9 examples (1)talhashahid40
Β 
Chapter 1 archietecture of 8086
Chapter 1 archietecture of 8086Chapter 1 archietecture of 8086
Chapter 1 archietecture of 8086SHREEHARI WADAWADAGI
Β 
introduction to Architecture of 8086 and it's application
introduction to Architecture of 8086 and it's applicationintroduction to Architecture of 8086 and it's application
introduction to Architecture of 8086 and it's applicationDrVikasMahor
Β 
Microprocessor.pdf
Microprocessor.pdfMicroprocessor.pdf
Microprocessor.pdfpradipsaha77
Β 
Lect 8 updated (1)
Lect 8 updated (1)Lect 8 updated (1)
Lect 8 updated (1)talhashahid40
Β 
8086 lectures
8086 lectures8086 lectures
8086 lecturessekhar031
Β 
3 organization of intel 8086
3 organization of intel 80863 organization of intel 8086
3 organization of intel 8086ELIMENG
Β 
Lecture 28 , 29 & 30(instruction set & addressing mode of 8086.pptx
Lecture 28 , 29 & 30(instruction set & addressing mode of 8086.pptxLecture 28 , 29 & 30(instruction set & addressing mode of 8086.pptx
Lecture 28 , 29 & 30(instruction set & addressing mode of 8086.pptxVikasMahor3
Β 
Microprocessor if deptt- 17th september 2021 (2)
Microprocessor if deptt- 17th september 2021 (2)Microprocessor if deptt- 17th september 2021 (2)
Microprocessor if deptt- 17th september 2021 (2)AISSMS
Β 
SAURABH MITRA-8086 MICROPROCESSOR
SAURABH MITRA-8086 MICROPROCESSORSAURABH MITRA-8086 MICROPROCESSOR
SAURABH MITRA-8086 MICROPROCESSORSAURABH MITRA
Β 
8086 PPt-2021.pptx
8086 PPt-2021.pptx8086 PPt-2021.pptx
8086 PPt-2021.pptxAnshuGangwar21
Β 
Unit IV 8086 complete ppt, architecture and instruction set.pptx
Unit IV 8086 complete ppt, architecture and instruction set.pptxUnit IV 8086 complete ppt, architecture and instruction set.pptx
Unit IV 8086 complete ppt, architecture and instruction set.pptxDrVikasMahor
Β 
Assembly_Language _Programming_UNIT.pptx
Assembly_Language _Programming_UNIT.pptxAssembly_Language _Programming_UNIT.pptx
Assembly_Language _Programming_UNIT.pptxVickyThakur61
Β 
microprocessor Lec 02 mic
microprocessor Lec 02 micmicroprocessor Lec 02 mic
microprocessor Lec 02 miciqbal ahmad
Β 
physical_address segmentation.pdf
physical_address segmentation.pdfphysical_address segmentation.pdf
physical_address segmentation.pdfSwapnil511014
Β 

Similar to Memory segmentation-of-8086 (20)

Lecture 9 examples (1)
Lecture 9 examples (1)Lecture 9 examples (1)
Lecture 9 examples (1)
Β 
Chapter 1 archietecture of 8086
Chapter 1 archietecture of 8086Chapter 1 archietecture of 8086
Chapter 1 archietecture of 8086
Β 
Unit 1
Unit 1Unit 1
Unit 1
Β 
introduction to Architecture of 8086 and it's application
introduction to Architecture of 8086 and it's applicationintroduction to Architecture of 8086 and it's application
introduction to Architecture of 8086 and it's application
Β 
Microprocessor.pdf
Microprocessor.pdfMicroprocessor.pdf
Microprocessor.pdf
Β 
Lect 8 updated (1)
Lect 8 updated (1)Lect 8 updated (1)
Lect 8 updated (1)
Β 
[ASM] Lab2
[ASM] Lab2[ASM] Lab2
[ASM] Lab2
Β 
8086 microprocessor
8086 microprocessor8086 microprocessor
8086 microprocessor
Β 
8086 lectures
8086 lectures8086 lectures
8086 lectures
Β 
8086 lectures
8086 lectures8086 lectures
8086 lectures
Β 
3 organization of intel 8086
3 organization of intel 80863 organization of intel 8086
3 organization of intel 8086
Β 
Lecture 28 , 29 & 30(instruction set & addressing mode of 8086.pptx
Lecture 28 , 29 & 30(instruction set & addressing mode of 8086.pptxLecture 28 , 29 & 30(instruction set & addressing mode of 8086.pptx
Lecture 28 , 29 & 30(instruction set & addressing mode of 8086.pptx
Β 
Microprocessor if deptt- 17th september 2021 (2)
Microprocessor if deptt- 17th september 2021 (2)Microprocessor if deptt- 17th september 2021 (2)
Microprocessor if deptt- 17th september 2021 (2)
Β 
SAURABH MITRA-8086 MICROPROCESSOR
SAURABH MITRA-8086 MICROPROCESSORSAURABH MITRA-8086 MICROPROCESSOR
SAURABH MITRA-8086 MICROPROCESSOR
Β 
8086 PPt-2021.pptx
8086 PPt-2021.pptx8086 PPt-2021.pptx
8086 PPt-2021.pptx
Β 
Unit IV 8086 complete ppt, architecture and instruction set.pptx
Unit IV 8086 complete ppt, architecture and instruction set.pptxUnit IV 8086 complete ppt, architecture and instruction set.pptx
Unit IV 8086 complete ppt, architecture and instruction set.pptx
Β 
Assembly_Language _Programming_UNIT.pptx
Assembly_Language _Programming_UNIT.pptxAssembly_Language _Programming_UNIT.pptx
Assembly_Language _Programming_UNIT.pptx
Β 
lec 2.pptx
lec 2.pptxlec 2.pptx
lec 2.pptx
Β 
microprocessor Lec 02 mic
microprocessor Lec 02 micmicroprocessor Lec 02 mic
microprocessor Lec 02 mic
Β 
physical_address segmentation.pdf
physical_address segmentation.pdfphysical_address segmentation.pdf
physical_address segmentation.pdf
Β 

Recently uploaded

Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
Β 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
Β 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
Β 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
Β 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
Β 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
Β 
Model Call Girl in Narela Delhi reach out to us at πŸ”8264348440πŸ”
Model Call Girl in Narela Delhi reach out to us at πŸ”8264348440πŸ”Model Call Girl in Narela Delhi reach out to us at πŸ”8264348440πŸ”
Model Call Girl in Narela Delhi reach out to us at πŸ”8264348440πŸ”soniya singh
Β 
Analog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAnalog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAbhinavSharma374939
Β 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
Β 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxpranjaldaimarysona
Β 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...ranjana rawat
Β 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
Β 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
Β 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...srsj9000
Β 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
Β 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
Β 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
Β 

Recently uploaded (20)

Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Β 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
Β 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
Β 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Β 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
Β 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
Β 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
Β 
Model Call Girl in Narela Delhi reach out to us at πŸ”8264348440πŸ”
Model Call Girl in Narela Delhi reach out to us at πŸ”8264348440πŸ”Model Call Girl in Narela Delhi reach out to us at πŸ”8264348440πŸ”
Model Call Girl in Narela Delhi reach out to us at πŸ”8264348440πŸ”
Β 
Analog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAnalog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog Converter
Β 
β˜… CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
β˜… CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCRβ˜… CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
β˜… CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
Β 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
Β 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
Β 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
Β 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
Β 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
Β 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Β 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
Β 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
Β 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
Β 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
Β 

Memory segmentation-of-8086

  • 2. Memory Segmentation ο‚ž The total memory size is divided into segments of various sizes. ο‚ž A segment is just an area in memory. ο‚ž The process of dividing memory this way is called Segmentation. 6 Oct. 2010 2www.eazynotes.com
  • 3. Memory Segmentation ο‚ž In memory, data is stored as bytes. ο‚ž Each byte has a specific address. ο‚ž Intel 8086 has 20 lines address bus. ο‚ž With 20 address lines, the memory that can be addressed is 220 bytes. ο‚ž 220 = 1,048,576 bytes (1 MB). ο‚ž 8086 can access memory with address ranging from 00000 H to FFFFF H. 6 Oct. 2010 3www.eazynotes.com
  • 4. Memory Segmentation ο‚ž In 8086, memory has four different types of segments. ο‚ž These are: ο‚— Code Segment ο‚— Data Segment ο‚— Stack Segment ο‚— Extra Segment 6 Oct. 2010 4www.eazynotes.com
  • 5. Segment Registers ο‚ž Each of these segments are addressed by an address stored in corresponding segment register. ο‚ž These registers are 16-bit in size. ο‚ž Each register stores the base address (starting address) of the corresponding segment. ο‚ž Because the segment registers cannot store 20 bits, they only store the upper 16 bits. 6 Oct. 2010 5www.eazynotes.com
  • 6. Segment Registers 6 Oct. 2010 6www.eazynotes.com
  • 7. Segment Registers ο‚ž How is a 20-bit address obtained if there are only 16- bit registers? ο‚ž The answer lies in the next few slides. ο‚ž The 20-bit address of a byte is called its Physical Address. ο‚ž But, it is specified as a Logical Address. ο‚ž Logical address is in the form of: Base Address : Offset ο‚ž Offset is the displacement of the memory location from the starting location of the segment. 6 Oct. 2010 7www.eazynotes.com
  • 8. Example ο‚ž The value of Data Segment Register (DS) is 2222 H. ο‚ž To convert this 16-bit address into 20-bit, the BIU appends 0H to the LSBs of the address. ο‚ž After appending, the starting address of the Data Segment becomes 22220H. 6 Oct. 2010 8www.eazynotes.com
  • 9. Example (Contd.) ο‚ž If the data at any location has a logical address specified as: 2222 H : 0016 H ο‚ž Then, the number 0016 H is the offset. ο‚ž 2222 H is the value of DS. 6 Oct. 2010 9www.eazynotes.com
  • 10. Example (Contd.) ο‚ž To calculate the effective address of the memory, BIU uses the following formula: ο‚ž Effective Address = Starting Address of Segment + Offset ο‚ž To find the starting address of the segment, BIU appends the contents of Segment Register with 0H. ο‚ž Then, it adds offset to it. 6 Oct. 2010 10www.eazynotes.com
  • 11. Example (Contd.) ο‚ž Therefore: ο‚ž EA = 22220 H + 0016 H ------------ 22236 H 6 Oct. 2010 11www.eazynotes.com
  • 12. Example (Contd.) 6 Oct. 2010 12www.eazynotes.com BYTE – 0 BYTE – 1 BYTE – 2 - - - - - Addressed Byte 2222 H DS Register 22220 H Offset = 0016 H 22236 H
  • 13. Max. Size of Segment ο‚ž All offsets are limited to 16-bits. ο‚ž It means that the maximum size possible for segment is 216 = 65,535 bytes (64 KB). ο‚ž The offset of the first location within the segment is 0000 H. ο‚ž The offset of the last location in the segment is FFFF H. 6 Oct. 2010 13www.eazynotes.com
  • 14. Where to Look for the Offset Segment Offset Registers Function CS IP Address of the next instruction DS BX, DI, SI Address of data SS SP, BP Address in the stack ES BX, DI, SI Address of destination data (for string operations) 6 Oct. 2010 14www.eazynotes.com
  • 15. Question ο‚ž The contents of the following registers are: ο‚ž CS = 1111 H ο‚ž DS = 3333 H ο‚ž SS = 2526 H ο‚ž IP = 1232 H ο‚ž SP = 1100 H ο‚ž DI = 0020 H ο‚ž Calculate the corresponding physical addresses for the address bytes in CS, DS and SS. 6 Oct. 2010 15www.eazynotes.com
  • 16. Solution 1. CS = 1111 H ο‚ž The base address of the code segment is 11110 H. ο‚ž Effective address of memory is given by 11110H + 1232H = 12342H. 2. DS = 3333 H ο‚ž The base address of the data segment is 33330 H. ο‚ž Effective address of memory is given by 33330H + 0020H = 33350H. 3. SS = 2526 H ο‚ž The base address of the stack segment is 25260 H. ο‚ž Effective address of memory is given by 25260H + 1100H = 26350H. 6 Oct. 2010 16www.eazynotes.com
  • 17. 17