home *** CD-ROM | disk | FTP | other *** search
- PROGRAM Params;
-
- {
- Source: "Programming Quickies", TUG Lines Volume I, Issue 1
- Author: Paul Klarreich
- Application: IBM PC and true compatibles
-
- Find the parameter string. In any MS-DOS program file, it is
- found at offset $80 in the program segment prefix -- the first
- $100 bytes of the program segment. The byte at $80 gives the
- length of the string and the next <length> bytes are the actual
- characters.
-
- Note: This program is meaningless unless compiled to a COM-file.
- }
-
- VAR CmdStr : STRING[80] ABSOLUTE CSEG:$0080;
-
- BEGIN
- WRITELN('The command tail for this program is:');
- WRITELN('-->',CmdStr,'<--');
- END.
-