FWIW, in my programs (written in ASM) what I do while parsing the command line 
is look at the length stored at PSP:80h.  If it is less than 126, I use the 
data stored at PSP:81h up to the first 0Dh (Carriage Return) character.  If the 
length is 126 or more, I look for the CMDLINE environment variable and use it 
(if it exists).  If I can't find a CMDLINE environment variable, I go back and 
use what is stored at PSP:81h up to the first 0Dh character.  I never actually 
use (or trust) the value stored at PSP:80h to provide the actual length, but 
simply use it as a flag to tell me whether or not I should bother looking for a 
CMDLINE environment variable.  
_______________________________________________
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user

Reply via email to