80 likes | 246 Views
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.
E N D
CS 206D Computer Organization Lab2 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