xref: /csrg-svn/sys/tahoe/align/Awrite_back.c (revision 45760)
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  *	@(#)Awrite_back.c	7.1 (Berkeley) 12/06/90
11*45760Sbostic  */
1229641Ssam 
1345699Sbostic #include "align.h"
1429641Ssam 
write_back(infop,value,where)1529641Ssam write_back(infop,value, where)
1629641Ssam process_info	*infop;
1729641Ssam long		value;
1829641Ssam struct	oprnd 	*where;
1929641Ssam /*
2029641Ssam /*	Put the given result where the operand specifies.
2129641Ssam /*
2229641Ssam /*
2329641Ssam /**************************************************/
2429641Ssam {
2529641Ssam 	switch (where->length)
2629641Ssam 	{
2729641Ssam 		case 1: write_byte (infop,value, where); break;
2829641Ssam 		case 2: write_word (infop,value, where); break;
2929641Ssam 		case 4: write_longword (infop,value, where); break;
3029641Ssam 		case 8: write_quadword (infop,value, where); break;
3129641Ssam 		default : printf ("Wrong destination length in alignment\n");
3229641Ssam 	}
3329641Ssam }
34