CSCI 360-2/PE1 Assignment 2 – Binary, Hexadecimal and Absolute Addresses
$35.00 $21.00
Description
- Convert the following unsigned binary numbers to their decimal representations (8 points):
- 1001
- 11110
- 1011011
- 11111
- Convert the following decimal numbers to both their hexadecimal and binary representations (8 points):
- 25
- 345
- 141
- 4092
- Convert the following unsigned hexadecimal numbers to their decimal representations (8 points):
- 1B
- FE
- BD9
- B39
- Do the following unsigned binary arithmetic giving the answer in binary (8 points):
- 10111 + 10101
- 11001 + 01101
- 10101 – 00011
- 11001 – 1011
- Do the following unsigned hexadecimal arithmetic giving the answer in hexadecimal (8 points):
- 827D + 1C72
- E2D + B01
- FC19 – 3A59
- 1E2C – 3C1
- 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)
- 10110 + 01101
- 10110 – 11011
- 11011 + 01011
- 11111 – 01111
- 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):
- 492(1)
- 51(7,0)
- 16(9,1)
- 12(0,2,7)
- 231(7,1)
- 112(,9)