4.3BSD-Reno/src/sys/tahoealign/Affs.c

Compare this file to the similar file:
Show the results in this format:

/*	Affs.c	1.1	86/07/20	*/

#include "../tahoealign/align.h"
ffs_op(infop)	process_info *infop;
/*
/*	Find first set bit.
/*
/********************************/
{

	register long	Register_12;	/* Has to be first reg ! */
	register long	Register_11;

	Register_12 = operand(infop,0)->data;
	Register_11=psl;
	Set_psl(r11);	/* restore the user psl */
	asm ("	ffs	r12,r11");
	asm ("	movpsl	r12");
	New_cc (Register_12);
	write_back (infop,Register_11, operand(infop,1));
}