binary - Two's Complement 6-bit signed conversion -


i trying understand two's complement struggling grasp concept.

the question is: show how following decimal integers stored in 6-bit two’s complement format.

-45

the way solved by:

the binary of 45 is:      101101       taking inverse:  010010 adding 1:            +    1 becomes:       1010011 

but issue having when totals out -45 can put 7-bit system. understanding concept appreciated, thanks!

edit: ignore carry out number?


Comments

Popular posts from this blog

ios - MKAnnotationView layer is not of expected type: MKLayer -

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -