xref: /csrg-svn/sys/tahoe/align/Acvt.c (revision 45699)
1*45699Sbostic /*	Acvt.c	1.2	90/12/04	*/
229601Ssam 
3*45699Sbostic #include "align.h"
429601Ssam cvt(infop) 	process_info *infop;
529601Ssam /*
629601Ssam /*	Convert , checks overflow
729601Ssam /*
829601Ssam /****************************************/
929601Ssam {
1029601Ssam 	register long result;
1129601Ssam 
1229601Ssam 	result = operand(infop,0)->data;
1329601Ssam 	if (result < 0 )  negative_1 ; else negative_0;
1429601Ssam 	if (result == 0 )  zero_1 ; else zero_0;
1529601Ssam 	carry_1; overflow_0;
1629601Ssam 		/* Overflow may be set by writing back */
1729601Ssam 	write_back (infop, result, operand(infop,1) );
1829601Ssam }
19