Binary not operation???
Blitz3D Forums/Blitz3D Programming/Binary not operation???
| ||
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? |
| ||
Please ignore me - I just figured out that I can do an Xor with $FFFF |
| ||
yes XOR |
| ||
~ is the binary Not operator. |