xref: /csrg-svn/sys/tahoe/align/Abit.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  *	@(#)Abit.c	7.1 (Berkeley) 12/06/90
11*45760Sbostic  */
1229592Ssam 
1345699Sbostic #include "align.h"
bit(infop)1429592Ssam bit(infop) 	process_info *infop;
1529592Ssam /*
1629592Ssam /*	Test set bits
1729592Ssam /*
1829592Ssam /***************************************/
1929592Ssam {
2029592Ssam 	register	long	Register_12;	/* Has to be first reg ! */
2129592Ssam 	register	long	Register_11;
2229592Ssam 	register	long	Register_10;
2329592Ssam 
2429592Ssam 	Register_11 = operand(infop,0)->data;
2529592Ssam 	Register_12 = operand(infop,1)->data;
2629592Ssam 	Register_10=psl;
2729592Ssam 	Set_psl(r10);	/* restore the user psl */
2829592Ssam 	asm ("	bitl	r11,r12");
2929592Ssam 	asm ("	movpsl	r12");
3029592Ssam 	New_cc(Register_12);
3129592Ssam }
32