[futurebasic] Re: [FB] BITTST

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : May 1999 : Group Archive : Group : All Groups

From: Mel & Carol Patrick <mel@...>
Date: Thu, 20 May 1999 20:16:46 -0700
>Shouldn't this give 0 1 0 0 0 0 0 1? ("A"=65=01000001)
>
>tmp$="A"
>a& = @tmp$+1
>for i& = 0 to 7
>  PRINT FN BITTST(a&,i&);
>next i&
>
>Keeps giving me 0 0 0 0 0 0 1 0

If memory serves me right, BITTST is in reverse of what you normally
expect. Bit 0 is on the left, MSB is on the right. In which case, your
results are correct.

Mel Patrick
mel@...