. Assume all the values are in 8-bit 2s complement representation. Perform the following operations
. i. 01111111 + 11111111
ii. 00100101 - 10110111
ans i :
(01111111)2 = (127)10
(11111111)2 = (-1)10 (Taking 2s complement and attaching a negative sign.)
(127)10 + (-1)10 = 127 - 1 = (126)10
(126)10 = (01111110)2
So the answer is 01111110.
ans ii :
(00100101)2 = (37)10
(10110111)2 = (-73)10 (Taking 2s complement and attaching a negative sign.)
(37)10 - (-73)10 = 37 - (-73) = 37 + 73 = (110)10
(110)10 = (01101110)2
So the answer is 01101110.
. Assume all the values are in 8-bit 2s complement representation. Perform the following operations ....
5- Find the 2s complement of the following numbers. Use 8 bits of precision for each of the operations. (104)10 6- . Using 2s complement representation of negative numbers, perform the following operations in binary. Use 8 bits of precision for each of the operations. Also, convert your result back to decimal to verify the calculation (36)10 − (55)10
Show the representation of the following values in 8-bit two's complement notation: 15 -75 -3 109
Perform the following three subtraction operations by converting the numbers to 8-bit two's complement and adding: 65-32 32-65 -16-10
8 - For the following operations: write the operands as 2's complement binary numbers then perform the addition or subtraction operation shown. Show all work in binary operating on 8-bit numbers. • [1 pts) 6+3 . [1 pts) 6-3 • [1 pts) 3 - 6
Perform the following 5-bit binary addition showing the carry bit that propagates to each column. Assume that the numbers are unsigned binary quantities: 01110 + 01011 What does the three-character string “X+Y” look like internally using the 8-bit ASCII code given in table below? What does it look like in 16-bit Unicode? Using 10 bits to represent the mantissa (sign/magnitude) and 6 bits for the exponent (also sign/magnitude), show the internal representation of the following two values: +0.25 −32 1/16...
5) Convert the following values as noted from 8 bit to 16 bits (show both values a. (Signed Magnitude) +8 b. (2s complement) +8 c. (signed magnitude) -8 d. (2s complement) -8
Q.50 Please solve all of them to get a great review.
Perform the following 8-bit operations assuming that the numbers are encoded in 2's complement form and report the sum. Also report which ones, if any, result in overflow. Remember that subtraction can be thought of as "adding the negative" of the argument.
Assume 6-bit signed numbers. What is the 2’s complement representation for the following decimal numbers (or indicate that the number cannot be represented as 6-bit signed type): -34 -20 15 -1
Perform the following binary multiplication. Assume that all values are 2's complement numbers. Indicate the result and whether there is overflow or not. 1011* 1101
Convert the decimal numbers A and B to 5-bit binary numbers. Using two’s complement representation, show (i) how to subtract the two 5-bit binary numbers (A−B); (ii) how to translate the binary result back to decimal