Suppose you have two 8-bit registers, A and B.
A contains the value 11001100
B contains the value 01001111
What is the decimal value of the two's complement binary sum?
A - 11001100 B - 01001111 ------------------ A+B -(1)00011011 ------------------ there was an overflow of 1 00011011 in decimal is 2^4 + 2^3 + 2^1 + 2^0 = 16 + 8 + 2 + 1 = 27 Answer: 27
Suppose you have two 8-bit registers, A and B. A contains the value 11001100 B contains...
Suppose you have two 8-bit registers, A and B. containing signed two's complement values A contains the value 11001110 B contains the value 11111010 What is the decimal value of the difference between them (A - B)?
4. What decimal value does the 8-bit binary number 10011110 have if: a) It is interpreted as an unsigned number? b) It is on a computer using signed-magnitude representation? c) It is on a computer using ones complement representation? d) It is on a computer using twos complement representation? 5. Given the following two binary numbers: 11111100 and 01110000. a) Which of these two numbers is the larger unsigned binary number? b) Which of these two is the larger when it is being...
1. What is the largest decimal number we can represent with a 16 bit two's complement number? 2. Convert the following signed binary numbers to decimals. 11001 010011 1110100 1100111 3. Convert the following decimal numbers to 6-bit two's complement binary numbers and add them. Note if there is an overflow. 7 + 13 Two's complement/binary number for 7: Two's complement/binary number for 13: Sum: Overflow? 4. Convert the following decimal numbers to 6-bit two's complement binary numbers...
5. Express (76) 10 and (-114)10 in 8-bit binary two's complement arithmetic and then add the numbers. What would be the representation (0)10 in 16-bit binary two's complement? (be sure to show your work). 6. Create two 16-bit 2's complement integer such that their sum causes an overflow. Why does the sum of a negative 2's complement number and a positive 2's complement number never generate an overflow? Discuss.
UDP and TCP use 1s complement for their checksum. Suppose you have the following two 8-bit bytes: 0101, 1010. What is the 1s complement of the sum of these 8-bit bytes? Suppose the two bytes are altered during transmission with the checksum as follows: 1001, 0110. Can the checksum be used to detect the alteration?
(5 points) Convert the following decimal numbers to 8-bit two's complement binary numbers and carry out the additions in binary. Indicate whether the sum overflows the 8-bit result. If not show the result as a decimal number. a) 39 + (-78) b) -43 + (-92)
e,f,g,h,i 1) Given: X 0xA4 and Y 0x95, a) Convert X and Y to 8-bit binary numbers. b) Compute the 8-bit sum X+Y of X and Y o) Compute Y the 8-bit two's complement of Y. d) Compute the 8-bit difference X"Y of X and Y. (Use two's complement addition.) o) Convert XiY, Y, and, X Y to hexadecimal. D What are the values of the condition flags z n c v upon computing X-+Y? g) What are the values...
4. Let A =-120 and B = -58. Use 8-bit registers to store the two numbers (use 2's complement representation). Add now the contents of the two registers and store the result in another 8-bit register. Explain whether the stored result is correct or not.
Please show and explain all work for each questions What decimal number does the bit pattern 11001100 represent if it is a: • [1 pts] unsigned integer? • [1 pts] sign-magnitude integer? • [1 pts] two's complement integer? 4 - What decimal number does the bit pattern 00110011 represent if it is a: • [1 pts] unsigned integer? • [1 pts] sign-magnitude integer? • [1 pts] two's complement integer? 5 - [2 pts] What is the binary representation of the...
2. Convert the following two's complement binary numbers to decimal numbers. These numbers are integers. a. 110101 b. 01101010 c. 10110101 3. Convert the following decimal numbers to 6-bit two's complement binary numbers and add them. Write the results in 6-bit two's complement binary number format and decimal number format. Indicate whether or not the sum overflows a 6-bit result. a. 14 + 12 b. 30 + 2 C. -7 + 20 d. -18-17 4. What is the signed/magnitude and two's complement range of...