Searching \ for '32-bit increment challenge' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: piclist.com/techref/index.htm?key=bit+increment+challenge
Search entire site for: '32-bit increment challenge'.

Truncated match.
PICList Thread
'32-bit increment challenge'
1999\08\24@230959 by Dan Larson

flavicon
face
Does anybody see any problem with the following
32-bit increment, other than it not being
isosynchronous ?

; 32-bit increment-------------------

      INCFSZ   COUNT_0,F     ;  LSB
      GOTO     DONE          ;
      INCFSZ   COUNT_1,F     ;
      GOTO     DONE          ;
      INCFSZ   COUNT_2,F     ;
      GOTO     DONE          ;
      INCF     COUNT_3       ;  MSB
DONE:

;------------------------------------

I am also looking for a 32-bit add, subtract,
and compare snippets.  The subtract could be
used for the compare if Z is valid after the
subtract.

Dan

1999\08\25@103012 by Scott Dattalo

face
flavicon
face
On Tue, 24 Aug 1999, Dan Larson wrote:

> Does anybody see any problem with the following
> 32-bit increment, other than it not being
> isosynchronous ?
>
> ; 32-bit increment-------------------
>
>        INCFSZ   COUNT_0,F     ;  LSB
>        GOTO     DONE          ;
>        INCFSZ   COUNT_1,F     ;
>        GOTO     DONE          ;
>        INCFSZ   COUNT_2,F     ;
>        GOTO     DONE          ;
>        INCF     COUNT_3       ;  MSB
> DONE:

If you wish to make it isochronous:

 incf   count_0,f
 skpnz
  incf  count_1,f
 skpnz
  incf  count_2,f
 skpnz
  incf  count_3,f

On the 18cxxx parts you could do this:

 infsnz count_0,f
  incf  count_1,f
 skpnz
  incf  count_2,f
 skpnz
  incf  count_3,f

or
 clrf   wreg
 setc
 addwfc count_0,f
 addwfc count_1,f
 addwfc count_2,f
 addwfc count_3,f

Scott

More... (looser matching)
- Last day of these posts
- In 1999 , 2000 only
- Today
- New search...