Binary not operation???

Blitz3D Forums/Blitz3D Programming/Binary not operation???

Mr Snidesmin(Posted 2008) [#1]
I just noticed, that unlike the And operation, Not in Blitz3d is not a binary operation...

For example:

(%111010 And %011011)

gives:

%011010

But:

(Not %10110)

Just gives zero. Not of any non-zero number seems to result in zero.

Does anyone know how to do a binary not operation in blitz3d?


Mr Snidesmin(Posted 2008) [#2]
Please ignore me - I just figured out that I can do an Xor with $FFFF


_33(Posted 2008) [#3]
yes XOR


Floyd(Posted 2008) [#4]
~ is the binary Not operator.