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

CS 206D Computer Organization Lab2 PowerPoint PPT Presentation


  • 106 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 206D Computer Organization

    Lab2

CS 111


Conditional jumps signed jumps

Conditional Jumps – Signed Jumps

CS 111


Conditional jumps unsigned jumps

Conditional Jumps – Unsigned Jumps

CS 111


Conditional jumps single flag jumps

Conditional Jumps – Single Flag Jumps

CS 111


Cmp instruction

CMP Instruction

CMPdestination, source

  • Just like SUB but the destination does not change.

  • Changes the Flags.

  • Used with conditional jumps.

CS 111


Exercise 1

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 206d computer organization lab2

CS 111


Cs 206d computer organization lab2

CS 111


  • Login