Organization of The IBM Personal Computer: Chapter-3
Organization of The IBM Personal Computer: Chapter-3
Personal Computer
Chapter-3
Prepared by~
Mohammad Samawat Ullah
Assistant Professor, Department of CS
AIUB
Email: [email protected]
Overview
• A brief survey of 8086 family
• IBM PC (8088)
• PC XT (8088)
• PC AT (80286)
• PS/1 (80286)
Both 8086 and 8088 have the same instruction set and it
forms the basic set of instruction for other
microprocessors in the family.
80186 and 80188 Microprocessors
80186 80188
• Real address:
In this mode, microprocessor behaves like 8086 and programs for 8086 can
be executed without modification.
Memory protection: Protects the memory used by one program from the
actions of another program.
80386SX
• The 386SX has essentially the same internal structure as
the 386, however, it has only a 16-bit data bus.
The 80486 and 80486SX
Microprocessor
• 80486 or 486 is another 32-bit microprocessor introduced in 1989.
• 486 is the fastest and most powerful microprocessor in the family
• 486 incorporates all the functions of the 386 with some other
supportive chips including 80387 numeric processor like 80387.
• 80387 numeric processor performs floating-point number
operations.
• An 8-KB cache memory serves as a fast memory area to buffer the
data coming from a slower memory unit.
• With numeric processor, cache memory and faster design, 486 is
three times faster than 386 running at the same clock speed.
80486SX
• The 486SX has essentially the same internal structure as the 486,
however, it does not have any floating point processor.
Organization of the
8086/8088 Microprocessor
*** The good news is, we DO NOT need to memorize them at all. it
8086 Registers
General Accumulator
Register Base
Counter
Data
Segment
Register
Pointer and
Index
Register
FLAGS
Register
AX: Accumulator Register
*** Address registers store addresses
and instructions and data in memory.
i.e. for a 64KB segment, the offset can be given as16-bit number.
4872h
======
Observations:
• The segments start at every 10h =16 bytes
X = 1256Ah-12560h
X = Ah
X = 000Ah
X = 1256Ah-12400h
X = 16Ah
X = 016Ah
Thus,
Segment = (75000h)/10h
Segment = 7500h
Task
Find the physical address of memory location
0A51:CD90h ?
A memory location has physical address
4A37Bh.Compute the offset if segment
number is 40FFh.
Compute the Segment if offset number is
123Bh.
Program Segments
• Machine language program consists instruction and data.
• Any program needs access for second data segment may use
Extra segment (ES).
Program Segments(Cont'd…)
• A memory segment does not necessarily
occupy the entire 64KB in a memory
segment.
• Programs segment of less than 64KB are
placed close together due to its overlapping
nature.
• At any given time, only four memories are
active and thus these four segments are
accessible.
• However, contents of memory segments
can be modified by a program to address
different segments.
• [Ref: Figure:3.3]
Pointer and Index
Registers
• The registers SP,BP,SI and DI usually point to
the memory locations.
• Registers contain the offset address of
Memory location
• Unlike segment registers Index registers can be
used in arithmetic and other operations.
Stack Pointer (SP)
• The stack pointer (SP) is used together with
SS to access the stack segment.
• The OS functions:
………
• The Only first 10 disjoint memory segments are used by DOS for loading
and running application programs.
• The memory sizes of 8086/8088 based PCs are given in terms of these
memory segments.
Researved E0000h
Researved D0000h
Researved C0000h
Video B0000h
Video A0000h
Application Program Area
DOS
• The BIOS routine first check for system and memory errors.
• BIOS routines then initialize the interrupt vectors and BIOS data
area.
• Finally, BIOS loads the operating system from the system disk.