Judul Mata Kuliah Judul Pokok Bahasan 1/total Data Movement Instructions.

Slides:



Advertisements
Similar presentations
Chapter 12: Interrupts. Copyright ©2009 by Pearson Education, Inc. Upper Saddle River, New Jersey All rights reserved. The Intel Microprocessors:
Advertisements

Chapter 11: Basic I/O Interface – Part 1. Copyright ©2009 by Pearson Education, Inc. Upper Saddle River, New Jersey All rights reserved. The Intel.
Copyright ©2009 by Pearson Education, Inc. Upper Saddle River, New Jersey All rights reserved. The Intel Microprocessors: 8086/8088, 80186/80188,
Copyright ©2009 by Pearson Education, Inc. Upper Saddle River, New Jersey All rights reserved. The Intel Microprocessors: 8086/8088, 80186/80188,
Intel 8086.
0 - 0.
Addition Facts
Princess Sumaya Univ. Computer Engineering Dept. Chapter 9:
8086 Ahad.
Figure 12–1 Basic computer block diagram.
Addressing Mode Wannachai Wannasawade Department of Computer Education
O PERATING I N R EAL M ODE Prof.P.C.Patil Department of Computer Engg Matoshri College of Engg.Nasik M ICROPROCESSOR A RCHITECTURE.
Block Diagram of Intel 8086 Engr.M.Zakir Shaikh
Addition 1’s to 20.
Programming 8086 – Part IV Stacks, Macros
Week 1.
Judul Mata Kuliah Judul Pokok Bahasan Set Instruksi dan Format Intruksi.
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.
Registers of the 8086/ /2002 JNM.
Chapter 2 (cont.) An Introduction to the 80x86 Microprocessor Family Objectives: The different addressing modes and instruction types available The usefulness.
Judul Mata Kuliah Judul Pokok Bahasan 1/total Direct Memory Access (DMA) & Interfacing.
Judul Mata Kuliah Judul Pokok Bahasan 1/total Data Movement Instructions.
Lect 3: Instruction Set and Addressing Modes. 386 Instruction Set (3.4) –Basic Instruction Set : 8086/8088 instruction set –Extended Instruction Set :
8-1 ECE 424 Design of Microprocessor-Based Systems Haibo Wang ECE Department Southern Illinois University Carbondale, IL x86 Instructions Part.
© 2006 Pearson Education, Upper Saddle River, NJ All Rights Reserved.Brey: The Intel Microprocessors, 7e Chapter 4 Data Movement Instructions by.
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.
Microcomputer & Interfacing Lecture 3
Topic – string – Ch. 11 [Marut] Ch. 4 [Brey] String Data Transfer Instructions – The Direction Flag – LODS Instructions – STOS Instructions – MOVS Instructions.
Riyadh Philanthropic Society For Science Prince Sultan College For Woman Dept. of Computer & Information Sciences CS 251 Introduction to Computer Organization.
Lect 4: Instruction Set and Addressing Modes. 386 Instruction Set (3.4)  Basic Instruction Set : 8086/8088 instruction set  Extended Instruction Set.
The Pentium Processor Chapter 3 S. Dandamudi To be used with S. Dandamudi, “Introduction to Assembly Language Programming,” Second Edition, Springer,
The Pentium Processor Chapter 3 S. Dandamudi.
3.7 String Instructions Specifying the Operands’ Size and Address and the String Direction STRING = a data collection in memory. String ELEMENTS can be:
ICS312 Lecture13 String Instructions.
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.
Addressing Modes of 8086 Processor Ammar Anwar Khan Electrical Engineer King Saud University Riyadh Saudi Arabia.
String Instructions String instructions were designed to operate on large data structures. The SI and DI registers are used as pointers to the data structures.
String Processing Chapter 10 S. Dandamudi To be used with S. Dandamudi, “Introduction to Assembly Language Programming,” Second Edition, Springer,
Khaled A. Al-Utaibi  I/O Ports  I/O Space VS Memory Space  80x86 I/O Instructions − Direct I/O Instructions − Indirect I/O Instructions.
String Instructions String instructions were designed to operate on large data structures. The SI and DI registers are used as pointers to the data structures.
MOV Instruction MOV destination,source  MOV AX,BX  MOV SUM,EAX  MOV EDX,ARRAY[EBX][ESI]  MOV CL,5  MOV DL,[BX]
Assembly Language Data Movement Instructions. MOV Instruction Move source operand to destination mov destination, source The source and destination are.
Khaled A. Al-Utaibi  Introduction  The MOV Instruction  The LEA Instruction  The Stack Instructions  The String Data Transfer.
Internal Programming Architecture or Model
Lecture 6 Presented By Dr. Shazzad Hosain Asst. Prof. EECS, NSU.
I NTEL 8086 M icroprocessor بسم الله الرحمن الرحيم 1.
Microprocessors CSE- 341 Dr. Jia Uddin Assistant Professor, CSE, BRAC University Dr. Jia Uddin, CSE, BRAC University.
Introduction to 8086 Microprocessor
Computer Organization & Assembly Language Chapter 3
ADDRESSING MODES.
Chapter 4 Data Movement Instructions
EE3541 Introduction to Microprocessors
ADDRESSING MODES.
University of Gujrat Department of Computer Science
Chapter 3 Addressing Modes
Symbolic Instruction and Addressing
3.6 Data transfer Instructions
University of Gujrat Department of Computer Science
8086 MICROPROCESSOR PROGRAMMING – INTEGER INSTRUCTIONS AND COMPUTATIONS Amar Saraswat.
Chapter 4 Data Movement Instructions
8086 Registers Module M14.2 Sections 9.2, 10.1.
Morgan Kaufmann Publishers Computer Organization and Assembly Language
32-bit instruction mode(80386-Pentium 4 only)
Symbolic Instruction and Addressing
The Microprocessor & Its Architecture
Symbolic Instruction and Addressing
T opic: S TRING I NSTRUCTION P RESENTED B Y: N OOR FATIMA M AHA AKRAM ASIF.
Computer Architecture CST 250
Data Movement Instructions
Chapter 6 –Symbolic Instruction and Addressing
Presentation transcript:

