|
|
1.1 root 1: / (-lgl
2: / COHERENT Version 3.2.2
3: / Copyright (c) 1982, 1992 by Mark Williams Company.
4: / Copyright (c) Ciaran O'Donnell, Bievres, France, 1991.
5: / All rights reserved. May not be copied without permission.
6: / -lgl)
7: / csu/i386/crts0.s
8: / C run-time start-off.
9: / i386 COHERENT native version.
10:
11: .globl _start
12: .globl environ
13: .globl main
14: .globl exit
15: .globl _exit
16:
17: .bss environ,4
18:
19: .text
20: _start:
21: popl %eax / argc to EAX
22: mov %esp, %ebp / argv to EBP
23: lea 4(%esp,%eax,4), %edx / envp to EDX
24: movl %edx, environ / initialize environ
25: pushl %edx
26: pushl %ebp
27: pushl %eax
28: call main / main(argc, argv, envp)
29: addl $12,%esp
30: pushl %eax
31: call exit / exit(status)
32: _exit:
33: movl $1,%eax
34: lcall $0x7,$0
35: hlt / NOTREACHED
36:
37: / end of csu/i386/crts0.s
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.