xref: /csrg-svn/sys/tahoe/align/Awrite_back.c (revision 45699)
1*45699Sbostic /*	Awrite_back.c	1.2	90/12/04	*/
229641Ssam 
3*45699Sbostic #include "align.h"
429641Ssam 
529641Ssam write_back(infop,value, where)
629641Ssam process_info	*infop;
729641Ssam long		value;
829641Ssam struct	oprnd 	*where;
929641Ssam /*
1029641Ssam /*	Put the given result where the operand specifies.
1129641Ssam /*
1229641Ssam /*
1329641Ssam /**************************************************/
1429641Ssam {
1529641Ssam 	switch (where->length)
1629641Ssam 	{
1729641Ssam 		case 1: write_byte (infop,value, where); break;
1829641Ssam 		case 2: write_word (infop,value, where); break;
1929641Ssam 		case 4: write_longword (infop,value, where); break;
2029641Ssam 		case 8: write_quadword (infop,value, where); break;
2129641Ssam 		default : printf ("Wrong destination length in alignment\n");
2229641Ssam 	}
2329641Ssam }
24