Please correct me if i'm wrong on the following:
I understand that if a program is executed with command line arguments after program name then:
1. the program binary code is copied into RAM memory, the loader of the operating system finds a place from memory and puts compiled executable into a free place in memory.
2. The PSP-segment locates before the code segment in the memory and "the loader" calculates some values into the PSP-area. In PSP-segment is put the addresses of segments (DS,SS,CS) the program uses. Also, the PSP segment includes a place where command line arguments are hold, those command line arguments can be referenced by the program. For .com program command line arguments locates somewhere on address with value less of 100H.
If 1 and 2 are correct then my question is:
How many command line parameters can the program take? I suppouse .com program cannot take command line parameters that exeed 64Kb of size...
With "command line parameters" i mean values "arg1" and "arg2":
C:myprog arg1 arg2