Bytes roll over sanity check


+ Reply to Thread
Results 1 to 3 of 3
  1. #1

    Default Bytes roll over sanity check

    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

  2. #2
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,283

    Default Re: Bytes roll over sanity check

    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.

  3. #3

    Default Re: Bytes roll over sanity check

    I agree, but sometimes you get a concerned worm in your head that needs confirmation from another human.

    Thanks

Similar Threads

  1. Check within a 16 bytes window
    By Ioannis in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 29th November 2012, 12:54
  2. Stopping a roll over when incrementing a count
    By jmgelba in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 5th May 2011, 22:06
  3. looking for a quick sanity check
    By cncmachineguy in forum Serial
    Replies: 13
    Last Post: - 13th November 2010, 19:53
  4. can someone help me check?
    By saturnX in forum Schematics
    Replies: 17
    Last Post: - 12th September 2005, 12:08
  5. Even Parity Check, How?
    By Mark Scotford in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 24th January 2005, 10:21

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts