|
|
1.1 root 1: / (-lgl
2: / COHERENT Version 4.1
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/i387/crts0.s
9: / C run-time start-off.
10: / i386 COHERENT native version with i80x87 NDP initialization.
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: fninit / initialize NDP
24: fwait / and wait for it
25: popl %eax / argc to EAX
26: mov %esp, %ebp / argv to EBP
27: lea 4(%esp,%eax,4), %edx / envp to EDX
28: movl %edx, environ / initialize environ
29: pushl %edx
30: pushl %ebp
31: pushl %eax
32: call main / main(argc, argv, envp)
33: addl $12,%esp
34: pushl %eax
35: call exit / exit(status)
36: _exit:
37: movl $1,%eax
38: lcall $0x7,$0
39: hlt / NOTREACHED
40:
41: / end of csu/i387/crts0.s
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.