0

If the maximum number of bits of certain field is set to be 10 bits max. How many bytes can be set within this limitation?

The solution of such a problem suggests number of bytes ranged is 1023. Can anyone help me find why?

Thanks

Tyrone
  • 916
  • yes it is. I changed signaled to set. @RoryDaulton – Tyrone Jun 07 '15 at 19:33
  • Can you give any details about the format of the field? For example, is it fixed length, or does it have a subfield that gives the length of the field? – Rory Daulton Jun 07 '15 at 19:35
  • The field is 10 bits long. It is used to indicate the number of bytes in another field. Does this answer your question? My question is why is 10 bits able to indicate that a range of 14-1024 bytes exist in some other field – Tyrone Jun 07 '15 at 19:37

2 Answers2

0

Ten bits of binary give you $2^{10}=1024$ options. If you start counting at $0$, you can count up to $1023$.

Ross Millikan
  • 374,822
0

If you need to get away with using just one index, then you can represent $2^{10}=1024$ distinct values. But if you are allowed to use two values you could have one point at some vector of index offsets. This is what is needed to be done in 32 bit OS:es when disks and/or internal memory larger than $2^{32} = 4 gigs$ of memory, and also the famous "640 kB should be enough for everyone" most computers and operating systems at the time had to suffice with 64kB or 16 bits of adress space so 10 whokle pages should have sounded like a lot. Which it probably did for the first year or two.

mathreadler
  • 25,824