mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-19 05:12:45 +03:00
32 lines
733 B
NASM
32 lines
733 B
NASM
|
format MS COFF
|
||
|
|
||
|
StackSize = 16384
|
||
|
|
||
|
; must be alphabetically first in the image
|
||
|
section '.1seg' data readable writable
|
||
|
extrn _crtStartUp ; real entry point
|
||
|
extrn _kosCmdLine
|
||
|
extrn _kosExePath
|
||
|
extrn _exeStack
|
||
|
public fakeEntry
|
||
|
|
||
|
kos_header:
|
||
|
db 'MENUET01' ; header
|
||
|
dd 1 ; headerver
|
||
|
dd _crtStartUp ; entry
|
||
|
dd 0 ; i_end, filled by doexe2.asm
|
||
|
dd 0 ; memsize, filled by doexe2.asm
|
||
|
dd _exeStack + StackSize ; stack
|
||
|
dd _kosCmdLine ; params
|
||
|
dd _kosExePath ; icon
|
||
|
fakeEntry: ; only for linker, to force including this obj file
|
||
|
; real entry is crtStartUp
|
||
|
|
||
|
; initializers
|
||
|
section '.CRT$XCA' data readable writable
|
||
|
public ___xc_a
|
||
|
___xc_a:
|
||
|
section '.CRT$XCZ' data readable writable
|
||
|
public ___xc_z
|
||
|
___xc_z:
|