```
9. - 11 bit: also all set to one
12. bit: can be 0 or 1
13. bit: can be 0 or 1
14 - 15 bit: 0-0,0-1,1-0 or 1-1
```

This means that only the 12 most right bits need to be set. The value for that is

&07ffh, or 2047.

You can check those bits like this:

VB.NET

if ((value And 2047) = 2047) then

C#

if ((value & 2047) == 2047)

Because you want to check only the 12 most right bits, a bitwise and is performed to discard all other bits because they don't matter. Then you check if the value is equal to make sure that all the bits you need to check are set.

Good luck!

bit 14: can be 0 or 1

bit 15: can be 0 or 1