vstatus.s

来自「操作系统SunOS 4.1.3版本的源码」· S 代码 · 共 49 行

S
49
字号
        .data|        .asciz  "@(#)Vstatus.s 1.1 92/07/30 Copyr 1986 Sun Micro"        .even        .text|       Copyright (c) 1986 by Sun Microsystems, Inc.#include "fpcrtdefs.h"VECTORED(status)	.textENTER(_fpstatus_)	movel	sp@(4),a0	| Get address of long argument.	movel	a0@,d0		| Get long argument.	jmp	VstatusENTER(getquotient)		| Get remainder quotient.	JBSR(Vstatus, a0)	movel	d0,sp@-	JBSR(Vstatus, a0)	movel	sp@+,d0	swap	d0	andw	#0x7f,d0	btst	#23,d0	beqs	1f	negw	d01:	extl	d0		| Old quotient.	rtsENTER(setquotient)		| Set remainder quotient.	tstl	d0	bpls	1f	negb	d0	bset	#7,d0	bras	2f1:	bclr	#7,d02:	andl	#0xff,d0	| Clear other bits.	swap	d0	movel	d0,sp@-	JBSR(Vstatus, a0)	andl	#0xff00ffff,d0	| Clear quotient.	orl	sp@+,d0		| Insert new quotient.	JBSR(Vstatus, a0)	rts

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?