1*45699Sbostic /* Atst.c 1.2 90/12/04 */ 229640Ssam 3*45699Sbostic #include "align.h" 429640Ssam tst(infop) process_info *infop; 529640Ssam /* 629640Ssam /* Test operand, set condition codes. 729640Ssam /* 829640Ssam /************************************************/ 929640Ssam { 1029640Ssam register long quantity; 1129640Ssam 1229640Ssam quantity = operand(infop,0)->data; 1329640Ssam if (quantity < 0) negative_1; else negative_0; 1429640Ssam if (quantity == 0) zero_1; else zero_0; 1529640Ssam overflow_0; carry_1; 1629640Ssam } 17