1 /*- 2 * Copyright (c) 1986 The Regents of the University of California. 3 * All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Computer Consoles Inc. 7 * 8 * %sccs.include.redist.c% 9 * 10 * @(#)Awrite_back.c 7.1 (Berkeley) 12/06/90 11 */ 12 13 #include "align.h" 14 15 write_back(infop,value, where) 16 process_info *infop; 17 long value; 18 struct oprnd *where; 19 /* 20 /* Put the given result where the operand specifies. 21 /* 22 /* 23 /**************************************************/ 24 { 25 switch (where->length) 26 { 27 case 1: write_byte (infop,value, where); break; 28 case 2: write_word (infop,value, where); break; 29 case 4: write_longword (infop,value, where); break; 30 case 8: write_quadword (infop,value, where); break; 31 default : printf ("Wrong destination length in alignment\n"); 32 } 33 } 34