xref: /original-bsd/sys/tahoe/align/Atst.c (revision c8089215)
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  *	@(#)Atst.c	7.1 (Berkeley) 12/06/90
11  */
12 
13 #include "align.h"
14 tst(infop)	process_info *infop;
15 /*
16 /*	Test operand, set condition codes.
17 /*
18 /************************************************/
19 {
20 	register long quantity;
21 
22 	quantity = operand(infop,0)->data;
23 	if (quantity < 0) negative_1; else negative_0;
24 	if (quantity == 0) zero_1; else zero_0;
25 	overflow_0; carry_1;
26 }
27