Introduction to Microprocessors Chapter 3. Programming Model (8086)  Shows the various internal registers that are accessible to the programmer.

Slides:



Advertisements
Similar presentations
Intel 8086.
Advertisements

Block Diagram of Intel 8086 Engr.M.Zakir Shaikh
Registers of the 8086/ /2002 JNM.
Introduction to 8086 Microprocessor
SOFTWARE ARCHITECTURE OF THE 8088 AND 8086 MICROPROCESSORS
Introduction to Microprocessor
Princess Sumaya Univ. Computer Engineering Dept. د. بســام كحـالــه Dr. Bassam Kahhaleh.
Princess Sumaya University
1 Hardware and Software Architecture Chapter 2 n The Intel Processor Architecture n History of PC Memory Usage (Real Mode)
1 ICS 51 Introductory Computer Organization Fall 2006 updated: Oct. 2, 2006.
3-1 ECE 424 Design of Microprocessor-Based Systems Haibo Wang ECE Department Southern Illinois University Carbondale, IL Intel 8088 (8086) Microprocessor.
8-1 ECE 424 Design of Microprocessor-Based Systems Haibo Wang ECE Department Southern Illinois University Carbondale, IL x86 Instructions Part.
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.
80x86 Processor Architecture
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.
Electrical Engineering Department Engineering College Prince Sattam bin Abdul Aziz University Text Book: - Triebel and Singh, "The 8088 and 8086 Microprocessors",
MICROPROCESSORS AND APPLICATIONS
1 Fundamental of Computer Suthida Chaichomchuen : SCC
MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR1 Addressing Mode.
Types of Registers (8086 Microprocessor Based)
Chapter 4 - Implementing Standard Program Structures in 8086 Assembly Language from Microprocessors and Interfacing by Douglas Hall.
LAB Flag Bits and Register
Lecture 4 ( Assembly Language).
Arithmetic Flags and Instructions
UHD:CS2401: A. Berrached1 The Intel x86 Hardware Organization.
Microprocessors used in Personal Computers. The Memory Map of a Personal Computers Transient Program Area (TPA): Holds the operating system (interrupt.
3.4 Addressing modes Specify the operand to be used. To generate an address, a segment register is used also. Immediate addressing: the operand is a number.
Microprocessor MA Rahim Khan Computer Engineering and Networks Department.
6-4 CPU-Registers, effective address General registers vs Segment registers Computer Studies (AL)
INTRODUCTION TO INTEL X-86 FAMILY
Internal Programming Architecture or Model
Intel 8086 MICROPROCESSOR ARCHITECTURE
Intel MP Organization. Registers - storage locations found inside the processor for temporary storage of data 1- Data Registers (16-bit) AX, BX, CX, DX.
SOFTWARE ARCHITECTURE OF THE 8088 AND 8086 MICROPROCESSORS
I NTEL 8086 M icroprocessor بسم الله الرحمن الرحيم 1.
PS02CINS02 Unit 1 Advanced Microprocessors. Comparison between 8085 and Size8-bit16-bit Address Bus and Memory16-bit/64kB20-bit/1MB Instruction.
Μ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.
Microprocessor Systems Design I
UNIT Architecture M.Brindha AP/EIE
Introduction to 8086 Microprocessor
8086 Microprocessor.
ADDRESSING MODES.
Microprocessor and Assembly Language
Intel 8086 MICROPROCESSOR Architecture.
The FLAGS Register An x bit means an unidentified value 9/12/2018
EE3541 Introduction to Microprocessors
Morgan Kaufmann Publishers Computer Organization and Assembly Language
Microprocessor and Assembly Language
Basic Microprocessor Architecture
ADDRESSING MODES.
Intel 8088 (8086) Microprocessor Structure
..
Basic of Computer Organization
Introduction to Assembly Language
Lecture 4 ( Assembly Language).
Flags Register & Jump Instruction
Intel 8088 (8086) Microprocessor Structure
CS-401 Computer Architecture & Assembly Language Programming
CS 301 Fall 2002 Computer Organization
University of Gujrat Department of Computer Science
The Microprocessor & Its Architecture
Lecture 06 Programming language.
Intel 8086.
Chapter 8: Instruction Set 8086 CPU Architecture
Part I Data Representation and 8086 Microprocessors
Presentation transcript:

Introduction to Microprocessors Chapter 3

Programming Model (8086)  Shows the various internal registers that are accessible to the programmer

General Purpose Registers

Data Registers

Pointer and Index Registers

Example  MOV AH,[SI]  Assume SI=1000  After executing program  AH = 26H

Status and Control Flags

Flags  Carry Flag (CF) - this flag is set to 1 when there is an unsigned overflow. For example when you add bytes (result is not in range ). When there is no overflow this flag is set to 0.  Parity Flag (PF) - this flag is set to 1 when there is even number of one bits in result, and to 0 when there is odd number of one bits.  Auxiliary Flag (AF) - set to 1 when there is an unsigned overflow for low nibble (4 bits).  Zero Flag (ZF) - set to 1 when result is zero. For non-zero result this flag is set to 0.  Sign Flag (SF) - set to 1 when result is negative. When result is positive it is set to 0. (This flag takes the value of the most significant bit.)  Trap Flag (TF) - Used for on-chip debugging. Processor operate in a single stepping mode.  Interrupt enable Flag (IF) - when this flag is set to 1 CPU reacts to interrupts from external devices.  Direction Flag (DF) - this flag is used by some instructions to process data chains, when this flag is set to 0 - the processing is done forward, when this flag is set to 1 the processing is done backward.  Overflow Flag (OF) - set to 1 when there is a signed overflow. For example, when you add bytes (result is not in range ).

Example  If AL=7F and instruction ADD AL,1 is given, the flags are (7F+1=80H)  CF=0  PF=0  AF=1  ZF=0  SF=1  OF=1

Memory Address Space and Organization Memory space of 8086 consists of 1,048,576 bytes or 524, bits words

Even addressed and odd-addressed banks IF 16-bit word begins at an odd address, 8086 will require two memory read or write cycles

Origin and Definition of a Segment  A segment is an area of memory that includes up to 64Kbytes and begins on an address divisible by 16 (such an address ends with an hex digit 0h or 0000b)  In the 8086/88, 64 K is assigned to each category  Code segment  Data segment  Stack Segment  Extra Segment

Advantages and disadvantages of Segmented Memory  One program can work on several different sets of data. This is done by reloading register DS to a new value.  Programs that reference logical addresses can be loaded and run anywhere in the memory: relocatable  Segmented memory introduces extra complexity in both hardware in that memory addresses require two registers.  They also require complexity in software in that programs are limited to the segment size  Programs greater than 64 KB can be run on 8086 but the software needed is more complex as it must switch to a new segment.  Protection among segments is provided.

Segment Registers

Logical and Physical Addresses

Example

16 bit Segment Register Assignments

Addressing Modes  When the 8086 executes an instruction, it performs the specified function  on data  These data, called operands,  May be a part of the instruction  May reside in one of the internal registers of the microprocessor  May be stored at an address in memory  Register Addressing Mode  MOV AX, BX  MOV AL,BH  Immediate Addressing Mode  MOV AL,15h  MOV AX,2550h  MOV CX,625

Direct Addressing Mode  A memory location is to be referenced  Ex: MOV CL,[20H] ; 8 bit transfer  Note the brackets around 20h  Ex2: MOV CX,[20H] ; 16 bit transfer

Example for Register Indirect Addressing

MOV instructions  MOV destination, source  8 bit moves  MOV CL,55h  MOV DL,CL  MOV BH,CL  16 bit moves  MOV CX,468Fh  MOV AX,CX  MOV BP,DI

MOV Instruction

MOV instruction

ADD Instruction

Data Segment