forked from KolibriOS/kolibrios
Changed structure of svn repository
git-svn-id: svn://kolibrios.org@109 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
use32
|
||||
|
||||
org 0x0
|
||||
|
||||
db 'MENUET01'
|
||||
dd 0x01
|
||||
dd START
|
||||
dd I_END
|
||||
dd 0x100000
|
||||
dd 0x7fff0
|
||||
dd I_PARAM ; 㪠§ â¥«ì ¯ à ¬¥âàë
|
||||
|
||||
include "lang.inc"
|
||||
include "cmdipc.inc" ; �®¤ª«îç¨âì ä ©« CMDIPC.INC
|
||||
|
||||
START:
|
||||
call initipc ; ¨¨æ¨ «¨§¨à®¢ âì ¤«ï à ¡®âë á CMD
|
||||
|
||||
mov eax,47 ; ¢ë¢¥á⨠ᮮ¡é¥¨¥
|
||||
mov ebx,mess
|
||||
call print
|
||||
|
||||
call eol ; ¯à®¯ãáâ¨âì áâபã
|
||||
call eol
|
||||
|
||||
cmp [I_PARAM],byte 0 ; ¯à®¢¥à¨âì, ¥áâì «¨ ¯ à ¬¥âàë
|
||||
jz noparam
|
||||
|
||||
mov eax,43
|
||||
mov ebx,mess1
|
||||
call print
|
||||
|
||||
call eol
|
||||
|
||||
mov eax,30 ; ¢ë¢¥á⨠¯ à ¬¥âàë
|
||||
mov ebx,I_PARAM
|
||||
call print
|
||||
|
||||
jmp end1 ; ¯¥à¥å®¤ ¢ ª®¥æ ¯à®£à ¬¬ë
|
||||
|
||||
noparam:
|
||||
mov eax,40 ; ¢ë¢¥á⨠ᮮ¡é¥¨¥ ® ⮬, çâ® ¥â ¯ à ¬¥â஢
|
||||
mov ebx,mess2
|
||||
call print
|
||||
|
||||
end1:
|
||||
jmp endipc ; § ¢¥àè¨âì ¯à®£à ¬¬ã
|
||||
|
||||
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:
|
||||
Reference in New Issue
Block a user