Judul Mata Kuliah Judul Pokok Bahasan 1/total Data Movement Instructions

Judul Mata Kuliah Judul Pokok Bahasan 2/total Load-Effective Address There are several LEA instructions in  p –Table 4.9 lists the LEA instructions4.9 LEA –The LEA instruction loads a 16- or 32- bit register with the offset address of the data specified by the operand –E.g., LEA AX,NUMB –Compare: LEA BX,[DI] & MOV BX,[DI] –Understand Example

Judul Mata Kuliah Judul Pokok Bahasan 3/total Load-Effective Address (cont’d) LDS, LES, LFS, LGS, LSS –The LDS, LES, LFS, LGS, LSS instructions load any 16- or 32-bit register with an offset address and load the DS, ES, FS, GS, or SS segment register with a segment address –Fig illustrates an example LDS, BX,[DI] instruction4.15 this instruction transfers the 32- bit number, address-ed by DI in the data segment, into the BX and DS registers Study Example

Judul Mata Kuliah Judul Pokok Bahasan 4/total String Data Transfers There are 5 string data transfer instructions: LODS, STOS, MOVS, INS, and OUTS The Direction Flag –The direction flag (D) -located in the flag register- selects the auto-increment (D=O) or the auto-decrement (D=1) operation for the DI and SI registers during string operations –The CLD instruction clears the D flag (D=0), and the STD instruction sets it (D=1)

Judul Mata Kuliah Judul Pokok Bahasan 5/total String Data Transfers (cont’d) DI and SI –The DI offset address accesses data in the extra segment for all string instructions that use it –The SI offset address accesses data, by default, in the data segment LODS –The LODS instruction loads AL, AX, or EAX with data stored at the data segment offset address indexed by the SI register (Table 4.10) 4.10

Judul Mata Kuliah Judul Pokok Bahasan 6/total String Data Transfers (cont’d) –Fig.4.16 shows the effect of executing the LODSW instruction if the D flag=0, SI=1000H, and DS=1000H4.16 STOS –The STOS instruction stores AL, AX, or EAX at the extra segment memory location addressed by the DI register –Table 4.11 lists all forms of STOS instructions4.11 –The STOSB (stores a byte), STOSW (stores a word) and STOSD (stores a doubleword)

Judul Mata Kuliah Judul Pokok Bahasan 7/total String Data Transfers (cont’d) –In example 4.5 STOSW instruction is used to clear the video text display4.5 MOVS –MOVS instruction transfers data (either byte, word or doubleword) from one memory loca-tion to another (Table 4.13)4.13 –MOVS transfers data from the data segment location addressed by SI to the extra segment location addressed by DI –Example 4.6 lists a short program that uses MOVS4.6

Judul Mata Kuliah Judul Pokok Bahasan 8/total String Data Transfers (cont’d) INS –The INS (input string) instruction transfers data from an I/O device into extra segment memory location addressed by the DI register –The I/O address is contained in the DX register –See Table 4.14 and Study example OUTS –The OUTS (output string) transfers data from the data segment location addressed by SI to an I/O device (addressed by DX) -- Table 4.15 & Example

Judul Mata Kuliah Judul Pokok Bahasan 9/total

Judul Mata Kuliah Judul Pokok Bahasan 10/total

Judul Mata Kuliah Judul Pokok Bahasan 11/total

Judul Mata Kuliah Judul Pokok Bahasan 12/total

Judul Mata Kuliah Judul Pokok Bahasan 13/total

Judul Mata Kuliah Judul Pokok Bahasan 14/total

Judul Mata Kuliah Judul Pokok Bahasan 15/total

Judul Mata Kuliah Judul Pokok Bahasan 16/total

Judul Mata Kuliah Judul Pokok Bahasan 17/total

Judul Mata Kuliah Judul Pokok Bahasan 18/total

Judul Mata Kuliah Judul Pokok Bahasan 19/total Referensi Brey, Barry, B., The Intel Microprocessors 8086/8088, 80186/80188, 80286, 80386, 80486, Pentium, and Pentium ProProcessor Architecture, Programming, and Interfacing, Fourth Edition, PHI Inc, USA, and Five Edition, 2003 Brey, Barry, B., 8086/8088, 80286, 80386, and Assembly Language, Programming, Macmillan Publising Company, USA, Leventhal L.A., Introduction to Microprocessor : Software, Hardware, Programming, Phi Inc., Hall D.V., Microprocessor Interfacing : Programming and Hardware, McGraw-Hill, Singapore, Ananta, C., William JB., Frank Fox, Design of High- performance microprocessor circuit, IEEE Press, 2001 Douglas V. Hall, Microprocessor and Interfacing: Programming and Hardware, McGraw-Hill, edition 2, 1991 James A., Kenneth CM, Microcomputer Hardware, Software, and Troubleshooting for Engineering and Technology, Prentice Hall,