[Coco] replicating bitwise operators in BASIC
johann+coco at klasek.at
Fri Sep 9 15:29:59 EDT 2016
On Fri, Sep 09, 2016 at 06:26:43PM +0200, Johann Klasek wrote:
> On Fri, Sep 09, 2016 at 07:14:48AM -0500, Dave Philipsen wrote:
> > Actually the XOR could be constructed out of just AND and NOT.
> Usually this can be written as
> Z = (X OR Y) AND NOT(X AND Y)
> and could be optimized to
> Z = (X OR Y) - (X AND Y)
Still wondering why to restrict our considerations to only NOT and AND
operator as we know that we do have also OR?
(as Dave pointed this out, too)
More information about the Coco