- #1
chelsea9947
- 8
- 0
1. Given that the instruction
cmp.l d0,d1
subtracts d0 from d1 without changing either and then sets the flags accordingly.
What will be the state of the N and Z flags if
a. d0 < d1 =
b. d0 > d1 =
c. d1 = d1 =
a. is negative and N would be set.
b. the result is positive and neither N or Z is set.
c. the result is zero and Z would be set.
cmp.l d0,d1
subtracts d0 from d1 without changing either and then sets the flags accordingly.
What will be the state of the N and Z flags if
Homework Equations
a. d0 < d1 =
b. d0 > d1 =
c. d1 = d1 =
The Attempt at a Solution
a. is negative and N would be set.
b. the result is positive and neither N or Z is set.
c. the result is zero and Z would be set.