xref: /csrg-svn/sys/tahoe/align/Adec.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  *	@(#)Adec.c	7.1 (Berkeley) 12/06/90
11*45760Sbostic  */
1229603Ssam 
1345699Sbostic #include "align.h"
dec(infop)1429603Ssam dec(infop)	process_info *infop;
1529603Ssam /*
1629603Ssam /*	Decrement operand.
1729603Ssam /*
1829603Ssam /***************************************/
1929603Ssam {
2029603Ssam 	register	long	Register_12;	/* Has to be first reg ! */
2129603Ssam 	register	long	Register_11;
2229603Ssam 
2329603Ssam 	Register_11 = operand(infop,0)->data;
2429603Ssam 	Register_12=psl;
2529603Ssam 	Set_psl(r12);	/* restore the user psl */
2629603Ssam 	asm ("	decl	r11");			/* Make sure to use the
2729603Ssam 						 * right opcode */
2829603Ssam 	asm ("	movpsl	r12");
2929603Ssam 	New_cc (Register_12);
3029603Ssam 
3129603Ssam 	write_back (infop,Register_11, operand(infop,0) );
3229603Ssam }
33