|
|
1.1 root 1: / (-lgl
2: / COHERENT Version 4.0
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: //////////
8: / csu/i386/crts0.s
9: / C run-time start-off.
10: / i386 COHERENT native version.
11: //////////
12:
13: .globl _start
14: .globl environ
15: .globl main
16: .globl exit
17: .globl _exit
18:
19: .bss environ, 4
20:
21: .text
22: _start:
23: popl %eax / argc to EAX
24: mov %esp, %ebp / argv to EBP
25: lea 4(%esp,%eax,4), %edx / envp to EDX
26: movl %edx, environ / initialize environ
27: pushl %edx
28: pushl %ebp
29: pushl %eax
30: call main / main(argc, argv, envp)
31: addl $12,%esp
32: pushl %eax
33: call exit / exit(status)
34: _exit:
35: movl $1,%eax
36: lcall $0x7,$0
37: hlt / NOTREACHED
38:
39: / 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.