Hi,
X NOT Y geht nicht.
Entweder willst du X invertieren oder Y
X= NOT X
Alternativ X= X XOR &HFF

Gruß
Christopher