1*29583Ssam /* Aadd2.c 1.1 86/07/20 */ 2*29583Ssam 3*29583Ssam #include "../tahoealign/align.h" 4*29583Ssam add2(infop) process_info *infop; 5*29583Ssam /* 6*29583Ssam /* Add , 2 operands. 7*29583Ssam /* 8*29583Ssam /*****************************************/ 9*29583Ssam { 10*29583Ssam register long Register_12; /* Has to be first reg ! */ 11*29583Ssam register long data0, data1, result; 12*29583Ssam 13*29583Ssam data0 = operand(infop,0)->data; 14*29583Ssam data1 = operand(infop,1)->data; 15*29583Ssam Register_12=psl; 16*29583Ssam Set_psl(r12); /* restore the user psl */ 17*29583Ssam result = data0 + data1; /* 32 bits of true result */ 18*29583Ssam asm (" movpsl r12"); 19*29583Ssam New_cc (Register_12); 20*29583Ssam write_back (infop,result, operand(infop,1) ); 21*29583Ssam } 22