This assignment is intended to help the student become comfortable in working with
numbers in base-2 and base-16. Also, it provides practice in converting and
representing negative numbers and floating point numbers. Understanding how
computers represent values is essential to working with various commands in
assembly language.
For each of the following problems show your work appropriately.
- (1 pts each) Convert each of the following decimal values into
binary and into hexadecimal:
- 320
- 70
- 128
- 31
- 25
- 84
- (1 pts each) Convert each of the following binary values into
decimal and into hexadecimal:
- 101110
- 0101
- 1111
- 101111101
- 111111
- 10101010
- (2 pts) What range of values could be represented using 6 bits if the
numbers were unsigned values? for signed values using two's complement?
- (1 pts each) Show how each of the following decimal values would
be stored in an 8-bit field using two's complement notation:
- -68
- 108
- -120
- -85
- 85
- 101
- 38
- 127
- 125
- 0
- (2 pts each) Show how each of the following base-10 values would
be represented in a 32-bit field if using the IEEE 754 format (8-bit
exponent).
- 100.0
- -83.7
- (2 pts each) What base-10 floating point number is represented by
each bit string assuming use of the IEEE 754 format with an 8 bit
exponent.
- 01000101101011000000000000000000
- 00111111111000000000000000000000