Log in

View Full Version : Bytes roll over sanity check



retepsnikrep
- 17th October 2020, 19:47
Sanity checking..

Just checking that PbPro bytes and words roll over if incremented etc beyond 255/65535?

And that a 256 element byte array indexed with a byte variable will just roll over when the index exceeds 255?

So for instance byte index 250 + 10 = 4

HenrikOlsson
- 17th October 2020, 21:47
That's something you could easily try/test/verify for your own verification in less time than what you had to wait for this answer but...Yes :-)

/Henrik.

retepsnikrep
- 18th October 2020, 07:23
I agree, but sometimes you get a concerned worm in your head that needs confirmation from another human.

Thanks