1: /*	@(#)crt0.s	2.1	SCCS id keyword	*/
   2: / C runtime startoff
   3: 
   4: .globl  _exit, _environ
   5: .globl  start
   6: .globl  _main
   7: exit = 1.
   8: 
   9: start:
  10:         setd
  11:         mov     2(sp),r0
  12:         clr     -2(r0)
  13:         mov     sp,r0
  14:         sub     $4,sp
  15:         mov     4(sp),(sp)
  16:         tst     (r0)+
  17:         mov     r0,2(sp)
  18: 1:
  19:         tst     (r0)+
  20:         bne     1b
  21:         cmp     r0,*2(sp)
  22:         blo     1f
  23:         tst     -(r0)
  24: 1:
  25:         mov     r0,4(sp)
  26:         mov     r0,_environ
  27:         jsr     pc,_main
  28:         cmp     (sp)+,(sp)+
  29:         mov     r0,(sp)
  30:         jsr     pc,*$_exit
  31:         sys     exit
  32: 
  33: .bss
  34: _environ:
  35:         .=.+2
  36: .data
  37:         .=.+2           / loc 0 for I/D; null ptr points here.

Defined functions

exit defined in line 7; used 1 times
  • in line 31
start declared in line 5; defined in line 9; used 3 times

Defined variables

_environ declared in line 4; defined in line 34; used 2 times
  • in line 4, 26
Last modified: 1981-07-10
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 638
Valid CSS Valid XHTML 1.0 Strict