XOR using ALU flags?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

XOR using ALU flags?

tungsten
Is it possible to compute XOR using the ALU flags? That is by using two's complement addition and 'AND'?

Currently I'm computing XOR outside the textbook ALU using a XOR chip.

I'm assuming no, otherwise it would have been included... but maybe it is possible?

Reply | Threaded
Open this post in threaded view
|

Re: XOR using ALU flags?

cadet1620
Administrator
It's not possible to compute XOR using any combination of the control bits.

It's an interesting exercise to determine what functions are computed by each of the 64 possible control bit combinations.

--Mark

Reply | Threaded
Open this post in threaded view
|

Re: XOR using ALU flags?

tungsten
I see, thanks!