File:  [CSRG BSD Unix] / 41BSD / cmd / px / 13mod.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, BSD41
BSD 4.1

#
# Copyright (c) 1979 Regents of the University of California
#
# char sccsid[] = "@(#)13mod.s 4.1 10/10/80";
#
# MODULO
#
_MOD2:
	incl	r10
	cvtwl	(sp),r0
	cvtwl	2(sp),r2
	ashq	$-32,r1,r1
	ediv	r0,r1,r3,(sp)
	jmp	(r8)
_MOD24:
	incl	r10
	cvtwl	(sp)+,r0
	movl	(sp),r2
	ashq	$-32,r1,r1
	ediv	r0,r1,r3,(sp)
	jmp	(r8)
_MOD42:
	incl	r10
	movl	(sp)+,r0
	cvtwl	(sp)+,r2
	ashq	$-32,r1,r1
	ediv	r0,r1,r3,-(sp)
	jmp	(r8)
_MOD4:
	incl	r10
	movl	(sp)+,r0
	movl	(sp),r2
	ashq	$-32,r1,r1
	ediv	r0,r1,r3,(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.