If you are uncertain about how to answer any of these questions, I suggest you try using the course forum to discuss them.
Hex Values | A | B | Func | CVNZ | Result |
---|---|---|---|---|---|
Problem | 0 | 0 | 2 | 1 | 0 |
Explanation |
“The function code calls for the Add operation without inverting A or negating B. 0 & 0 => 0. C, V, and N are all false because there is no carry or overflow and the result is not negative. The Z bit is true because the result is all zeros.” |
||||
Problem | 0 | 0 | 1 | ||
Explanation | Note: For AND and OR, you still need to tell how all four condition code bits will be set and why. (This is different from how this question was asked in previous semesters.) |
The only function code settings asked will be 0 (AND), 1 (OR), 2 (Add), 6 (Sub), 7 (SLT), C (NOR), and D (NAND). So there are only 16 × 16 × 7 possible questions to choose from!
(Quick: how many possible questions is that?)