xref: /csrg-svn/sys/tahoe/align/Apush.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  *	@(#)Apush.c	7.1 (Berkeley) 12/06/90
11*45760Sbostic  */
1229626Ssam 
1345699Sbostic #include	"align.h"
1429626Ssam 
push(infop,longword)1529626Ssam push (infop,longword)	process_info *infop;
1629626Ssam int	longword;
1729626Ssam /*
1829626Ssam /*	Push the given datum on the current stack.
1929626Ssam /*
2029626Ssam /******************************************/
2129626Ssam {
2229626Ssam 
2329626Ssam 	struct oprnd temp;
2429626Ssam 
2529626Ssam 	temp.mode = Add | W;
2629626Ssam 	sp -= 4;
2729626Ssam 	temp.address = sp;
2829626Ssam 	temp.length = 4;
2929626Ssam 	write_back(infop,longword, &temp) ;
3029626Ssam }
31