xref: /csrg-svn/sys/tahoe/align/Axor2.c (revision 45699)
1*45699Sbostic /*	Axor2.c	1.2	90/12/04	*/
229645Ssam 
3*45699Sbostic #include "align.h"
429645Ssam xor2(infop) 	process_info *infop;
529645Ssam /*
629645Ssam /*	Xor , 2 operands.
729645Ssam /*
829645Ssam /****************************************/
929645Ssam {
1029645Ssam 	register	long	Register_12;	/* Has to be first reg ! */
1129645Ssam 	register	long	result, data0, data1;
1229645Ssam 
1329645Ssam 	data0 = operand(infop,0)->data;
1429645Ssam 	data1 = operand(infop,1)->data;
1529645Ssam 	Register_12=psl;
1629645Ssam 	Set_psl(r12);	/* restore the user psl */
1729645Ssam 	result = data0 ^ data1;
1829645Ssam 	asm ("	movpsl	r12");
1929645Ssam 	New_cc (Register_12);
2029645Ssam 	write_back (infop,result, operand(infop,1) );
2129645Ssam }
22