Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- DEBUG - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

    Name command

    Purpose:  The Name command has two functions:

              .   Formats file control blocks for the first two file-
                  specs, at CS:5Ch and CS:6Ch. (Starting DEBUG with a
                  filespec also formats a file control block at CS:5Ch.)

                  The file control blocks are set up for the use of the
                  Load and Write commands, and to supply required file-
                  names for the program being debugged.

              .   All specified filespecs and other parameters are placed
                  exactly as entered, including delimiters, in a parameter
                  save area at CS:81h, with CS:80h containing the number of
                  characters entered. Register AX is set to indicate the
                  validity of the drive specifiers entered with the first
                  two filespecs.

    Format:   N [d:][path]filename[.ext]

    Remarks:  If you start the DEBUG program without a filespec, you must
              use the Name command before a file can be loaded with the L
              command.

    Example:  DEBUG
              -N myprog
              -L
              -

              To define filespecs or other parameters required by the pro-
              gram being debugged, enter:

              DEBUG myprog
              -N file1 file2
              -

              In this example, DEBUG loads the file myprog at CS:100h, and
              leaves the file control block at CS:5Ch formatted with the
              same filespec. Then, the Name command formats the file control
              blocks for file1 and file2 at CS:5Ch and CS:6Ch, respectively.
              The file control block for myprog is overwritten. The parame-
              ter area at CS:81h contains all characters entered after the
              N, including all delimiters, and CS:80h contains the count of
              those characters (0Ch).

See Also: Load Write Starting filespec PSP

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson