home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
LIBSRC.ZOO
/
libsrc
/
local
/
crt0.asm
< prev
next >
Wrap
Assembly Source File
|
1992-03-11
|
1KB
|
62 lines
.386P
; Libraries
INCLUDELIB DOSCALLS
ASSUME cs:FLAT, ds:FLAT, es:FLAT, ss:FLAT
DGROUP GROUP _DATA, CONST, _BSS, STACK
_DATA SEGMENT DWORD USE32 PUBLIC 'DATA'
PUBLIC __acrtused
__acrtused EQU 0 ; link hook
_DATA ENDS
CONST SEGMENT DWORD USE32 PUBLIC 'CONST'
CONST ENDS
_BSS SEGMENT DWORD USE32 PUBLIC 'BSS'
_BSS ENDS
STACK SEGMENT DWORD USE32 STACK 'STACK'
db 8192 DUP(0)
STACK ENDS
_TEXT SEGMENT DWORD USE32 PUBLIC 'CODE'
EXTRN _crt1: PROC
; Entry point for module
PUBLIC __entry
__entry PROC
mov ebp, esp ; copy caller's ebp
; Save command line address
mov esi, [ebp + 16] ; get command line address
; Build command line argument array and count
push esi ; set command line address
call _crt1 ; parse command arguments
__entry ENDP
_TEXT ENDS
END __entry