3 - 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?
If you could show work that would be helpful as I have to do that to get credit. Thanks.
3 - bit pattern 11001100
11001100(2) = (1 × 27 + 1 × 26 + 0 × 25 + 0 × 24 + 1 × 23 + 1 × 22 + 0 × 21 + 0 × 20)(10)
11001100(2) = (128 + 64 + 0 + 0 + 8 + 4 + 0 + 0)(10)
11001100(2) = (128 + 64 + 8 + 4)(10)
11001100(2) = 204(10)
In a signed binary, first bit (the leftmost) is
reserved for the sign, 1 = negative, 0 = positive.
This bit does not count when calculating the absolute value.
1001100(2) = (1 × 26 + 0 × 25 + 0 × 24 + 1 × 23 + 1 × 22 + 0 × 21 + 0 × 20)(10)
1001100(2) = (64 + 0 + 0 + 8 + 4 + 0 + 0)(10)
1001100(2)= (64 + 8 + 4)(10)
1001100(2)= 76(10)
Adjust the sign of the integer number by the first digit (leftmost) of the signed binary.
11001100(2) = -76(10)
In a signed binary two's complement, first bit (the
leftmost) indicates the sign,
1 = negative, 0 = positive.
11001100 is the binary representation of a negative integer, on 8 bits.
Run this step only if the number is negative
Subtract 1 from the binary initial number:
11001100 - 1 = 11001011
Flip all the bits in the signed binary one's complement representation (reverse the digits) - replace the bits set on 1 with 0s and the bits on 0 with 1s:
!(1100 1011) = 0011 0100
00110100(2) = (0 × 27 + 0 × 26 + 1 × 25 + 1 × 24 + 0 × 23 + 1 × 22 + 0 × 21 + 0 × 20)(10)
00110100(2) = (0 + 0 + 32 + 16 + 0 + 4 + 0 + 0)(10)
00110100(2) = (32 + 16 + 4)(10)
00110100(2) = 52(10)
Adjust the sign of the integer number by the first digit (leftmost) of the signed binary.
00110100(2) = -52(10)
4 - bit pattern 00110011
00110011(2) = (1 × 25 + 1 × 24 + 0 × 23 + 0 × 22 + 1 × 21 + 1 × 20)(10)
00110011(2) = (32 + 16 + 0 + 0 + 2 + 1)(10)
00110011(2) = (32 + 16 + 2 + 1)(10)
00110011(2)= 51(10)
In a signed binary two's complement, first bit (the leftmost)
indicates the sign,
1 = negative, 0 = positive.
00110011 is the binary representation of a positive integer, on 8 bits.
0110011(2) = (1 × 25 + 1 × 24 + 0 × 23 + 0 × 22 + 1 × 21 + 1 × 20)(10)
0110011(2) = (32 + 16 + 0 + 0 + 2 + 1)(10)
0110011(2) = (32 + 16 + 2 + 1)(10)
0110011(2)= 51(10)
Adjust the sign of the integer number by the first digit (leftmost) of the signed binary.
00110011(2) = 51(10)
In a signed binary two's complement, first bit
(the leftmost) indicates the sign,
1 = negative, 0 = positive.
00110011 is the binary representation of a positive integer, on 8 bits.
00110011(2) = (1 × 25 + 1 × 24 + 0 × 23 + 0 × 22 + 1 × 21 + 1 × 20)(10)
00110011(2) = (32 + 16 + 0 + 0 + 2 + 1)(10)
00110011(2) = (32 + 16 + 2 + 1)(10)
00110011(2)= 51(10)
3 - What decimal number does the bit pattern 11001100 represent if it is a: •...
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...
6 - What decimal number does the bit pattern 0xC0B00000 represent if it is: • [2 pts] A two's complement integer? • [2 pts] An unsigned integer? • [2 pts] A floating point number assuming the IEE 754 single precision format 7 - Perform the following calculations assuming that the values are 8-bit decimal integers stored in two's complement format. Be sure to consider the possibility of overflow. • [2 pts] 10101010 + 00110011 • [2 pts] 10101010 – 00110011...
What decimal number does the bit pattern 10101100 represent if it is a: [1 pts] unsigned integer? [1 pts] sign-magnitude integer? [1 pts] two's complement integer? What decimal number does the bit pattern 01010011 represent if it is a: [1 pts] unsigned integer? [1 pts] sign-magnitude integer? [1 pts] two's complement integer?
2. a) What decimal number does the bit pattern 0×0C000000 represent if it is a two’s complement integer? An unsigned integer? b) What decimal number does the bit pattern 0×0C000000 represent if it is a floating point number? Use the IEEE 754 standard. c) If the bit pattern 0×0C000000 is placed into the Instruction Register, what MIPS instruction will be executed?
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...
5. (10 pts) Given the 32-bit pattern: 1000 1111 0001 0110 0000 0000 0110 1000 hat does it represent respectively, assuming that it is a signed (2's complement) integer? (convert them to decimal) b. an unsigned integer? (convert them to decimal) c. a MIPS instruction?
5. (10 pts) Given the 32-bit pattern: 1000 1111 0001 0110 0000 0000 0110 1000 hat does it represent respectively, assuming that it is a signed (2's complement) integer? (convert them to decimal) b. an...
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...
Please show all work and please explain what a 5 bit excess is. 3) Convert the following decimal number to binary 554 5) What is the range of 5-bit excess-16 numbers? 6) What is the range of 5-bit two's complement numbers? 7) What is the range of 5-bit unsigned numbers? 8) What is the range of 5-bit sign-magnitude numbers?
(3 pts) Consider an unsigned fixed point decimal (Base10) representation with 8 digits, 5 to the left of the decimal point and 3 to the right. a. What is the range of the expressible numbers? b. What is the precision? c. What is the error? ______________________________________________________________________________ (3 pts) Convert this unsigned base 2 number, 1001 10112, to each base given below (Note: the space in the binary string is purely for visual convenience) Show your work. Using...
What decimal number does the following bit pattern represent if it is a single precision floating-point number using the IEEE 754 standard? 0x0D000000 0xC4650000