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.
Asked
Active
Viewed 203 times
1
1 Answers
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
Klazy haha. @Amzoti can you check my comment on the answer please ?
– kiasy Dec 18 '13 at 02:45