A. (30 pts) Find out the binary representations and the corresponding unsigned values
of the following signed numbers. Assume 8-bit machine. (List calculation steps)
1. -103: 01100111
Invert: 10011000
Add 1: 10011001
Unsigned: 153
2. -125: 01111101
Invert: 10000010
Add 1: 10000011
Unsigned: 13
3. -71: 01000111
Invert: 10111000
Add 1: 10111001
Unsigned: 185
4. -2: 00000010
Invert: 11111101
Add 1: 11111110
Unsigned: 254
5. 70
Binary: 01000110
Unsighed: 70
B. (30 pts) Find out the following binary representations and the corresponding signed
values of the following unsigned numbers. Assume 8-bit machine. (List calculation
steps)
1. 250
Binary: 11111010
Invert: 00000101
Add 1 00000110
Signed: -6
2. 202
Binary: 11001010
Invert: 00110101
Add 1: 00110110
Signed: -54
3. 128
Binary: 10000000
Invert: 01111111
Add 1: 10000000
Signed: -128
4. 98
Binary: 01100010
Signed: 98
5. 30
Binary: 00011110
Signed: 30
C. (20 pts) Provide the range for each of the following
1.
2.
3.
4.
5.
signed byte
unsigned byte
signed word
unsigned word
signed double-word
D. (20 pts) What are the ASCII values, in hex, for each of the following strings:
1. “Hello” 48 65 6C 6C 6F
2. “123” 31 32 33
3. “Yes!?” 59 65 73 21 3F
4. “ABCD” 41 42 43 44
5. “(5+6)” 28 35 2B 36 29