                   <B>aa  AmigaOS a a</B>

..., aa .   1  2

                                9.1   CLI

           AmigaOS, 
    .   ..   ,   ,  
  AmigaOS,        CLI ,   ,
  .

   Execute    dos.library,   ,     
   (.   1  2).

    move.l dosbase(pc),a6   ;  dos.library
    move.l #command,d1  ;   ,   
                ;    AmigaOS
    moveq.l #0,d2       ;  , <I> d2 
                ;  - ,  
                ;     </I>
                ; ,  startup-sequence.
    move.l consolehandle(pc),d3 ; , .. ,  
                    ;    
                ; (,   ).
                ; 0,     
                ; CLI ,   
                ;,       
                ;,      
                ;,   .
    jsr _LVOExecute(a6) ; 
...
dosbase dc.l 0
command dc.b "dir",0    ;   dir. <B>  
            ;  </B>.
consolehandle dc.l 0    ; 

                         9.2    

       ,        
dos.library - CreateNewProc.

 	move.l #TagListNP,d1		;    
	move.l dosbase(pc),a6
	jsr _LVOCreateNewProc(a6)
...
TagListNP
	dc.l NP_Entry,new_mus	;   
	dc.l NP_Name,IntName	;   
	dc.l 0
...
IntName dc.b "Music",0

        .     TagListNP   
    .  NP_Entry -   .  NP_Name - 
.             - NP_StackSize,  
    ,      4000.   
      .          
.

NP_Input	;     - default is Open("NIL:"...)
NP_Output	;     - default is Open("NIL:"...)
NP_CloseInput	; close input filehandle on exit
		; default TRUE
NP_CloseOutput	; close output filehandle on exit
		; default TRUE
NP_Error	; filehandle - default is Open("NIL:"...)
NP_CloseError	; close error filehandle on exit
				 ; default TRUE
NP_CurrentDir	;   
NP_StackSize	;  - default 4000    
NP_Name		;   - default "New Process"
NP_Priority	;  - default same as parent ( ..  
      
NP_ConsoleTask	; consoletask - default same as parent    
NP_WindowPtr	;    - default is same as parent
NP_HomeDir	;  ""  - default current home dir   
NP_Cli		;  CLI  - default FALSE
NP_Path		; path - default is  only valid if a cli process!
NP_CommandName	; commandname - valid only for CLI
NP_ExitCode	; code to be called on process exit
NP_ExitData	; optional argument for NP_EndCode rtn -
				 
Levitator/team PowerAmiga