concatenating 4 bytes into one pseudo 32 bit counter?


Results 1 to 12 of 12

Threaded View

  1. #7
    Join Date
    Sep 2009
    Posts
    755


    Did you find this post helpful? Yes | No

    Default Re: concatenating 4 bytes into one pseudo 32 bit counter?

    I use similar code for numbers greater then 1.
    Something like this:

    Code:
    A VAR WORD
    B,C,D,Add VAR BYTE
    INC:
    A=A+Add
    IF A>255 THEN
        A=A-255
        B=B+1
        IF B=0 THEN
          C=C+1
            IF C=0 THEN
              D=D+1
          ENDIF
        ENDIF
    ENDIF
    Last edited by pedja089; - 26th August 2011 at 15:10.

Members who have read this thread : 0

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