Subversion Repositories SvarDOS

Rev

Rev 419 | Rev 448 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 419 Rev 442
Line 72... Line 72...
72
USEDEFAULTCOMSPEC:
72
USEDEFAULTCOMSPEC:
73
 
73
 
74
; prepare the exec param block
74
; prepare the exec param block
75
mov ax, [ENVSEG]
75
mov ax, [ENVSEG]
76
mov [EXEC_PARAM_REC], ax
76
mov [EXEC_PARAM_REC], ax
-
 
77
mov ax, CMDTAIL
77
mov [EXEC_PARAM_REC+2], dx
78
mov [EXEC_PARAM_REC+2], ax
78
mov [EXEC_PARAM_REC+4], es
79
mov [EXEC_PARAM_REC+4], cs
79
 
80
 
80
; execute command.com
81
; execute command.com
81
mov ax, 0x4B00         ; DOS 2+ - load & execute program
82
mov ax, 0x4B00         ; DOS 2+ - load & execute program
82
push es                ;
83
push es                ;
83
pop ds                 ;
84
pop ds                 ;
Line 108... Line 109...
108
int 0x21
109
int 0x21
109
 
110
 
110
; back to program start
111
; back to program start
111
jmp skipsig
112
jmp skipsig
112
 
113
 
-
 
114
; command.com tail arguments, in PSP format (length byte followed by arg)
-
 
115
CMDTAIL db 0
-
 
116
 
113
; ExecParamRec used by INT 21h, AX=4b00 (load and execute program), 14 bytes:
117
; ExecParamRec used by INT 21h, AX=4b00 (load and execute program), 14 bytes:
114
;  offset  size  content
118
;  offset  size  content
115
;     +0     2   segment of environment for child (0 = current)
119
;     +0     2   segment of environment for child (0 = current)
116
;     +2     4   address of command line to place at PSP:0080
120
;     +2     4   address of command line to place at PSP:0080
117
;     +6     4   address of an FCB to be placed at PSP:005c
121
;     +6     4   address of an FCB to be placed at PSP:005c