
6. Using 8-bits, subtract 81-92 using one's complement.
Using 8-bit 2’s complement math, Subtract 17 from 8 (8-17)
Q4: Subtract (1110010)2 - (0110111)2 using 2's complement.
Compute the sign extension into 16-bits of +20 and -123 represented in 2’s complement in 8-bits. Prove that when an 8-bit representation is sign-extended into 16 bits by replicating the sign bit 8 times in the more significant end, you get the same value both for a negative and non-negative X using X=- xn-12n-1 + x n-22n-2+…+ x222 + x121+ x0 20.
5. Answer the followings a) Lets computer stored numbers in 8 bits in 2's complement format, what is the largest and smallest number that can be stored? b) In (a) If we add 1 to the largest number what would happen? if we subtract 1 from smallest number what would happen? c) Why exponent is stored as biased exponent in floating point representation? d) In EFLAG register, some bits have given fixed value 0/1.what is rationale behind it?
P3 (8 points): Using the minimum number of bits: number B: Write +13 as a 2's complement binary number. C: Write -9 as a 2's complement binary number. D: Write -7 as a 1's complement binary number.
(a) Subtract (78) in base 10 from (97) in base 10 using 2's complement arithmetic , (b) Divide the number (221) in base 10 and (17) in base 10 by converting the original decimal number to its 8-bit equivalent using straight binary.
Write an Verilog code for a 8-bit subtractor (Bits are in 1's complement) using the following: 1. 5-bit parallel adder 2. 3-bit parallel adder The condition are as follows: 1. The Most Significant bits of the subtractor must be given to the 5-bit parallel adder. 2, The Least Significant bits of the subtractor must be given to the 3-bit parallel adder. 3. The input A will be assign to the switches with the least significant bit A[0] linked to SW0....
Convert the following decimal numbers into 2's complement using the maximum number of bits specified. -456 base 10, max bits 10 -6483 base 10, max bits 14 -64328 base 10, max bits 18
Add the following numbers in 2's complement: -11 +19 using a word length of 6 bits