Math question


Closed Thread
Results 1 to 3 of 3

Thread: Math question

  1. #1
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,796

    Default Math question

    Is there a better way to find a block of flash memory from the index counter that shows next address?

    I came with this equation:
    ((index-block_start)/8)*8

    It may look that /8)*8 is redundant but PBP is using integer only and the result of the equation is showing at the start of the block.

    Any other idea welcome.

    Ioannis

  2. #2
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default Re: Math question

    How about ...

    index & %11111000
    DT

  3. #3
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,796


    Did you find this post helpful? Yes | No

    Default Re: Math question

    Oh dear...

    Thanks Darrel.
    Ioannis

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

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