CHAPTER#3 -Organization COMPUTER, Slides of Computer Vision

CHAPTER NUMBER 3 -Organization COMPUTER -of-IBM-PC

Typology: Slides

2018/2019

Uploaded on 10/31/2019

reenam-twj
reenam-twj 🇸🇦

5

(1)

1 document

1 / 22

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
1
Outline
1. The Intel 8086 Family of μprocessors
2. Organization of the 8088/8086 μprocessors
1. Registers
2. Data Registers
3. Segment Registers
4. Pointer and index registers
5. Instruction Pointer and Flags register
3. Organization of the PC
1. The operating System (OS)
2. I/O Port Address
3. Start-up Operation
Chapter 3
Organization of the IBM Personal Computer
CS 220: Computer Organization and
Assembly Language Programming S.KHABET
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16

Partial preview of the text

Download CHAPTER#3 -Organization COMPUTER and more Slides Computer Vision in PDF only on Docsity!

Outline 1.

The Intel 8086 Family of

μ

processors

Organization of the 8088/

μ

processors

Registers

Data Registers

Segment Registers

Pointer and index registers

Instruction Pointer and Flags register

Organization of the PC

The operating System (OS)

I/O Port Address

Start-up Operation

Chapter 3

Organization of the IBM Personal Computer

CS 220: Computer Organization and

Assembly Language Programming

S.KHABET

1. The Intel 8086 Family of

processors

†

8086 introduced by Intel in 1978.

†

Max CPU clock : 5 MHz to 10 MHz

†

8086 is 16-bit processor can operate on 16 bits of dataat a time.

†

8086/8088 have the simplest structure

†

8086/8088 have the same instruction set, it forms thebasic set of instructions for other Intel families.

†

8088 is used in PC.

2.1 The

processor 8086 : Registers (2/2)

2.2 The

processor 8086: Data registers (1/2)

†

4 general purpose Registers: AX, BX, CX, DX

†

Used for general data manipulation.

†

They are 16-bit registers that can also be used as two 8 bitregisters: „

Low (AL) and High (AH) bytes can be accessed separately

„

more registers to use when dealing with byte-size data.

†

In addition to being general-purpose registers, they performspecial functions

RegisterDesignation

Register Name

Function

AX

Accumulator Register

Used in Arithmetic and Logic operations

BX

Base register

Serves also as an address register

CX

Count Register

Program loop constructions

DX

Data Register

Used in multiplication and division. Alsoused in I/O operations.

2.3.The

processor 8086:

Segment Registers

Memory Segment †

Is a block of 2

16

(64) K Bytes consecutive memory bytes.

†

Each segment is identified by a 16-bit number called

segment

number

, starting with 0000 up to FFFFh. Segment registers

hold segment number.

†

Within a segment, a memory location is specified by givingan

offset

(16-bit). It is the number of bytes from the

beginning of the segment (

FFFFh).

2.3.The

processor 8086:

Segment Registers

Segment : Offset Address †

A memory location may be specified by a

segment number and

offset

logical address

„

Example: A4FB : 4872h

†

Offset

Is the distance from the beginning to a particular

location in the

segment.

†

Segment number

Defines the starting of the segment within

the memory space.

Segment

Offset

2.3.The

processor 8086:

Segment Registers

Location of Segments †

Segment 0: „

starts

at address 0000:

Æ

00000h

„

ends

at address 0000:FFFF

Æ

0FFFFh

†

Segment 1 „

starts

at address 0001:

Æ

00010h

„

ends

at address

0001:FFFF

Æ

1000Fh

Æ

Overlapping between segments

Location of Segments

†

The segments start every 10h = 16 bytes

(called Paragraph )

and the starting address of a segment always ends with a hexdigit 0.

†

Paragraph boundary

is an address divisible by 16.

†

Segments may overlap, the segment:offset form of an address isnot unique

2.3.The

processor 8086:

Segment Registers

2.3.The

processor 8086:

Segment Registers

Program Segments †

A typical machine language program consists of: „

Instructions ( CODES )

„

data

„

Stack: data structure used by the processor to implement procedure calls.

†

Codes , data , and stack are loaded into different memory segments „

Code segment CS :

holds segment number of the code

segment.

„

Data Segment DS

: holds segment number of the data

segment.

„

Extra Segment ES

: holds alternate segment number of the

data segment.

„

Stack Segment SS

: holds segment number of the stack

segment.

2.3.The

processor 8086:

Segment Registers

Program Segment †

A program segment can occupy less than 64 Kbytes.

†

Overlapping permits program segments that are less than 64 KBto be placed close together.

†

At any time, only those memory locations addressed by the four segment registers

are accessible;

Æ

only 4 memory segments are active. However, the contents of

a segment register can be modified by a program to addressdifferent segments.

2.5. Instruction Pointer and Flags Registers^ †

IP (Instruction pointer): „

Points to the next instruction.

IP

contains

the offset

„

Used with

CS

contains the

segment number

†

Flags Register: Bits specify status of CPU and information about the results of

the arithmetic operations.

3. Organization of the PC

†

A computer is made of: Hardware & software.Software controls the H/W operations.

†

The purpose of the OS is to coordinate theoperations of all the devices that make up thecomputer systems.

3.1. The Operating System (2/3)^ †

Very popular operating system for IBM PC is DiskOperating System (DOS).

†

DOS

manage only 1 M byte memory, does not

support multitasking.

†

DOS

is a collection of routines that coordinates the

operations of the computer. The routine that executesuser command is COMMAND.COM.

†

Information stored on disk is organized into

files

. A

file has a name and an optional extension.

†

System routines are stored in ROM. In the PC theyare called

BIOS

(Basic Input/Output System)

†

The

BIOS

routines are used to perform I/O operations.

†

DOS

routines operate over the entire PC family.

†

BIOS

routines are machine specific.

†

The compatibility of PC clones with the IBM PC

depends on how well their

BIOS

routines match those

of the IBM PC

†

The addresses of

BIOS

routines (interrupt vectors) are

placed in memory starting at 00000h.

3.1. The Operating System (3/3)