File:  [MW Coherent from dump] / coherent / b / lib / libc / crt / i8086 / lxdiv.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 C runtime.
/ SMALL model.
/
////////

	.globl	lrdiv
	.globl	lldiv
	.globl	vrdiv
	.globl	lrsgn
	.globl	llsgn

////////
/
/ long
/ lrdiv(a, b);
/ long a;
/ long b;
/
/ long
/ lldiv(a, p);
/ long a;
/ long *p;
/
/ these routines perform long division. they are called from
/ the generated code whenever a long division is found in the
/ user's program.
/
/ both of these routines are just interfaces to the unsigned long
/ divide routine via the long sign adjusters.
/
////////

lrdiv:	mov	ax,$vrdiv		/ get pointer to divide code
	jmp	lrsgn			/ and do the operation.

lldiv:	mov	ax,$vrdiv		/ get pointer to divide code
	jmp	llsgn			/ and do the operation.

unix.superglobalmegacorp.com

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