1 / 12

Introduction to Computer Organization and Assembly Language

Introduction to Computer Organization and Assembly Language. Sheet 4. Unconditional Jumps – JMP Instruction. JMP destination_lable. Conditional Jumps – Signed Jumps. Conditional Jumps – Unsigned Jumps. Conditional Jumps – Single Flag Jumps. CMP Instruction. CMP destination, source

nasnan
Download Presentation

Introduction to Computer Organization and Assembly Language

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. Introduction to Computer Organization and Assembly Language Sheet 4 By: Nora Alaqeel

  2. Unconditional Jumps – JMP Instruction JMPdestination_lable

  3. Conditional Jumps – Signed Jumps

  4. Conditional Jumps – Unsigned Jumps

  5. Conditional Jumps – Single Flag Jumps

  6. CMP Instruction CMPdestination, source Just like SUB but the destination does not change. Changes the Flags. Used with conditional jumps.

  7. Example – IF, THEN, ELSE • Suppose AL and BL contain extended ASCII characters,Display the one that comes first in the character sequence

  8. Example – AND condition Read a character, and if it’s an uppercase letter, Accept it

  9. Example – OR Condition • Read a character. If it’s 'y' or 'Y', display it; otherwise, terminate the program.

  10. LOOP Instruction LOOPdestination_Label • Display a row of 80 stars.

  11. Example – While Loop Count number of characters entered and terminate if carriage return is entered.

  12. Example – Repeat Loop Read characters until a blank is read terminate.

More Related