Annotation of researchv10no/cmd/wc.s, revision 1.1.1.1

1.1       root        1: .data
                      2: .data
                      3: .globl _type
                      4: _type:.long    0x3030303
                      5: .long  0x3030303
                      6: .long  0x3000103
                      7: .long  0x3030303
                      8: .long  0x3030303
                      9: .long  0x3030303
                     10: .long  0x3030303
                     11: .long  0x3030303
                     12: .long  0x2020201
                     13: .long  0x2020202
                     14: .long  0x2020202
                     15: .long  0x2020202
                     16: .long  0x2020202
                     17: .long  0x2020202
                     18: .long  0x2020202
                     19: .long  0x2020202
                     20: .long  0x2020202
                     21: .long  0x2020202
                     22: .long  0x2020202
                     23: .long  0x2020202
                     24: .long  0x2020202
                     25: .long  0x2020202
                     26: .long  0x2020202
                     27: .long  0x2020202
                     28: .long  0x2020202
                     29: .long  0x2020202
                     30: .long  0x2020202
                     31: .long  0x2020202
                     32: .long  0x2020202
                     33: .long  0x2020202
                     34: .long  0x2020202
                     35: .long  0x3020202
                     36: .long  0x3030303
                     37: .long  0x3030303
                     38: .long  0x3030303
                     39: .long  0x3030303
                     40: .long  0x3030303
                     41: .long  0x3030303
                     42: .long  0x3030303
                     43: .long  0x3030303
                     44: .long  0x3030303
                     45: .long  0x3030303
                     46: .long  0x3030303
                     47: .long  0x3030303
                     48: .long  0x3030303
                     49: .long  0x3030303
                     50: .long  0x3030303
                     51: .long  0x3030303
                     52: .long  0x3030303
                     53: .long  0x3030303
                     54: .long  0x3030303
                     55: .long  0x3030303
                     56: .long  0x3030303
                     57: .long  0x3030303
                     58: .long  0x3030303
                     59: .long  0x3030303
                     60: .long  0x3030303
                     61: .long  0x3030303
                     62: .long  0x3030303
                     63: .long  0x3030303
                     64: .long  0x3030303
                     65: .long  0x3030303
                     66: .long  0x3030303
                     67: .long  0x3030303
                     68: .data
                     69: .align 2
                     70: .globl _opt
                     71: _opt:.data     2
                     72: L20:.byte      0x6c,0x77,0x63,0x0
                     73: .data
                     74: .long  L20
                     75: .comm  _twords,4
                     76: .comm  _tlines,4
                     77: .comm  _tchars,4
                     78: .text
                     79:        .stabs  "vaxpcc2",0xf0,0,17665,556214769
                     80: .align 2
                     81: .globl _main
                     82: .data  1
                     83: L38:.byte      0x77,0x63,0x3a,0x20,0x0
                     84: .text
                     85: .data  1
                     86: L42:.byte      0x74,0x6f,0x74,0x61,0x6c,0x0
                     87: .text
                     88: .set   L.R1,0xf00
                     89: .set   L.SO1,0x0
                     90: .data
                     91: .comm  _buf,4096
                     92: .text
                     93: _main:.word    L.R1
                     94: subl2  $L.SO1,sp
                     95:        .stabs  "main",0x24,0,65,_main
                     96:        .stabs  "main",0x20,0,68,0
                     97:        .stabs  "argc",0xa0,0,4,4
                     98:        .stabs  "argv",0xa0,0,162,8
                     99: clrl   r9
                    100: cmpl   4(ap),$1
                    101: jleq   L26
                    102: movl   8(ap),r0
                    103: cmpb   *4(r0),$45
                    104: jneq   L26
                    105: addl3  $4,r0,r8
                    106: incl   (r8)
                    107: movl   (r8),_opt
                    108: decl   4(ap)
                    109: addl2  $4,8(ap)
                    110: L26:cmpl       4(ap),$1
                    111: jneq   L28
                    112: pushl  $0
                    113: pushl  $0
                    114: calls  $2,_count
                    115: jbr    L30
                    116: L28:movl       $1,r11
                    117: jbr    L33
                    118: L34:pushl      $0
                    119: pushl  *8(ap)[r11]
                    120: calls  $2,_open
                    121: movl   r0,r10
                    122: jgeq   L36
                    123: pushal L38
                    124: pushal __iob+32
                    125: calls  $2,_fprintf
                    126: pushl  *8(ap)[r11]
                    127: calls  $1,_perror
                    128: movl   $1,r9
                    129: jbr    L31
                    130: L36:pushl      *8(ap)[r11]
                    131: pushl  r10
                    132: calls  $2,_count
                    133: L31:incl       r11
                    134: L33:cmpl       r11,4(ap)
                    135: jlss   L34
                    136: L30:cmpl       4(ap),$2
                    137: jleq   L40
                    138: pushal L42
                    139: pushl  _tlines
                    140: pushl  _twords
                    141: pushl  _tchars
                    142: calls  $4,_print
                    143: L40:movl       r9,r0
                    144: jbr    L25
                    145:        .stabs  "status",0x40,0,4,9
                    146:        .stabs  "fd",0x40,0,4,10
                    147:        .stabs  "i",0x40,0,4,11
                    148: L25:ret
                    149: L43:   .stabs  "main",0xf4,0,86,L43
                    150: .align 2
                    151: .globl _count
                    152: .set   L.R2,0xfc0
                    153: .set   L.SO2,0x0
                    154: .data
                    155: .text
                    156: _count:.word   L.R2
                    157: subl2  $L.SO2,sp
                    158:        .stabs  "count",0x24,0,90,_count
                    159:        .stabs  "count",0x20,0,68,0
                    160:        .stabs  "fd",0xa0,0,4,4
                    161:        .stabs  "name",0xa0,0,34,8
                    162: clrl   r11
                    163: clrl   r8
                    164: clrl   r7
                    165: clrl   r6
                    166: jbr    L48
                    167: L49:addl2      r10,r8
                    168: moval  _buf,r9
                    169: jbr    L51
                    170: L52:movzbl     (r9)+,r0
                    171: cvtbl  _type(r0),r0
                    172: bisl2  r11,r0
                    173: casel  r0,$0,$7
                    174: L2000001:
                    175: .word  L55-L2000001
                    176: .word  L51-L2000001
                    177: .word  L59-L2000001
                    178: .word  L51-L2000001
                    179: .word  L56-L2000001
                    180: .word  L2000000-L2000001
                    181: .word  L51-L2000001
                    182: .word  L51-L2000001
                    183: L51:decl       r10
                    184: jgeq   L52
                    185: L48:pushl      $4096
                    186: pushal _buf
                    187: pushl  4(ap)
                    188: calls  $3,_read
                    189: movl   r0,r10
                    190: jgtr   L49
                    191: pushl  4(ap)
                    192: calls  $1,_close
                    193: pushl  8(ap)
                    194: pushl  r7
                    195: pushl  r6
                    196: pushl  r8
                    197: calls  $4,_print
                    198: addl2  r8,_tchars
                    199: addl2  r6,_twords
                    200: addl2  r7,_tlines
                    201:        .stabs  "words",0x40,0,4,6
                    202:        .stabs  "lines",0x40,0,4,7
                    203:        .stabs  "chars",0x40,0,4,8
                    204:        .stabs  "cp",0x40,0,44,9
                    205:        .stabs  "n",0x40,0,4,10
                    206:        .stabs  "token",0x40,0,4,11
                    207: ret
                    208: L55:incl       r7
                    209: jbr    L51
                    210: L56:incl       r7
                    211: L2000000:clrl  r11
                    212: jbr    L51
                    213: L59:movl       $4,r11
                    214: incl   r6
                    215: jbr    L51
                    216: L66:   .stabs  "count",0xf4,0,127,L66
                    217: .align 2
                    218: .globl _print
                    219: .data  1
                    220: L75:.byte      0x25,0x37,0x6c,0x64,0x20,0x0
                    221: .text
                    222: .data  1
                    223: L77:.byte      0x25,0x37,0x6c,0x64,0x20,0x0
                    224: .text
                    225: .data  1
                    226: L79:.byte      0x25,0x37,0x6c,0x64,0x0
                    227: .text
                    228: .data  1
                    229: L83:.byte      0x20,0x25,0x73,0xa,0x0
                    230: .text
                    231: .data  1
                    232: L85:.byte      0xa,0x0
                    233: .text
                    234: .set   L.R3,0x800
                    235: .set   L.SO3,0x0
                    236: .data
                    237: .stabs "buf",0x20,0,108,0
                    238: .stabn 0xfc,0,0,4096
                    239: .stabs "tchars",0x20,0,4,0
                    240: .stabs "tlines",0x20,0,4,0
                    241: .stabs "twords",0x20,0,4,0
                    242: .stabs "opt",0x20,0,34,0
                    243: .stabs "type",0x20,0,98,0
                    244: .stabn 0xfc,0,0,256
                    245: .stabs "_iob",0x20,0,104,0
                    246: .stabs "_iobuf",0xfa,0,0,0
                    247: .stabn 0xfc,0,0,120
                    248: .text
                    249: _print:.word   L.R3
                    250: subl2  $L.SO3,sp
                    251:        .stabs  "print",0x24,0,131,_print
                    252:        .stabs  "print",0x20,0,68,0
                    253:        .stabs  "charct",0xa0,0,4,4
                    254:        .stabs  "wordct",0xa0,0,4,8
                    255:        .stabs  "linect",0xa0,0,4,12
                    256:        .stabs  "name",0xa0,0,34,16
                    257: movl   _opt,r11
                    258: jbr    L69
                    259: L70:cvtbl      (r11)+,r0
                    260: casel  r0,$99,$20
                    261: L2000005:
                    262: .word  L78-L2000005
                    263: .word  L69-L2000005
                    264: .word  L69-L2000005
                    265: .word  L69-L2000005
                    266: .word  L69-L2000005
                    267: .word  L69-L2000005
                    268: .word  L69-L2000005
                    269: .word  L69-L2000005
                    270: .word  L69-L2000005
                    271: .word  L73-L2000005
                    272: .word  L69-L2000005
                    273: .word  L69-L2000005
                    274: .word  L69-L2000005
                    275: .word  L69-L2000005
                    276: .word  L69-L2000005
                    277: .word  L69-L2000005
                    278: .word  L69-L2000005
                    279: .word  L69-L2000005
                    280: .word  L69-L2000005
                    281: .word  L69-L2000005
                    282: .word  L76-L2000005
                    283: jbr    L69
                    284: L2000003:pushl 16(ap)
                    285: pushal L83
                    286: calls  $2,_printf
                    287: jbr    L84
                    288: L73:pushl      12(ap)
                    289: pushal L75
                    290: jbr    L2000004
                    291: L76:pushl      8(ap)
                    292: pushal L77
                    293: jbr    L2000004
                    294: L78:pushl      4(ap)
                    295: pushal L79
                    296: L2000004:calls $2,_printf
                    297: L69:tstb       (r11)
                    298: jneq   L70
                    299: tstl   16(ap)
                    300: jneq   L2000003
                    301: pushal L85
                    302: calls  $1,_printf
                    303: L84:   .stabs  "wd",0x40,0,34,11
                    304: ret
                    305: L86:   .stabs  "print",0xf4,0,150,L86
                    306: L87:   .stabs  "wc.c",0x94,0,152,L87
                    307: 

unix.superglobalmegacorp.com

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