Home Robotics C++ Physics II AP Physics B Electronics AP Java Astronomy Independent Study Summer Session Contests  About
                                                       

Networked Systems Batch File

 

Assumptions

  There is a directory named Carter in the root directory of z drive containing the code provided

      on the CD (move it from the main directory provided)

  There is a directory named djgpp in the root directory of z drive containing the code provided on

     the CD (move it from the main directory provided)

  nasmw.exe and gcc.exe are in the Carter directory (note that gcc.exe is in the bin subdirectory

     of djgpp - may not be necessary to move it)

  The batch file was file created to run the first assignment. Modify lines 3, 5, and 6 as necessary

      for future labs

 

The Batch File

 

  Save the following as a plain text file in the Carter directory

  Give it a name with a .bat suffix

  Run it

 

     path z:\djgpp\bin;%path%                            //line 1

     set djgpp=z:\djgpp\djgpp.env                      //line 2

     nasmw -fcoff first.asm                                  //line 3

     nasmw -fcoff asm_io.asm                           //line 4

     gcc -o first driver.c first.o asm_io.o            //line 5

     first                                                                 //line 6

     pause                                                             //line 7