1 / 8

CS 206D Computer Organization Lab2

CS 206D Computer Organization Lab2. Conditional Jumps – Signed Jumps. Conditional Jumps – Unsigned Jumps. Conditional Jumps – Single Flag Jumps. CMP Instruction. CMP destination, source Just like SUB but the destination does not change. Changes the Flags. Used with conditional jumps.

silvio
Télécharger la présentation

CS 206D Computer Organization Lab2

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. CS 206D Computer Organization Lab2 CS 111

  2. Conditional Jumps – Signed Jumps CS 111

  3. Conditional Jumps – Unsigned Jumps CS 111

  4. Conditional Jumps – Single Flag Jumps CS 111

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

  6. Exercise 1 • Write an assembly program that ask the user to enter a character (0 or 1) and determine if he pass or fail. ( 0 means fail and 1 means pass) CS 111

  7. CS 111

  8. CS 111

More Related