Docsity

Computer Organization Homework: Binary and Hexadecimal Calculations, Exercises of Computer Architecture and Organization

Toggle sidebar
bg1
Homework #1 Computer Organization
1. Perform the following calculations:
(a) (b) (c) (d)
101101012110101024938C16 7A4B516
+001001112 - 01010112 + 2A45516 - 436BD16
2. Represent the following decimal numbers in binary using 8-bit signed magnitude, one's
complement, and two's complement:
-65
10
73
10
two's complement
8-bits
one's complement
8-bits
signed magnitude
8-bits
decimal number
3. Using 16-bits what is the range of values for each of the following representations:
a) unsigned integers:
b) signed integers using two's complement:
4. What decimal (base 10) value is represented by the 32-bit signed, two’s complement value FFFF
F5CA
16
? (The 32-bits two’s complement value is shown as a hexidecmal so I did not need to write a
32-bit binary number.)
5. Assuming each ASCII character is store as a byte (8-bits) with the most-significant bit being used
for even-parity, what would the string “Frog” be as a sequence of hexadecimal values. (For example,
“cab” would be: 63
16
E1
16
E2
16
)
Name:____________________
Docsity.com

Partial preview of the text

Download Computer Organization Homework: Binary and Hexadecimal Calculations and more Exercises Computer Architecture and Organization in PDF only on Docsity!

Homework #1 Computer Organization

  1. Perform the following calculations:

(a) (b) (c) (d)

101101012 11010102 4938C 16 7A4B5 16

+00100111 2 - 0101011 2 + 2A455 16 - 436BD 16

  1. Represent the following decimal numbers in binary using 8-bit signed magnitude, one's complement, and two's complement:

two's complement 8-bits

one's complement 8-bits

signed magnitude 8-bits

decimal number

  1. Using 16-bits what is the range of values for each of the following representations:

a) unsigned integers:

b) signed integers using two's complement:

  1. What decimal (base 10) value is represented by the 32-bit signed, two’s complement value FFFF F5CA 16? (The 32-bits two’s complement value is shown as a hexidecmal so I did not need to write a 32-bit binary number.)
  2. Assuming each ASCII character is store as a byte (8-bits) with the most-significant bit being used for even-parity , what would the string “Frog” be as a sequence of hexadecimal values. (For example, “cab” would be: 63 16 E1 16 E2 16 )

Name:____________________

Docsity.com