File:  [CSRG BSD Unix] / 42BSD / ingres / source / gutil / exit.PDP.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, BSD42
BSD 4.2

/ C library -- exit

/	@(#)exit.PDP.s	7.1	2/5/81

/ exit(code)
/ code is return in r0 to system

/ modified by INGRES group to call _cleanup (standard v7)
/ and to require the loading of '_putchar' (so that
/ the library loads correctly).

.globl	_exit
.globl	_putchar
.globl	__cleanup

_exit:
	mov	r5,-(sp)
	mov	sp,r5
	jsr	pc,__cleanup
	mov	4(r5),r0
	sys	exit

	jsr	pc,_putchar	/ doesn't actually get called.

unix.superglobalmegacorp.com

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