File:  [Research Unix] / researchv10dc / cmd / pascal / libpc / RAND.s
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:33 2018 UTC (8 years, 3 months ago) by root
Branches: belllabs, MAIN
CVS tags: researchv10, HEAD
researchv10 Dan Cross

#
# Copyright (c) 1979 Regents of the University of California
#
# sccsid[] = "@(#)RAND.s 1.1 1/16/81";
#
# calculate (1103515245*seed) mod 2^31-1
#
	.globl	_RAND
_RAND:
	.word	0
	emul	4(ap),$1103515245,$0,r0	# a * seed into r1,r0 quadword
	ediv	$0x7fffffff,r0,r1,r0	# get quotient into r1, remainder in r0
	ret

unix.superglobalmegacorp.com

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