home *** CD-ROM | disk | FTP | other *** search
-
- /*
- ** Called as start(argc, argv, envp)
- */
-
- .text
-
- .long 0 /* in case of null references */
- .long 0
-
- .globl start
- start:
- movl %esp,%ebx
- movl 8(%ebx),%eax
- pushl %eax
- movl %eax,_environ
- pushl 4(%ebx)
- pushl (%ebx)
- call _main
- addl $12,%esp
- pushl %eax
- call _exit
-
- movl $0x4c00,%eax
- int $0x21
-
- ret
-
- .data
-
- .globl _environ
- _environ:
- .long 0
-
-
-