File:  [MW Coherent from dump] / coherent / b / bin / db / i386 / i386db4.s
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Wed May 29 04:56:36 2019 UTC (7 years, 2 months ago) by root
Branches: MarkWilliams, MAIN
CVS tags: relic, HEAD
coherent

//////////
/ db/i386/i386db4.s
/ A debugger.
/ i386 assembly language support.
//////////

//////////
/ double
/ _get_fp_reg(struct _fpreg *fpregp)
/
/ Return a double containing the 80-bit floating point value
/ to which fpregp points in the place expected by software fp emulation.
/ This uses NDP instructions to perform the conversion
/ but stores the result in EDX:EAX for software fp.
/ This should only be called if the coprocessor or emulator is present.
//////////

	.intelorder
	.text
	.globl	_get_fp_reg
	
_get_fp_reg:
	movl	%ecx, 4(%esp)		/ fpregp to ECX
	fldt	(%ecx)			/ fetch 80-bit value to %st0
	fstpl	-8(%esp)		/ store to stack and pop
	movl	%eax, -8(%esp)		/ fetch high dword
	movl	%edx, -4(%esp)		/ and low dword
	ret				/ and return result in EDX:EAX

/ end of db/i386/i386db.h

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.