-
Exercises 1.1 through 1.26, inclusive. (3 pts)
-
Exercise 4.1, with results in both binary and hexadecimal. (4 pts)
-
Exercise 4.2. (3 pts)
-
Exercise 4.4. Use the shortcut. Also translate the binary number
into (unsigned) hexadecimal. (4 pts)
-
Exercise 4.7. (3 pts)
-
Exercise 4.11. (8 pts)
-
The Big Picture on page 299 mentions that bits have no inherent meaning.
Given the bit pattern:
0100 1000 0110 1001 0000 1101 0000 1010
What does it represent, assuming it is:
a. A 32-bit two's complement integer? (Specify the result in
decimal.) (4 pts)
b. A 32-bit unsigned integer? (Specify the result in decimal.)
(4 pts)
c. Four consecutive, 8-bit ASCII values? (4 pts) Use the ASCII
table on p. 142 for the standard character values. Also note the
following special codes which do not appear in the table:
ASCII 0 = NUL (C string null terminator)
ASCII 8 = BS (Backspace) ASCII 9 =
TAB
ASCII 10 = LF (Line Feed) ASCII 13 =
CR (Carriage Return)
-
Assume a 4-bit register and a 2's complement representation of integers.
Give examples of adding two positive numbers with and without overflow,
and of subtracting a negative number from a positive number with and without
overflow. Show the 2's complement representation of the operands
and the result in a manner similar to what is done in the book, pp. 220-221.
(8 pts)