kolibrios/programs/games/nsider/start.asm
eugene455 efd8f1922c The first stable version of N-sider. Level editor, 2 redraw technologies and save/load data added.
git-svn-id: svn://kolibrios.org@5266 a494cfbc-eb01-0410-851d-a64ba20cac60
2014-12-26 20:27:51 +00:00

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: