File:  [CSRG BSD Unix] / 40BSD / cmd / px / 12div.s
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:12:53 2018 UTC (8 years, 1 month ago) by root
Branches: MAIN, BSD
CVS tags: HEAD, BSD40
BSD 4.0

#
# Copyright (c) 1979 Regents of the University of California
#
# char sccsid[] = "@(#)12div.s 4.1 10/10/80";
#
# INTEGER DIVISION
#
_DIV2:
	incl	r10
	cvtwl	(sp)+,r0
	cvtwl	(sp)+,r1
	divl3	r0,r1,-(sp)
	jmp	(r8)
_DIV24:
	incl	r10
	cvtwl	(sp)+,r0
	divl2	r0,(sp)
	jmp	(r8)
_DIV42:
	incl	r10
	movl	(sp)+,r0
	cvtwl	(sp)+,r1
	divl3	r0,r1,-(sp)
	jmp	(r8)
_DIV4:
	incl	r10
	divl2	(sp)+,(sp)
	jmp	(r8)

unix.superglobalmegacorp.com

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