File:  [MW Coherent from dump] / coherent / b / bin / c / n1 / i8086 / tables / rem.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

/////////
/
/ Remainder. Almost the same as divide. The result comes back in a new
/ place (the dx). No flags are set. There is no need to handle doubles in
/ this table as the operation is not defined on doubles in C.
/
/////////

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

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

unix.superglobalmegacorp.com

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