b2ba8d7766
git-svn-id: svn://kolibrios.org@1814 a494cfbc-eb01-0410-851d-a64ba20cac60
40 lines
500 B
NASM
40 lines
500 B
NASM
|
|
format MS COFF
|
|
|
|
public Start
|
|
public _hStack
|
|
public _KOL_PATH
|
|
public _KOL_PARAM
|
|
|
|
extrn Memory
|
|
extrn hEnd
|
|
|
|
extrn _kol_main
|
|
|
|
section ".text" code
|
|
db "MENUET01"
|
|
dd 1, Start, hEnd, Memory, _hStack, _KOL_PARAM, _KOL_PATH
|
|
|
|
Start:
|
|
|
|
; èíèöèàëèçàöèÿ êó÷è
|
|
mov eax, 68
|
|
mov ebx, 11
|
|
int 0x40
|
|
|
|
; âûçîâ ãëàâíîé ïðîöåäóðû
|
|
mov eax, _kol_main
|
|
call eax
|
|
|
|
; çàâåðøåíèå ðàáîòû ïðîãðàììû
|
|
mov eax, -1
|
|
int 0x40
|
|
|
|
section ".bss"
|
|
|
|
_KOL_PARAM rb 256
|
|
_KOL_PATH rb 256
|
|
|
|
rb 16*1024
|
|
_hStack:
|