1: # C runtime startoff
   2: # $Header: /na/franz/franz/vax/RCS/hcrt0.s,v 1.1 83/03/27 18:40:07 jkf Exp $
   3: 
   4:         .set    exit,1
   5: .globl  _exit
   6: .globl  start
   7: .globl  hstart
   8: .globl  _main
   9: .globl  _environ
  10: 
  11: #
  12: #	C language startup routine
  13: 
  14: hstart:
  15:         .word   0x0000
  16:         movl    $1,r1
  17:         jbr     L0
  18: start:
  19:         .word   0x0000
  20:         clrl    r1
  21: L0:
  22:         subl2   $8,sp
  23:         movl    8(sp),(sp)  #  argc
  24:         movab   12(sp),r0
  25:         movl    r0,4(sp)  #  argv
  26: L1:
  27:         tstl    (r0)+  #  null args term ?
  28:         bneq    L1
  29:         cmpl    r0,*4(sp)  #  end of 'env' or 'argv' ?
  30:         blss    L2
  31:         tstl    -(r0)  # envp's are in list
  32: L2:
  33:         movl    r0,8(sp)  #  env
  34:         movl    r0,r10  #  indir is 0 if no env ; not 0 if env
  35:         tstl    r1
  36:         beql    L3
  37:         calls   $0,_rlc
  38: L3:
  39:         movl    r10,_environ
  40:         calls   $3,_main
  41:         pushl   r0
  42:         calls   $1,_exit
  43:         chmk    $exit
  44: #
  45:         .data
  46: _environ:       .space  4

Defined functions

L0 defined in line 21; used 1 times
  • in line 17
L1 defined in line 26; used 1 times
  • in line 28
L2 defined in line 32; used 1 times
  • in line 30
L3 defined in line 38; used 1 times
  • in line 36
hstart declared in line 7; defined in line 14; used 1 times
  • in line 7
start declared in line 6; defined in line 18; used 1 times
  • in line 6

Defined variables

_environ declared in line 9; defined in line 46; used 2 times
  • in line 9, 39
Last modified: 1985-08-14
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 870
Valid CSS Valid XHTML 1.0 Strict