1 / 12

Chapter 9:

Chapter 9:. 22342 – Computer Organization & Assembly Language. Strings & Arrays. 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

jeff
Download Presentation

Chapter 9:

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Chapter 9: 22342 – Computer Organization & Assembly Language Strings & Arrays

  2. 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)

  3. String Operations • String Transfer Operations • MOVS (Byte or Word)

  4. String Operations • String Transfer Operations • LODS (Byte or Word)

  5. String Operations • String Transfer Operations • STOS (Byte or Word)

  6. Repeated String Operations • Repeated String Transfers • REP, REPZ, REPNZ (REPE, REPNE) Example:

  7. Repeated String Operations Example: Copy String

  8. Repeated String Operations Example: Convert to Lower Case

  9. Repeated String Operations Example: B[i] = – A[i]

  10. String Comparison • Compare Two Strings • CMPS (Byte or Word) Example:Find the First Mismatch

  11. String Search • Scan Destination String • SCAS (Byte or Word) Example:Search for the Letter ‘a’

  12. Chapter 9

More Related