V7/usr/src/libc/csu/crt0.s

Compare this file to the similar file:
Show the results in this format:

/ C runtime startoff

.globl	_exit, _environ
.globl	start
.globl	_main
exit = 1.

start:
	setd
	mov	2(sp),r0
	clr	-2(r0)
	mov	sp,r0
	sub	$4,sp
	mov	4(sp),(sp)
	tst	(r0)+
	mov	r0,2(sp)
1:
	tst	(r0)+
	bne	1b
	cmp	r0,*2(sp)
	blo	1f
	tst	-(r0)
1:
	mov	r0,4(sp)
	mov	r0,_environ
	jsr	pc,_main
	cmp	(sp)+,(sp)+
	mov	r0,(sp)
	jsr	pc,*$_exit
	sys	exit

.bss
_environ:
	.=.+2
.data
	.=.+2		/ loc 0 for I/D; null ptr points here.