mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-11-24 09:49:41 +03:00
efd8f1922c
git-svn-id: svn://kolibrios.org@5266 a494cfbc-eb01-0410-851d-a64ba20cac60
45 lines
480 B
NASM
45 lines
480 B
NASM
|
|
format MS COFF
|
|
|
|
public Start
|
|
public ___path
|
|
public _PARAM
|
|
public ___main
|
|
|
|
extrn Memory
|
|
extrn hEnd
|
|
|
|
extrn _main
|
|
|
|
section ".text" code
|
|
db "MENUET01"
|
|
dd 1, Start, hEnd, Memory, hStack, _PARAM, ___path
|
|
|
|
Start:
|
|
|
|
; èíèöèàëèçàöèÿ êó÷è
|
|
mov eax, 68
|
|
mov ebx, 11
|
|
int 0x40
|
|
|
|
; âûçîâ ãëàâíîé ïðîöåäóðû
|
|
call _main
|
|
|
|
; çàâåðøåíèå ðàáîòû ïðîãðàììû
|
|
mov eax, -1
|
|
int 0x40
|
|
|
|
___main:
|
|
ret
|
|
|
|
section ".bss"
|
|
|
|
_PARAM:
|
|
rb 256
|
|
|
|
___path:
|
|
rb 256
|
|
|
|
rb 8*1024
|
|
hStack:
|