mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-17 20:32:35 +03:00
4ed6be1119
git-svn-id: svn://kolibrios.org@3245 a494cfbc-eb01-0410-851d-a64ba20cac60
37 lines
569 B
NASM
37 lines
569 B
NASM
|
|
use32
|
|
org 0x0
|
|
|
|
db 'MENUET01' ; 8 byte id
|
|
dd 0x01 ; header version
|
|
dd START ; start of code
|
|
dd I_END ; size of image
|
|
dd 0x10000 ; memory for app
|
|
dd 0x10000 ; esp
|
|
dd param_area ; I_Param
|
|
dd app_path ; I_Path
|
|
|
|
include 'shell.inc'
|
|
START: ; start of execution
|
|
|
|
call _sc_init
|
|
|
|
push dword s
|
|
call _sc_gets
|
|
|
|
push dword s
|
|
call _sc_puts
|
|
|
|
call _sc_exit
|
|
|
|
mov eax, -1
|
|
int 0x40
|
|
|
|
|
|
I_END:
|
|
|
|
param_area rb 256
|
|
app_path rb 256
|
|
s rb 256
|
|
|