Question: I3 Consider a machine with three condition codes, N,Z, and O. N indicates whether the most recent arithmetic operation produced a negative result. Z indicates

 I3 Consider a machine with three condition codes, N,Z, and O.

I3 Consider a machine with three condition codes, N,Z, and O. N indicates whether the most recent arithmetic operation produced a negative result. Z indicates whether it produced a zero result. O indicates whether it produced a result that cannot be represented in the available precision for the numbers being manipulated (i.e., outside the range 0..2n for unsigned arithmetic, 2n12n11 for signed arithmetic). Suppose we wish to branch on condition A op B, where A and B are unsigned binary numbers, for op {,}. Suppose we subtract B from A, using two's complement arithmetic. For each of the six conditions, indicate the logical combination of condition-code bits that should be used to trigger the branch. Repeat the exercise on the assumption that A and B are signed, two's complement numbers

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!