1

Consider an 8-bit two’s complement register R. What are the least and greatest decimal integers that can be stored in R? Help would be much appreciated.

kiasy
  • 127

1 Answers1

3

You have 8 bits, so you can store $256 = 2^8$ distinct integers. Since you are using two's complemnt, the range is $-128..127$. You store $127$ as $01111111$ and $-128$ as $10000000$.

A register is just high-speed non-addressable memory near the CPU. The registers are used as caches for high-speed computation.

ncmathsadist
  • 49,383