File:  [Power 6/32 Unix Tahoe 4.2BSD] / cci / sys / tahoe / Affs.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Sun Jul 28 12:30:08 2019 UTC (7 years ago) by root
Branches: bsd, MAIN
CVS tags: v121, HEAD
Power 6/32 Unix version 1.21

#include "../machine/alignment.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));
}

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.