CS 206D Computer Organization
Sponsored Links
This presentation is the property of its rightful owner.
1 / 8

CS 206D Computer Organization Lab2 PowerPoint PPT Presentation


  • 116 Views
  • Uploaded on
  • Presentation posted in: General

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.

Download Presentation

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.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -

Presentation Transcript


  • CS 206D Computer Organization

    Lab2

CS 111


Conditional Jumps – Signed Jumps

CS 111


Conditional Jumps – Unsigned Jumps

CS 111


Conditional Jumps – Single Flag Jumps

CS 111


CMP Instruction

CMPdestination, source

  • Just like SUB but the destination does not change.

  • Changes the Flags.

  • Used with conditional jumps.

CS 111


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


CS 111


CS 111


  • Login