CSCI 360-2/PE1 Assignment 2 – Binary, Hexadecimal and Absolute Addresses  

$35.00

Category: You will Instantly receive a download link for .zip solution file upon Payment

Description

5/5 - (6 votes)

 

  1. Convert the following unsigned binary numbers to their decimal representations (8 points):
  2. 1001
  3. 11110
  4. 1011011
  5. 11111
  6. Convert the following decimal numbers to both their hexadecimal and binary representations (8 points):

 

  1. 25
  2. 345
  3. 141
  4.   4092
  5. Convert the following unsigned hexadecimal numbers to their decimal representations (8 points):

 

  1. 1B
  2. FE
  3. BD9
  4. B39

 

  1. Do the following unsigned binary arithmetic giving the answer in binary (8 points):

 

  1. 10111 + 10101
  2. 11001 + 01101
  3. 10101 – 00011
  4. 11001 – 1011

 

  1. Do the following unsigned hexadecimal arithmetic giving the answer in hexadecimal (8 points):

 

  1. 827D + 1C72
  2. E2D + B01
  3. FC19 – 3A59
  4. 1E2C – 3C1
  5. Do the following arithmetic as if these were five-bit signed binary representations and indicate if overflow occurs and, if so, why. Note:  Remember that you want to add.  So, for signed subtraction, convert the subtrahend (the number being subtracted) to its 2’s complement and add it.  Do this whether the subtrahend is negative OR positive!  (8 points)

 

  1. 10110 + 01101
  2. 10110 – 11011
  3. 11011 + 01011
  4. 11111 – 01111
  5. Assume that

 

Register 0 contains 00000022
Register 1 contains 00001028
Register 7 contains EC0035D1
Register 9 contains 00019CF2

If they are valid, calculate the absolute D(X,B) addresses for the representations below and, if they are not valid, explain why (12 points):

 

  1. 492(1)
  2. 51(7,0)
  3. 16(9,1)
  4. 12(0,2,7)
  5. 231(7,1)
  6. 112(,9)