xref: /csrg-svn/sys/tahoe/align/Amov.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  *	@(#)Amov.c	7.1 (Berkeley) 12/06/90
11*45760Sbostic  */
1229616Ssam 
1345699Sbostic #include "align.h"
mov(infop)1429616Ssam mov(infop) 	process_info *infop;
1529616Ssam /*
1629616Ssam /*	Move operand
1729616Ssam /*
1829616Ssam /****************************************/
1929616Ssam {
2029616Ssam 	register	long	Register_12;	/* Has to be first reg ! */
2129616Ssam 	register	long	Register_11;
2229616Ssam 
2329616Ssam 	Register_12 = operand(infop, 0)->data;
2429616Ssam 	Register_11=psl;
2529616Ssam 	Set_psl(r11);	/* restore the user psl */
2629616Ssam 	asm ("	movl	r12,r11");
2729616Ssam 	asm ("	movpsl	r12");
2829616Ssam 	New_cc (Register_12);
2929616Ssam 	write_back (infop, Register_11, operand(infop,1));
3029616Ssam }
31