kolibrios-fun/programs/games/mcities/asm_code.asm
Albom 221b16cc14 mcities: simple turned-based game 'cities' for two players, no AI.
git-svn-id: svn://kolibrios.org@2655 a494cfbc-eb01-0410-851d-a64ba20cac60
2012-05-01 11:40:37 +00:00

34 lines
386 B
NASM

format MS COFF
public Start
extrn Memory
extrn hEnd
extrn _kol_main
section ".text" code
db "MENUET01"
dd 1, Start, hEnd, Memory, hStack, 0, 0
Start:
; èíèöèàëèçàöèÿ êó÷è
mov eax, 68
mov ebx, 11
int 0x40
; âûçîâ ãëàâíîé ïðîöåäóðû
mov eax, _kol_main
call eax
; çàâåðøåíèå ðàáîòû ïðîãðàììû
mov eax, -1
int 0x40
section ".bss"
rb 4096
hStack: