Download View/Open - Calhoun: The NPS

Transcript
------------------------------------------~--- ~-
Batch files are very versatile. They can be written to perform a myriad of
functions. To edit a batch file, use the DOS command edit. The following is typed at
the command prompt
C:\DSPTOOLS> edit npsbuck.bat
An onscreen editor will appear with the contents ofthe batch file displayed.
The file may now be changed as desired. The arrow keys on the keyboard will move
the cursor. Any command that is present may be changed or any executable DOS
command can be added to or deleted from the file. For instance, npsbuck.asm, located
in the first line of the batch file, could be changed to a different filename thus allowing
different assembly language files to be assembled.
During the course of this research, it became helpful to write program code on
a different computer, save the file on a floppy disk, and assemble the code as discussed
in Reference 3. In DOS, the "a:" drive is usually the floppy disk drive. To access this
drive, the command "a:" is used. This command can be used in conjunction with other
commands to add flexibility to the batch file. For instance, if line one of npsbuck.bat
is changed to read:
asm30 a:npsbuck.asm -c -1 -q
The assembler will now assemble the program npsbuck.asm that is located on
the floppy disk in the a: drive. Another example using the "a:" command is to add the
line:
copy npsbuck.out a:
to the bottom of the batch file npsbuck. bat. This would copy the output file created
by the assembler/linker to the floppy disk located in drive a:.
63