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 * @(#)Aand2.c 7.1 (Berkeley) 12/06/90 11*45760Sbostic */ 1229587Ssam 1345699Sbostic #include "align.h" and2(infop)1429587Ssamand2(infop) process_info *infop; 1529587Ssam /* 1629587Ssam /* And , 2 operands. 1729587Ssam /* 1829587Ssam /*****************************************/ 1929587Ssam { 2029587Ssam register long Register_12; /* Has to be first reg ! */ 2129587Ssam register long data0, data1, result; 2229587Ssam 2329587Ssam data0 = operand(infop,0)->data; 2429587Ssam data1 = operand(infop,1)->data; 2529587Ssam Register_12=psl; 2629587Ssam Set_psl(r12); /* restore the user psl */ 2729587Ssam result = data0 & data1; 2829587Ssam asm (" movpsl r12"); 2929587Ssam New_cc (Register_12); 3029587Ssam write_back (infop,result, operand(infop,1) ); 3129587Ssam } 32