xref: /csrg-svn/sys/tahoe/align/Aor2.c (revision 45760)
1*45760Sbostic /*-
2*45760Sbostic  * Copyright (c) 1986 The Regents of the University of California.
3*45760Sbostic  * All rights reserved.
4*45760Sbostic  *
5*45760Sbostic  * This code is derived from software contributed to Berkeley by
6*45760Sbostic  * Computer Consoles Inc.
7*45760Sbostic  *
8*45760Sbostic  * %sccs.include.redist.c%
9*45760Sbostic  *
10*45760Sbostic  *	@(#)Aor2.c	7.1 (Berkeley) 12/06/90
11*45760Sbostic  */
1229623Ssam 
1345699Sbostic #include "align.h"
or2(infop)1429623Ssam or2 (infop)	process_info *infop;
1529623Ssam /*
1629623Ssam /*	Or , 2 operands.
1729623Ssam /*
1829623Ssam /****************************************/
1929623Ssam {
2029623Ssam 	register	long	Register_12;	/* Has to be first reg ! */
2129623Ssam 	register 	long	data0, data1, result;
2229623Ssam 
2329623Ssam 	data0 = operand(infop,0)->data;
2429623Ssam 	data1 = operand(infop,1)->data;
2529623Ssam 	Register_12=psl;
2629623Ssam 	Set_psl(r12);	/* restore the user psl */
2729623Ssam 	result = data0 | data1;		/* 32 bits of true result */
2829623Ssam 	asm ("	movpsl	r12");
2929623Ssam 	New_cc (Register_12);
3029623Ssam 	write_back (infop,result, operand(infop,1) );
3129623Ssam }
32