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

/////////
/
/ Division. Can only be performed in the DXAX register.
/ The dividend is zero or sign extended. No flags are set.
/
/////////

DIV:
%	PEFFECT|PRVALUE|PLVALUE
	WORD		DXAX	AX	*	AX
		TREG		FS16
		ADR		WORD
			[ZCWD]
			[ZIDIV]	[AR]

%	PEFFECT|PRVALUE|PLVALUE
	WORD		DXAX	AX	*	AX
		TREG		UWORD
		ADR		WORD
			[ZSUB]	[HI R],[HI R]
			[ZDIV]	[AR]

////////
/
/ Floating point, using the numeric data coprocessor (8087).
/
////////

#ifdef NDPDEF
%	PRVALUE|P_SLT
	FF32|FF64	FPAC	FPAC	*	FPAC
		TREG		FF64
		ADR		FS16
			[ZFDIVI] [AR]

%	PRVALUE|P_SLT
	FF32|FF64	FPAC	FPAC	*	FPAC
		TREG		FF64
		ADR		FS32
			[ZFDIVL] [AR]

%	PRVALUE|P_SLT
	FF32|FF64	FPAC	FPAC	*	FPAC
		TREG		FF64
		ADR		FF32
			[ZFDIVF] [AR]

%	PRVALUE|P_SLT
	FF32|FF64	FPAC	FPAC	*	FPAC
		TREG		FF64
		ADR		FF64
			[ZFDIVD] [AR]
#endif

unix.superglobalmegacorp.com

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