692 views
0 votes
0 votes
A signed number in $2′s$ compliment notation with $16−$bit register $P=DFA0$

What is the value of $P∗4$?

I have tried $P∗4=0111111010000000$ but sign bit changed from $1$ to $0$. What is wrong with my solution?

1 Answer

0 votes
0 votes
See P= DFA0 = 1101 1111 1010 0000 = -8288(Decimal equivalent)

P*4 = -8288*4= -33152

but as you know that 2's complement number have range between $-2^{n-1}$ to $2^{n-1} - 1$

so in 16 bit you can represent last negative number as $-2^{16-1}$ = $-2^{15}$ = -32768 to 32767

and multiplication is going out of the range so it can't be represent in 16 bit register. to get the result you need to store in 32 bit register and answer will be

11111111111111110111111010000000
edited by

Related questions

2 votes
2 votes
1 answer
1
Sourajit25 asked Oct 23, 2017
1,081 views
Consider the number given in the base '12' system is (-1457)12 then the number of 1's in the 2's complement binary representation of that number is ______?The answer is 9...
1 votes
1 votes
1 answer
2
saurabh rai asked Jan 17, 2018
1,146 views
What will be base-3 equivalent of decimal number 56.4
3 votes
3 votes
1 answer
3
Lakshman Bhaiya asked Jan 5, 2018
1,709 views
The r ’s complement of an n-digit decimal number N in base r is defined for all values of N except for N = 0. If the given number is (247)9, then its 9’s complement w...
1 votes
1 votes
1 answer
4