
14 Assembly Language Programming for the 68000 Family
20. Hexadecimal numbers use what number base?
21. What number base is used internally by the 68000?
22. Convert the following decimal numbers to binary and hexadecimal:
a) 200 b) 5 c) 65000
23. Convert the following unsigned binary numbers to decimal:
a) 11010101 b) 00001110 c) 11100000110
24. Convert the following unsigned hexadecimal numbers to decimal:
a) ABCD b) 123 c) FF
25. Convert the following hexadecimal numbers to binary:
a) FEAA b) 123A c) 0100
26. Convert the following binary numbers to hexadecimal:
a) 1100110001 b) 00010000 c)11110111
27. Perform the following signed binary additions:
a) 11111000 + 00111111
b) 00010001 + 01000000
c) 11111100 + 00000011
28. Perform the following signed binary subtractions:
a) 11100000 - 00000001
b) 00111000 - 11111111
c) 10101010-00010101
29. What is the range of the ASCII codes that are printable?
30. Does the 68000 interpret the ASCII character codes?
Answers
1. two
2. a) 226 b) 63 c) 128
3. a) 1111110 b) 11111111 c) 1100100
4. a) FF b) 10 c) C5
5. a) 01010101 b) 10101011 c) 11101110
6. a) 225 b) 85 c) 222
7. a) 111111 b) 101011
8. a) 1A0AA b) A711
9. a) 11010 b) 01001
10. a) 55555 b) OFFF
11. 8
12. 2
13. two’s complement
14. the high-order bit
15. one
16. 11000011
17. -16
18. 9C
Kommentare zu diesen Handbüchern