Henrik, thanks for that. And sure, in its basic form the '^' operator works as expected.

In this specific case, I realize that the complication(s)'s arisen because of the fact that the port being bit-manipulated has some pins which are inputs, and not to be controlled by the XOR.

I'll need to mask off those bits, I guess.

Thanks again