forked from KolibriOS/kolibrios
56 lines
1.0 KiB
NASM
56 lines
1.0 KiB
NASM
|
use32
|
|||
|
|
|||
|
org 0x0
|
|||
|
|
|||
|
db 'MENUET01'
|
|||
|
dd 0x01
|
|||
|
dd START
|
|||
|
dd I_END
|
|||
|
dd 0x100000
|
|||
|
dd 0x7fff0
|
|||
|
dd I_PARAM ; 㪠<><E3AAA0>⥫<EFBFBD> <20><> <20><>ࠬ<EFBFBD><E0A0AC><EFBFBD><EFBFBD>
|
|||
|
|
|||
|
include "lang.inc"
|
|||
|
include "cmdipc.inc" ; <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 䠩<> CMDIPC.INC
|
|||
|
|
|||
|
START:
|
|||
|
call initipc ; <20><><EFBFBD>樠<EFBFBD><E6A8A0><EFBFBD><EFBFBD><EFBFBD><E0AEA2><EFBFBD> <20><><EFBFBD> ࠡ<><E0A0A1><EFBFBD> <20> CMD
|
|||
|
|
|||
|
mov eax,47 ; <20>뢥<EFBFBD><EBA2A5><EFBFBD> ᮮ<>饭<EFBFBD><E9A5AD>
|
|||
|
mov ebx,mess
|
|||
|
call print
|
|||
|
|
|||
|
call eol ; <20>ய<EFBFBD><E0AEAF><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>ப<EFBFBD>
|
|||
|
call eol
|
|||
|
|
|||
|
cmp [I_PARAM],byte 0 ; <20><EFBFBD><E0AEA2><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD> <20><> <20><>ࠬ<EFBFBD><E0A0AC><EFBFBD><EFBFBD>
|
|||
|
jz noparam
|
|||
|
|
|||
|
mov eax,43
|
|||
|
mov ebx,mess1
|
|||
|
call print
|
|||
|
|
|||
|
call eol
|
|||
|
|
|||
|
mov eax,30 ; <20>뢥<EFBFBD><EBA2A5><EFBFBD> <20><>ࠬ<EFBFBD><E0A0AC><EFBFBD><EFBFBD>
|
|||
|
mov ebx,I_PARAM
|
|||
|
call print
|
|||
|
|
|||
|
jmp end1 ; <20><><EFBFBD><EFBFBD>室 <20> <20><><EFBFBD><EFBFBD><EFBFBD> <20>ணࠬ<E0AEA3><E0A0AC>
|
|||
|
|
|||
|
noparam:
|
|||
|
mov eax,40 ; <20>뢥<EFBFBD><EBA2A5><EFBFBD> ᮮ<>饭<EFBFBD><E9A5AD> <20> ⮬, <20><><EFBFBD> <20><><EFBFBD> <20><>ࠬ<EFBFBD><E0A0AC>
|
|||
|
mov ebx,mess2
|
|||
|
call print
|
|||
|
|
|||
|
end1:
|
|||
|
jmp endipc ; <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ணࠬ<E0AEA3><E0A0AC>
|
|||
|
|
|||
|
mess db 'PARAM.ASM - Test params in IPC programs for CMD'
|
|||
|
|
|||
|
mess1 db 'This program was started with this params: '
|
|||
|
mess2 db 'This program was started without params!'
|
|||
|
|
|||
|
I_PARAM db 0
|
|||
|
|
|||
|
I_END:
|