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 * @(#)Affc.c 7.1 (Berkeley) 12/06/90 11*45760Sbostic */ 1229608Ssam 1345699Sbostic #include "align.h" ffc(infop)1429608Ssamffc(infop) process_info *infop; 1529608Ssam /* 1629608Ssam /* Find first clear bit. 1729608Ssam /* 1829608Ssam /********************************/ 1929608Ssam { 2029608Ssam 2129608Ssam register long Register_12; /* Has to be first reg ! */ 2229608Ssam register long Register_11; 2329608Ssam register long Register_10; 2429608Ssam 2529608Ssam Register_12 = operand(infop,0)->data; 2629608Ssam Register_10=psl; 2729608Ssam Set_psl(r10); /* restore the user psl */ 2829608Ssam asm (" ffc r12,r11"); 2929608Ssam asm (" movpsl r12"); 3029608Ssam New_cc (Register_12); 3129608Ssam write_back (infop,Register_11, operand(infop,1)); 3229608Ssam } 33