Show that each of the following bit vectors is a twos-complement representation of 4 by applying Equation

Question:

Show that each of the following bit vectors is a two’s-complement representation of −4 by applying Equation 2.3:
A. [1100]
B. [11100]
C. [111100]
Observe that the second and third bit vectors can be derived from the first by sign extension.

Eq. 2.3

2 B2T (x) = =Xw_12"-1+ 2 x 2 i=0 (2.3)

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Computer Systems A Programmers Perspective

ISBN: 9781292101767

3rd Global Edition

Authors: Randal E. Bryant, David R. O'Hallaron

Question Posted: