Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

3. Show that the negative 0 is the same bit pattern as positive 0 . I.e., show that the 16 -bit 2 's complement of

image text in transcribed
3. Show that the negative 0 is the same bit pattern as positive 0 . I.e., show that the 16 -bit 2 's complement of 0 is all zeros 4. Convert the following binary numbers to decimal and to hexadecimal: 5. Convert the following binary numbers to decimal, 1st assuming they are 8-bit unsigned values, and then assuming they are 8-bit signed values. Subtract each value from 256 to verify that subtracting from 256 gives you the 2 's complement. 11100110 unsigned: 230 128+64+32+0+0+4+2+0 signed 8-bit: 26 left-most bit is 1 , so as a signed number, it must be negative. Find it's 2's complement (flip bits and increment): 00011001+1=00011010 get it's value: 0+0+0+16+8+0+2+0=26 So this is the bit pattern for -26 (as an 8-bit \#) 25626=230, which tells you that the 2's complement of 26 (which represents 26) is the same as the unsigned bit pattern for 230. Subtracting from 2N is the other way of making the 2 's complement 11111001 (the negative) of a number

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions