[Coco] replicating bitwise operators in BASIC

Dave Philipsen dave at davebiz.com
Fri Sep 9 16:26:09 EDT 2016


And ever so slightly faster than the subtraction method is this:

100 IF A AND B THEN Q = 0 ELSE Q = A OR B



On 9/9/2016 2:46 PM, Johann Klasek wrote:
>
> line 100 is equivalent to
> 100 Q = ( A OR B ) - ( A AND B )
> which is slightly faster, but not very understandable why ... AND NOT(...)
> could be replaced by ...-(...) in this special case.
>
>



More information about the Coco mailing list