Computer Organization & Assembly Language Chapter 3

Slides:



Advertisements
Similar presentations
Intel 8086.
Advertisements

Register In computer architecture, a processor register is a small amount of storage available on the CPU whose contents can be accessed more quickly than.
There are two types of addressing schemes:
MICROPROCESSORS TWO TYPES OF MODELS ARE USED :  PROGRAMMER’S MODEL :- THIS MODEL SHOWS FEATURES, SUCH AS INTERNAL REGISTERS, ADDRESS,DATA & CONTROL BUSES.
Parul Polytechnic Institute
CEN 226: Computer Organization & Assembly Language :CSC 225 (Lec#3) By Dr. Syed Noman.
Azir ALIU 1 What is an assembly language?. Azir ALIU 2 Inside the CPU.
1 Hardware and Software Architecture Chapter 2 n The Intel Processor Architecture n History of PC Memory Usage (Real Mode)
ICS312 Set 3 Pentium Registers. Intel 8086 Family of Microprocessors All of the Intel chips from the 8086 to the latest pentium, have similar architectures.
Gursharan Singh Tatla Block Diagram of Intel 8086 Gursharan Singh Tatla 19-Apr-17.
Unit-1 PREPARED BY: PROF. HARISH I RATHOD COMPUTER ENGINEERING DEPARTMENT GUJARAT POWER ENGINEERING & RESEARCH INSTITUTE Advance Processor.
Riyadh Philanthropic Society For Science Prince Sultan College For Woman Dept. of Computer & Information Sciences CS 251 Introduction to Computer Organization.
The 8086 Microprocessor The 8086, announced in 1978, was the first 16-bit microprocessor introduced by Intel Corporation 8086 is 16-bit MPU. Externally.
An Introduction to 8086 Microprocessor.
1 Fundamental of Computer Suthida Chaichomchuen : SCC
Types of Registers (8086 Microprocessor Based)
INSTRUCTION SET AND ASSEMBLY LANGUAGE PROGRAMMING
UHD:CS2401: A. Berrached1 The Intel x86 Hardware Organization.
Microprocessor Microprocessor (cont..) It is a 16 bit μp has a 20 bit address bus can access upto 220 memory locations ( 1 MB). It can support.
Chapter 2 Parts of a Computer System. 2.1 PC Hardware: Memory.
Block diagram of 8086.
Intel 8086 (8088) Microprocessor Structure
University of Sargodha, Lahore Campus Prepared by Ali Saeed.
MODULE 5 INTEL TODAY WE ARE GOING TO DISCUSS ABOUT, FEATURES OF 8086 LOGICAL PIN DIAGRAM INTERNAL ARCHITECTURE REGISTERS AND FLAGS OPERATING MODES.
Microprocessor Fundamentals Week 2 Mount Druitt College of TAFE Dept. Electrical Engineering 2008.
Internal Programming Architecture or Model
1 x86 Programming Model Microprocessor Computer Architectures Lab Components of any Computer System Control – logic that controls fetching/execution of.
Week 6 Dr. Muhammad Ayaz Intro. to Assembly Language.
Computer Organization & Assembly Language University of Sargodha, Lahore Campus Prepared by Ali Saeed.
I NTEL 8086 M icroprocessor بسم الله الرحمن الرحيم 1.
ΜComputer Structure μProcessor Memory Bus System I/O Ports.
Chapter 12 Processor Structure and Function. Central Processing Unit CPU architecture, Register organization, Instruction formats and addressing modes(Intel.
Chapter Objectives In this chapter, you will learn:
Homework Reading Lab with your assigned section starts next week
Format of Assembly language
An Introduction to 8086 Microprocessor.
Part of the Assembler Language Programmers Toolbox
Microprocessor and Assembly Language
History – 2 Intel 8086.
UNIT Architecture M.Brindha AP/EIE
Chapter 7.2 Computer Architecture
Introduction to 8086 Microprocessor
8086 Microprocessor.
Introduction of microprocessor
Intel 8086 MICROPROCESSOR Architecture.
University of Gujrat Department of Computer Science
Intel 8088 (8086) Microprocessor Structure
CNET 315 Microprocessor & Assembly Language
Homework Reading Continue work on mp1
Defining Types of data expression Dn [name] expression Dn [name]
Symbolic Instruction and Addressing
Introduction to Assembly Language
BIC 10503: COMPUTER ARCHITECTURE
University of Gujrat Department of Computer Science
Microprocessor & Assembly Language
Intel 8088 (8086) Microprocessor Structure
8086 Registers Module M14.2 Sections 9.2, 10.1.
Morgan Kaufmann Publishers Computer Organization and Assembly Language
Symbolic Instruction and Addressing
CS 301 Fall 2002 Computer Organization
Symbolic Instruction and Addressing
Lecture 06 Programming language.
Computer Architecture CST 250
Unit-I 80386DX Architecture
Chapter 6 –Symbolic Instruction and Addressing
Process.
Intel 8086.
Computer components is a programmable machine that receives input, stores and manipulates data, and provides output in a useful format. Computer The computer.
Part I Data Representation and 8086 Microprocessors
Microprocessor Lecture 7 (8086 Registers).
Presentation transcript:

Computer Organization & Assembly Language Chapter 3

The 8086 and 8088 Microprocessors: Intel introduced the 8086 in 1978 as its first 16-bit microprocessor. A 16-bit processor can operate on 16 bits of data at a time. Internally the 8086 and 8088 essentially have the same internal structure, the name “8086” applies to both 8086 and 8088. Externally, the 8086 has an 16-bit data bus. While the 8088 has an 8-bit data bus.

Registers: General-Purpose Registers Data registers are available to programmers for general data manipulation. Even though a processor can operate on data stored in memory, the same instruction is faster (requires fewer clock cycles) if the data are stored in registers. The high and low bytes of data registers can be accessed separately.

General Purpose: AX BX CX DX

AX (Accumulator Register): AX is the preferred register to use in arithmetic, logic, and data transfer instructions because its use generates the shortest machine code. In multiplication and division operations, one of the numbers involved must be in AX or AL. Divided into AH / AL Input and output operations also require the use of AL and AX.

Registers (16-bit) General Purpose 16-bit AX AH AL 8-bit 8-bit

BX (Base Register): BX also serves as an address register.

Registers (16-bit) General Purpose 16-bit CX - the count register BX BH BL 8-bit 8-bit

CX (Count Register): Program loop constructions are facilitated by the use of CX, which serves as a loop counter. CL is used as a count in instructions that shift and rotate bits. Iterative code segments using the LOOP instruction

DX (Data Register): DX is used in multiplication and division. DX is also used in I/O operations.

Registers General Purpose AX A Accumulator Register BX B Base Register CX C Counter Register DX D Destination Register

Segmentation: It is the process in which the main memory of computer is divided into different segments and each segment has its own base address. Segmentation is used to increase the execution speed of computer system so that processor can able to fetch and execute the data from memory easily and fastly.

 Segmentation in 8086 The size of address bus of 8086 is 20 and is able to address 1 Mbytes ( ) of physical memory. The compete 1 Mbytes memory can be divided into 16 segments, each of 64 Kbytes size. The addresses of the segment may be assigned as 0000H to F000H respectively. The offset values are from 0000H to FFFFFH.

Segment Registers: Address Registers Segment registers store addresses of instructions and data in memory. These values are used by a processor to access memory location. The idea of memory segments is a direct consequence of using a 20-bit address in a 16-bit processor.

Pointer / Index / Base: SP, BP, SI, and DI normally point to (contain the offset addresses of) memory locations. Unlike segment registers, pointer and index registers can be used in arithmetic and other operations.

88 Registers (16-bit) Pointer / Index / Base SI SI Source Index DI DI Destination Index IP IP Instruction Pointer SP SP Stack Pointer BP BP Base Pointer

SP (Stack Pointer): SP is used in conjunction with SS for accessing the stack segment.

BP (Base Pointer): BP is used primarily to access data on the stack. Unlike SP, we can also use BP to access data in the other segments.

SI (Source Index): SI is used to point to memory locations in the data segment addressed by DS. By incrementing the contents of SI, we can easily access consecutive memory locations.

DI (Destination Index): DI performs the same functions as SI.

IP (Instruction Pointer): To access instructions, 8086 uses CS and IP. CS contains the segment number of the next instruction, and IP contains the offset. IP is updated each time an instruction is executed so that it will point to the next instruction. Unlike other registers, IP cannot be directly manipulated by an instruction; that is, an instruction may not contain IP as its operand.

Operating system: An operating system (OS) is system software that manages computer hardware and software resources and provides common services for computer programs. The operating system is a component of the system software in a computer system. Application programs usually require an operating system to function.

OS Function: Reading and executing commands typed by the user :   Recognizing input from the keyboard, sending output to the display screen. Perform I/O operations: Controlling peripheral devices such as disk drives and printers. Generating Error message: Managing memory and other resources; It makes sure that different programs and users running at the same time do not interfere with each other. 

Example: DOS LINUX SOLARIS MAC OS UNIX WINDOWS

DOS Stands for "Disk Operating System." DOS was the first operating system used by IBM-compatible computers. DOS was designed for 8086/8088. DOS uses a command line, or text-based interface, that allows the user to type commands. By typing simple instructions such as pwd (print working directory) and cd (change directory), the user can browse the files on the hard drive, open files, and run programs. While the commands are simple to type, the user must know the basic commands in order to use DOS effectively (similar to Unix). .

It can manage only IMB of memory so does not support multitasking. it can be use also in 80286/80386/80486 based machines when they are run in real mood. The first versions of Windows (through Windows 95) actually ran on top of the DOS operating system. This is why so many DOS-related files (such as .INI, .DLL, and .COM files) are still used by Windows. DOS is still included with Windows, but is run from the Windows operating system instead of the other way around. 

BIOS: When a Computer is switched on POST (Power on Self Test) operation is performed, which checks integrity of all components (CPU, Memory, I/O devices) of the system. If a component is found faulty , error message will be displayed. A chip called ROM - BIOS is read and executed. BIOS (Basic Input Output Services) information is a pre-written program that is permanently stored on ROM chip.  Other important functions perform by BIOS are circuit checking and loading of BIOS routines.