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 * @(#)Ashar.c 7.1 (Berkeley) 12/06/90 11*45760Sbostic */ 1229632Ssam 1345699Sbostic #include "align.h" shar(infop)1429632Ssamshar(infop) process_info *infop; 1529632Ssam /* 1629632Ssam /* Shift arithmetic right (longword). 1729632Ssam /* 1829632Ssam /*******************************/ 1929632Ssam { 2029632Ssam register long Register_12; /* Has to be first reg ! */ 2129632Ssam register long Register_11; 2229632Ssam register long Register_10; 2329632Ssam 2429632Ssam Register_12 = operand(infop,0)->data; 2529632Ssam Register_11 = operand(infop,1)->data; 2629632Ssam Register_10=psl; 2729632Ssam Set_psl(r10); /* restore the user psl */ 2829632Ssam asm (" shar r12,r11,r10"); 2929632Ssam asm (" movpsl r12"); 3029632Ssam New_cc (Register_12); 3129632Ssam write_back (infop, Register_10, operand(infop,2)); 3229632Ssam } 33