in reply to int's behaviour

When you say that it reduces by one those values, do you mean that if you read in 255 you get 254? Or is it if you read in 256 you get 255?

You could help us out a great deal with a code snippet and a data snippet so we can see what you are talking about.

--
I used to drive a Heisenbergmobile, but every time I looked at the speedometer, I got lost.