Search:

Type: Posts; User: Salem

Search: Search took 0.51 seconds.

  1. Replies
    11
    Views
    5,992

    That's what the C compiler does for you. It...

    That's what the C compiler does for you. It generates the necessary code to "fake" a 16-bit integer out of two 8-bit locations.

    Otherwise, I suggest you google "binary long division" if you want...
  2. Replies
    11
    Views
    5,992

    Since you're programming in C, why don't you just...

    Since you're programming in C, why don't you just create a 16-bit variable (say an unsigned short int) with R1x256 + R0 and then divide that by 58?
Results 1 to 2 of 2