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 * @(#)Ashrl.c 7.1 (Berkeley) 12/06/90 11*45760Sbostic */ 1229634Ssam 1345699Sbostic #include "align.h" shrl(infop)1429634Ssamshrl(infop) process_info *infop; 1529634Ssam /* 1629634Ssam /* Shift logical right (longword). 1729634Ssam /* 1829634Ssam /*******************************/ 1929634Ssam { 2029634Ssam register long Register_12; /* Has to be first reg ! */ 2129634Ssam register long Register_11; 2229634Ssam register long Register_10; 2329634Ssam 2429634Ssam Register_12 = operand(infop,0)->data; 2529634Ssam Register_11 = operand(infop,1)->data; 2629634Ssam Register_10=psl; 2729634Ssam Set_psl(r10); /* restore the user psl */ 2829634Ssam asm (" shrl r12,r11,r10"); 2929634Ssam asm (" movpsl r12"); 3029634Ssam New_cc (Register_12); 3129634Ssam write_back (infop, Register_10, operand(infop,2)); 3229634Ssam } 33