File:  [CSRG BSD Unix] / 40BSD / cmd / lisp / vsyscall.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

	.asciz	"@(#)vsyscall.s	34.1	10/3/80"
	.globl	_vsyscall
	.globl	cerror
_vsyscall:
	.word	0x0000
	movl	4(ap),r0		# point at arg array
	movl	(r0)+,r1		# syscall number	
	movl	$10,r2
Loop:
	pushl	(r0)[r2]			# push argument
	sobgeq	r2,Loop			# push 10 arguments	
	pushl	$10				# arg count
	movl	sp,ap			# point at args	
	chmk	r1				# do it
	bcs		L1
	ret
L1:
	jmp		cerror

unix.superglobalmegacorp.com

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