mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-11-28 03:39:35 +03:00
3fdf00fdeb
Techdemo of Heliothryx game by Roman Shuvalov git-svn-id: svn://kolibrios.org@5225 a494cfbc-eb01-0410-851d-a64ba20cac60
42 lines
463 B
NASM
42 lines
463 B
NASM
|
|
format MS COFF
|
|
|
|
public Start
|
|
public _PATH
|
|
public _PARAM
|
|
|
|
extrn Memory
|
|
extrn hEnd
|
|
|
|
extrn _kol_main
|
|
|
|
section ".text" code
|
|
db "MENUET01"
|
|
dd 1, Start, hEnd, Memory, hStack, _PARAM, _PATH
|
|
|
|
Start:
|
|
|
|
; èíèöèàëèçàöèÿ êó÷è
|
|
mov eax, 68
|
|
mov ebx, 11
|
|
int 0x40
|
|
|
|
; âûçîâ ãëàâíîé ïðîöåäóðû
|
|
mov eax, _kol_main
|
|
call eax
|
|
|
|
; çàâåðøåíèå ðàáîòû ïðîãðàììû
|
|
mov eax, -1
|
|
int 0x40
|
|
|
|
section ".bss"
|
|
|
|
_PARAM:
|
|
rb 256
|
|
|
|
_PATH:
|
|
rb 256
|
|
|
|
rb 8*1024
|
|
hStack:
|