CS 206D Computer Organization
Download
1 / 8

CS 206D Computer Organization Lab2 - PowerPoint PPT Presentation


  • 132 Views
  • Uploaded on

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.

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about ' CS 206D Computer Organization Lab2' - silvio


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

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




ad