File:  [MW Coherent from dump] / coherent / b / lib / libc / crt / i8086 / dtest.s
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Wed May 29 04:56:35 2019 UTC (7 years ago) by root
Branches: MarkWilliams, MAIN
CVS tags: relic, HEAD
coherent

////////
/
/ Intel 8086 floating point.
/ Test accumulator.
/ SMALL model.
/
////////

	.globl	ddtest
	.globl	_fpac_

////////
/
/ ** ddtest -- push double accumulator.
/
/ This utility routine is called by the compiler to test
/ the double accumulator (a quad word called _fpac_).
/ This "test" instruction used to be generated directly
/ in the leaves.t code table, but in LARGE model _fpac_
/ is not directly addressible and a "call ddtest()" is
/ required instead.
/
/ compiler calling sequence:
/	call	ddtest
/
/ outputs:
/	flags to indicate whether _fpac_ is zero
/
////////

EXPON	=	0x7F80			/ DECVAX format exponent bits

ddtest:	test	_fpac_+6,$EXPON		/ test high word
	ret				/ and return

unix.superglobalmegacorp.com

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