[Coco] replicating bitwise operators in BASIC

Salvador Garcia salvadorgarciav at yahoo.com
Mon Sep 12 11:24:27 EDT 2016


Maybe this will shed some light?
http://math.stackexchange.com/questions/61556/how-to-represent-xor-of-two-decimal-numbers-with-arithmetic-operators

It seems as though it is a much more involved process if we do not have the logical operators :-) Salvador




      From: Brett Gordon <beretta42 at gmail.com>
 To: CoCoList for Color Computer Enthusiasts <coco at maltedmedia.com> 
 Sent: Saturday, September 10, 2016 10:26 PM
 Subject: Re: [Coco] replicating bitwise operators in BASIC
   
Bogus test?

1.5  =  0b01.10
3.25 =  0b11.01

The fractional part would disappear even if BASIC did keep the fractions.
:)

As the OP... I point out nobody actually answered my intended question:
what if we had no AND, OR, or NOT... is it possible to replicate these from
other means?

Lost:  I consider USR()'ing cheating. ;)

cheers, brett

-- 
Coco mailing list
Coco at maltedmedia.com
https://pairlist5.pair.net/mailman/listinfo/coco


   


More information about the Coco mailing list