xref: /original-bsd/sys/tahoe/math/Kfp_mvtoacc.s (revision c8089215)
1/*-
2 * Copyright (c) 1985 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 *	@(#)Kfp_mvtoacc.s	7.1 (Berkeley) 12/06/90
11 */
12
13#include "../math/fp.h"
14#include "../tahoe/SYS.h"
15
16/*
17 * mvtofacc(value, acc_addr)
18 *
19 * move value to floating point accumulator
20 */
21ENTRY(mvtofacc, 0)
22	movl	4(fp),*12(fp)
23	ret
24
25/*
26 * mvtodacc(value_hi, value_lo, acc_addr)
27 *
28 * move value to double precision accumulator
29 */
30ENTRY(mvtodacc, 0)
31	movl	12(fp),r0	# address of accumulator
32	movl	4(fp),(r0)	# most significant longword
33	movl	8(fp),4(r0)	# least significant longword
34	ret
35