1: # C runtime startoff
   2: # $Header: /na/franz/franz/vax/RCS/crt0.s,v 1.1 83/03/27 18:39:57 jkf Exp $
   3: 
   4:         .set    exit,1
   5: .globl  _exit
   6: .globl  start
   7: .globl  _main
   8: .globl  _environ
   9: 
  10: start:
  11:         .word   0x0000
  12:         subl2   $8,sp
  13:         movl    8(sp),(sp)  #  argc
  14:         movab   12(sp),r0
  15:         movl    r0,4(sp)  #  argv
  16: L1:
  17:         tstl    (r0)+  #  null args term ?
  18:         bneq    L1
  19:         cmpl    r0,*4(sp)  #  end of 'env' or 'argv' ?
  20:         blss    L2
  21:         tstl    -(r0)  # envp's are in list
  22: L2:
  23:         movl    r0,8(sp)  #  env
  24: #	movl  r0,_environ  #  indir is 0 if no env ; not 0 if env
  25:         calls   $3,_main
  26:         pushl   r0
  27:         calls   $1,_exit
  28:         chmk    $exit
  29:         .data
  30: _environ:       .space  4

Defined functions

L1 defined in line 16; used 1 times
  • in line 18
L2 defined in line 22; used 1 times
  • in line 20
start declared in line 6; defined in line 10; used 1 times
  • in line 6

Defined variables

_environ declared in line 8; defined in line 30; used 1 times
  • in line 8
Last modified: 1985-08-14
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 856
Valid CSS Valid XHTML 1.0 Strict