|
|
1.1 root 1: # "@(#)s_cat_s.s 5.1 (Berkeley) 11/3/86"
2:
3: .data
4: .text
5: LL0:.align 1
6: .globl _s_cat
7: .set MASK__,0x1F04
8: .data
9: .text
10: _s_cat:.word MASK__
11: movl 8(fp),r12 /* rpp */
12: movl 20(fp),r10 /* ll */
13: movl 12(fp),r9 /* pi = &rnp */
14: shll $2,*16(fp),r1 /* *np * 4 */
15: addl3 r1,r9,r8 /* pn = &rnp + *np */
16: movl 4(fp),r1 /* lp */
17: jbr L18 /* for */
18:
19: L20:
20: movs3 /* copy nc chars from rp to lp */
21: addl2 $4,r12 /* rpp++ */
22: addl2 $4,r9 /* pi++ */
23:
24: L18:
25: cmpl r9,r8 /* pi < pn */
26: jgequ L22 /* pn reached - out of loop */
27: movl r10,r2 /* nc = ll */
28: cmpl (r9),r2 /* if (*pi < nc) */
29: jgeq L19
30: movl (r9),r2 /* nc = *pi */
31:
32: L19:
33: subl2 r2,r10 /* ll -= nc */
34: movl (r12),r0 /* rp = *rpp */
35: jbr L20
36:
37: L2000005: /* pad with spaces */
38: movb $32,(r1)
39: incl r1
40:
41: L22: /* while (--ll >= 0) */
42: decl r10
43: jgeq L2000005
44: ret#2
45:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.