chelsea9947
- 7
- 0
Homework Statement
If the content of d0 is $30 state in words what each of the following numbered instruction pairs will do.
Homework Equations
a. cmpi #$30,d0
beq dan
b. cmp.l unknown, d0
bne dan
c. cmp.w d1,d0
bgt dan
The Attempt at a Solution
a. cmpi #$30,d0 = Z flag gets set.
beq dan = [go to label dan] [if d0] [equal to zero]
b. cmp.l unknown, d0 = so no flags get set.
bne dan = [go to label dan] [if d0] [not equal to zero]
c. cmp.w d1,d0 = N flag gets set
bgt dan = [go to label dan] [if d0] [greater than zero]