xref: /original-bsd/sys/tahoe/align/Amov.c (revision 31e799e3)
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  *	@(#)Amov.c	7.1 (Berkeley) 12/06/90
11  */
12 
13 #include "align.h"
14 mov(infop) 	process_info *infop;
15 /*
16 /*	Move operand
17 /*
18 /****************************************/
19 {
20 	register	long	Register_12;	/* Has to be first reg ! */
21 	register	long	Register_11;
22 
23 	Register_12 = operand(infop, 0)->data;
24 	Register_11=psl;
25 	Set_psl(r11);	/* restore the user psl */
26 	asm ("	movl	r12,r11");
27 	asm ("	movpsl	r12");
28 	New_cc (Register_12);
29 	write_back (infop, Register_11, operand(infop,1));
30 }
31