HW01: Binary, Hex, and Data Representation due Mon 02 Sep 23:59

Purpose

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. (1 pts each) Convert each of the following decimal values into binary and into hexadecimal:
    1. 320
    2. 70
    3. 128
    4. 31
    5. 25
    6. 84

  2. (1 pts each) Convert each of the following binary values into decimal and into hexadecimal:
    1. 101110
    2. 0101
    3. 1111
    4. 101111101
    5. 111111
    6. 10101010

  3. (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?

  4. (1 pts each) Show how each of the following decimal values would be stored in an 8-bit field using two's complement notation:
    1. -68
    2. 108
    3. -120
    4. -85
    5. 85
    6. 101
    7. 38
    8. 127
    9. 125
    10. 0

  5. (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).
    1. 100.0
    2. -83.7

  6. (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.
    1. 01000101101011000000000000000000
    2. 00111111111000000000000000000000

Assembly Language

Segmentation Fault Counter

1779736941