[Coco] replicating bitwise operators in BASIC
    Dave Philipsen 
    dave at davebiz.com
       
    Sat Sep 10 02:04:37 EDT 2016
    
    
  
Anything over 15 bits gives an ?FC ERROR
ex:  PRINT 32768 AND 3
?FC ERROR
whereas:
PRINT 32767 AND 3
  3
Dave
On 9/10/2016 12:49 AM, Barry Nelson wrote:
>   It should do 16 bits, but the result is represented as a signed 16 bit integer.
> This should do an 8 bit XOR.
>
> Q=(255 AND (A OR B) AND NOT (A AND B))
>> Dave Philipsen dave at davebiz.com
>> Sat Sep 10 01:04:02 EDT 2016
>> Looks like ECB will do boolean logic up to 15 bits.
>
    
    
More information about the Coco
mailing list