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 * @(#)Atst.c 7.1 (Berkeley) 12/06/90 11*45760Sbostic */ 1229640Ssam 1345699Sbostic #include "align.h" tst(infop)1429640Ssamtst(infop) process_info *infop; 1529640Ssam /* 1629640Ssam /* Test operand, set condition codes. 1729640Ssam /* 1829640Ssam /************************************************/ 1929640Ssam { 2029640Ssam register long quantity; 2129640Ssam 2229640Ssam quantity = operand(infop,0)->data; 2329640Ssam if (quantity < 0) negative_1; else negative_0; 2429640Ssam if (quantity == 0) zero_1; else zero_0; 2529640Ssam overflow_0; carry_1; 2629640Ssam } 27