[Coco] replicating bitwise operators in BASIC

Johann Klasek johann+coco at klasek.at
Sat Sep 10 07:37:10 EDT 2016


On Sat, Sep 10, 2016 at 12:04:02AM -0500, Dave Philipsen wrote:
> Looks like ECB will do boolean logic up to 15 bits.

It does in 16 bit. ECB converts the result in signed values, so you
get a value range from -32768 to +32767

dec        hex
-32768     $8000
-32767     $8001
...
-1         $FFFF
0          $0000
1          $0001
...
32767      $7FFF


Johann K.



More information about the Coco mailing list