ANSIfy syscall args
[unix-history] / usr / src / sys / tahoe / align / Axor2.c
CommitLineData
7c27088c
KB
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 * @(#)Axor2.c 7.1 (Berkeley) %G%
11 */
f78896e2 12
6499767c 13#include "align.h"
f78896e2
SL
14xor2(infop) process_info *infop;
15/*
16/* Xor , 2 operands.
17/*
18/****************************************/
19{
20 register long Register_12; /* Has to be first reg ! */
21 register long result, data0, data1;
22
23 data0 = operand(infop,0)->data;
24 data1 = operand(infop,1)->data;
25 Register_12=psl;
26 Set_psl(r12); /* restore the user psl */
27 result = data0 ^ data1;
28 asm (" movpsl r12");
29 New_cc (Register_12);
30 write_back (infop,result, operand(infop,1) );
31}