Princess Sumaya Univ. Computer Engineering Dept. Chapter 9:

Slides:



Advertisements
Similar presentations
Intel 8086.
Advertisements

Introduction to Computer Engineering by Richard E. Haskell Direct Addressing Module M18.1 Sections
Judul Mata Kuliah Judul Pokok Bahasan 1/total Data Movement Instructions.
Registers of the 8086/ /2002 JNM.
Princess Sumaya Univ. Computer Engineering Dept. Chapter 2: IT Students.
There are two types of addressing schemes:
Princess Sumaya Univ. Computer Engineering Dept. د. بســام كحـالــه Dr. Bassam Kahhaleh.
Princess Sumaya Univ. Computer Engineering Dept. Chapter 3: IT Students.
Gursharan Singh Tatla 21-Nov-20101www.eazynotes.com.
Princess Sumaya Univ. Computer Engineering Dept. Chapter 4:
8086 : INSTRUCTION SET By, Pramod Sunagar Assistant Professor
Princess Sumaya University
Introduction to Computer Engineering by Richard E. Haskell Register Indirect Addressing Module M18.2 Section 12.3.
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 5 Arithmetic and Logic Instructions.
Topic – string – Ch. 11 [Marut] Ch. 4 [Brey] String Data Transfer Instructions – The Direction Flag – LODS Instructions – STOS Instructions – MOVS Instructions.
Princess Sumaya Univ. Computer Engineering Dept. Chapter 2:
Lect 4: Instruction Set and Addressing Modes. 386 Instruction Set (3.4)  Basic Instruction Set : 8086/8088 instruction set  Extended Instruction Set.
Princess Sumaya Univ. Computer Engineering Dept. Chapter 3:
Princess Sumaya Univ. Computer Engineering Dept. Chapter 7:
Princess Sumaya Univ. Computer Engineering Dept. Chapter 6:
CEG 320/520: Computer Organization and Assembly Language ProgrammingIntel Assembly 1 Intel IA-32 vs Motorola
CDP ECE Spring 2000 ECE 291 Spring 2000 Lecture 7: More on Addressing Modes, Structures, and Stack Constantine D. Polychronopoulos Professor, ECE.
3.7 String Instructions Specifying the Operands’ Size and Address and the String Direction STRING = a data collection in memory. String ELEMENTS can be:
Chapter Four-- The 80x86 Instruction Set Principles of Microcomputers 2015年10月6日 2015年10月6日 2015年10月6日 2015年10月6日 2015年10月6日 2015年10月6日 1 Chapter Four.
String-Introduction String is a series of bytes or a series of words in sequential memory locations. Index registers - SI (Data segment) - DI (Extra segment)
ICS312 Lecture13 String Instructions.
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,
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.
Arrays. Outline 1.(Introduction) Arrays An array is a contiguous block of list of data in memory. Each element of the list must be the same type and use.
Riyadh Philanthropic Society For Science Prince Sultan College For Woman Dept. of Computer & Information Sciences CS 251 Introduction to Computer Organization.
Khaled A. Al-Utaibi  Introduction  The MOV Instruction  The LEA Instruction  The Stack Instructions  The String Data Transfer.
Lecture 11 Text mode video
Lecture 6 Presented By Dr. Shazzad Hosain Asst. Prof. EECS, NSU.
Chapter 8 String Operations. 8.1 Using String Instructions.
Microprocessors CSE- 341 Dr. Jia Uddin Assistant Professor, CSE, BRAC University Dr. Jia Uddin, CSE, BRAC University.
Chapter Nov-2010
Microprocessor Systems Design I
Assembly 07 String Processing.
BYTE AND STRING MANIPULATON
Chapter 9.
Chapter six of V4: The String Instructions
16.317: Microprocessor System Design I
Chapter 4 Data Movement Instructions
EE3541 Introduction to Microprocessors
INSTRUCTION SET.
INSTRUCTION SET.
ADDRESSING MODES.
University of Gujrat Department of Computer Science
Morgan Kaufmann Publishers Computer Organization and Assembly Language
Microprocessor and Assembly Language
Arithmetic Instructions
Symbolic Instruction and Addressing
Chapter 4 Data Movement Instructions
8086 Registers Module M14.2 Sections 9.2, 10.1.
CS-401 Computer Architecture & Assembly Language Programming
Morgan Kaufmann Publishers Computer Organization and Assembly Language
Symbolic Instruction and Addressing
(Array and Addressing Modes)
Symbolic Instruction and Addressing
(Array and Addressing Modes)
Assembly Language for Intel-Based Computers, 5th Edition
T opic: S TRING I NSTRUCTION P RESENTED B Y: N OOR FATIMA M AHA AKRAM ASIF.
CS-401 Computer Architecture & Assembly Language Programming
Data Movement Instructions
Chapter 6 –Symbolic Instruction and Addressing
CNET 315 Microprocessor & Assembly Language
(Array and Addressing Modes)
Presentation transcript:

Princess Sumaya Univ. Computer Engineering Dept. Chapter 9:

Princess Sumaya University – Computer Org. & Assembly Lang. Computer Engineering Dept. 1 / 10 String Operands String Operands Defaults Byte, Word or Double Element Size DS:SI Points to Source String ES:DI Points to Destination String Register Use is Limited to AL & AX Auto Increment or Decrement of the Index (Pointer)

Princess Sumaya University – Computer Org. & Assembly Lang. Computer Engineering Dept. 2 / 10 String Operations String Transfer Operations MOVS (Byte or Word) Memory DS SI Memory ES DI

Princess Sumaya University – Computer Org. & Assembly Lang. Computer Engineering Dept. 3 / 10 String Operations String Transfer Operations LODS (Byte or Word) Memory DS SI Memory ES DI AL

Princess Sumaya University – Computer Org. & Assembly Lang. Computer Engineering Dept. 4 / 10 String Operations String Transfer Operations STOS (Byte or Word) Memory DS SI Memory ES DI AL

Princess Sumaya University – Computer Org. & Assembly Lang. Computer Engineering Dept. 5 / 10 Repeated String Operations Repeated String Transfers REP, REPZ, REPNZ (REPE, REPNE) Example: Memory DS SI Memory ES DI

Princess Sumaya University – Computer Org. & Assembly Lang. Computer Engineering Dept. 6 / 10 Repeated String Operations Example: Copy String Memory DS SI ES DI

Princess Sumaya University – Computer Org. & Assembly Lang. Computer Engineering Dept. 7 / 10 Repeated String Operations Example: Convert to Lower Case Memory DS SI ES DI

Princess Sumaya University – Computer Org. & Assembly Lang. Computer Engineering Dept. 8 / 10 Repeated String Operations Example: B[i] = – A[i] Memory DS SI ES DI

Princess Sumaya University – Computer Org. & Assembly Lang. Computer Engineering Dept. 9 / 10 String Comparison Compare Two Strings CMPS (Byte or Word) Example:Find the First Mismatch Memory DS SI ES DI

Princess Sumaya University – Computer Org. & Assembly Lang. Computer Engineering Dept. 10 / 10 String Search Scan Destination String SCAS (Byte or Word) Example:Search for the Letter a Memory DS SI ES DI

Princess Sumaya University – Computer Org. & Assembly Lang. Computer Engineering Dept. Chapter 9