mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-21 22:33:48 +03:00
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:
|
|||
|
|
|||
|
; <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
|||
|
mov eax, 68
|
|||
|
mov ebx, 11
|
|||
|
int 0x40
|
|||
|
|
|||
|
; <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
call _main
|
|||
|
|
|||
|
; <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
mov eax, -1
|
|||
|
int 0x40
|
|||
|
|
|||
|
___main:
|
|||
|
ret
|
|||
|
|
|||
|
section ".bss"
|
|||
|
|
|||
|
_PARAM:
|
|||
|
rb 256
|
|||
|
|
|||
|
___path:
|
|||
|
rb 256
|
|||
|
|
|||
|
rb 8*1024
|
|||
|
hStack:
|