1 /*- 2 * Copyright (c) 1986 The Regents of the University of California. 3 * All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Computer Consoles Inc. 7 * 8 * %sccs.include.redist.c% 9 * 10 * @(#)Alnf.c 7.1 (Berkeley) 12/06/90 11 */ 12 13 #include "align.h" 14 lnf(infop) process_info *infop; 15 /* 16 /* Load a negated float operand into accumulator. 17 /* 18 /******************************************************/ 19 { 20 21 register struct oprnd *op_pnt; 22 23 op_pnt = operand(infop,0); 24 if ( reserved( op_pnt->data ) ) 25 exception(infop, ILL_OPRND); 26 if ( op_pnt->data == 0 ) acc_high = 0; 27 else acc_high = 0x80000000 ^ op_pnt->data ; 28 psl &= ~PSL_DBL; 29 infop->acc_dbl = 0; 30 } 31