Subversion Repositories SvarDOS

Rev

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

Rev 448 Rev 450
Line 23... Line 23...
23
ENVSEG   dw 0    ;  +8
23
ENVSEG   dw 0    ;  +8
24
 
24
 
25
; exit code of last application
25
; exit code of last application
26
LEXCODE  dw 0    ; +0Ah
26
LEXCODE  dw 0    ; +0Ah
27
 
27
 
28
; input buffer used for the "previous command" history
-
 
29
BUF000 db 128, 0 ; +0Ch
-
 
30
BUF064 db "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF"
-
 
31
BUF128 db "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF"
-
 
32
 
-
 
33
; offset of the COMSPEC variable in the environment block, 0 means "use
28
; offset of the COMSPEC variable in the environment block, 0 means "use
34
; boot drive". this value is patched by the transient part of COMMAND.COM
29
; boot drive". this value is patched by the transient part of COMMAND.COM
35
COMSPECPTR dw 0  ; +8Eh
30
COMSPECPTR dw 0  ; +0Ch
36
 
31
 
37
; fallback COMSPEC string used if no COMPSEC is present in the environment
32
; fallback COMSPEC string used if no COMPSEC is present in the environment
38
; drive. drive is patched by the transient part of COMMAND.COM
33
; drive. drive is patched by the transient part of COMMAND.COM
39
COMSPECBOOT db "@:\COMMAND.COM", 0 ; +90h
34
COMSPECBOOT db "@:\COMMAND.COM", 0 ; +0Eh
40
 
-
 
41
; ECHO status used by COMMAND.COM. 0 = ECHO OFF, 1 = ECHO ON
-
 
42
CMDECHO db 1     ; +9Fh
-
 
43
 
-
 
44
; segment of the first batch in batch chain. this is used by transient
-
 
45
; COMMAND.COM to chain multiple batch files (through CALL). 0 means "none".
-
 
46
BATCHCHAIN dw 0  ; +A0h
-
 
47
 
-
 
48
; original parent (segment of)
-
 
49
ORIGPARENT dd 0  ; +A2h
-
 
50
 
35
 
51
skipsig:         ; +A6h
36
skipsig:         ; +1Dh
52
 
37
 
53
; set up CS=DS=SS and point SP to my private stack buffer
38
; set up CS=DS=SS and point SP to my private stack buffer
54
mov ax, cs
39
mov ax, cs
55
mov ds, ax
40
mov ds, ax
56
mov es, ax
41
mov es, ax