pea
developer
Hey all,
I thought that &/ was NAND? gcc doesn't seem to recognise it.
I can use:
& AND
| OR
But I need either XOR or NAND (to invert a binary number) any ideas?
example: For a byte 'n' (0-255)
n NAND n will invert (e.g. 10011101 => 01100010 )
n XOR 255 will invert (e.g. 00011100 => 11100011 )
I thought that &/ was NAND? gcc doesn't seem to recognise it.
I can use:
& AND
| OR
But I need either XOR or NAND (to invert a binary number) any ideas?
example: For a byte 'n' (0-255)
n NAND n will invert (e.g. 10011101 => 01100010 )
n XOR 255 will invert (e.g. 00011100 => 11100011 )