
Conditional and Arithmetic Instructions 69
20. Can MOVEQ be used to load only the low-order byte of a data
register?
Answers
1. The carry bit, C.
2. The overflow bit, V.
3. Yes, approximately plus or minus 32,768 bytes.
4. The zero bit, Z.
5. The negative bit, N.
6. The CMP instruction does not store the result in the destination
9. The carry, overflow, negative, zero, and extend bits.
10. No, only five out of the eight.
11. 55+27=82, which is within the range of an unsigned byte; the carry
bit will not be set. 150+110=260, which is larger than the range of an
unsigned byte; the carry bit will be set.
12. (—100) + (+50) —50. The overflow bit will not be set. (—100) +
(—50) = —150. The largest signed negative byte is —128. In this
case the overflow bit will be set.
13. ADD.L D0,D1
operand
7.
CMP.L #100,DO
BEQ STOP
3 CMP.L LIMIT,DO
BHI BIGER
BVC
OK
14
ADD.L DO,D1
BCC OK
15.
TST.L DO
BEQ ZERO
16.
MOVE.L NUM1,D0
CMP.L NUM2,D0
BEQ EQUAL
BLT LESS
Kommentare zu diesen Handbüchern