Running MASM at school or at home

In the AUL

  1. Go to Start, Programs, Command Prompt. Once the DOS window is open, type the command EDIT. Type your file and save it to your U:\ drive. Be sure it has a .ASM extension. Do not close the DOS window or the editor.
  2. Go to Start, Programs, Command Prompt. This will open a second DOS window. Change to the U:\ drive and issue the commands to run MASM. Assuming your file is named FIRST.ASM, then these commands will change to the U:\ drive, compile, link and run it.
  3. If you have any errors after issuing the MASM command, then you will need to fix your .ASM file and redo the above steps. You can open the file FIRST.LST to see where all your errors are, but you must make changes the FIRST.ASM file, not the FIRST.LST file.

In PC413

These instructions will be changing. So if you are using PC413, then check this link from time to time. They are in the process of installing new computers, and modifying configurations. This will have an impact on how MASM is accessed.

Running MASM from home

You should follow the instructions for setting up MASM: Configuring MASM 6.11 from your home computer

You should create a folder where you will keep all of your .ASM files (for example, COP3402). Use Windows Explorer to create the folder.

Testing if MASM is installed properly

  1. If you have set up MASM correctly, then you should be able to open a DOS Window and type the command MASM. You should get an error message, but it won't say "Bad Command or File Name". If you get a message indicating that you have used the command incorrectly, then you have installed MASM correctly.
  2. If you do the above and you get the error "Bad Command or File Name", then you have not installed MASM properly. If you get this error, then try the command C:\MASM611\BIN\MASM. You should get an error message, but it won't say "Bad Command or File Name". If you get a message indicating that you have used the command incorrectly, then recheck the link: Configuring MASM 6.11 from your home computer. You have set up the PATH incorrectly.
  3. If you still get the "Bad Command or File Name" error, then you have either installed MASM in a directory other than C:\MASM611, or your installation is really messed up.

Once you are sure that MASM is installed correctly, then you can follow these steps.

  1. Go to Start, Programs, MS-DOS Prompt (or Command Window). Once the DOS window is open, type the command EDIT. Type your file and save it to your .ASM directory (for example, C:\COP3402). Be sure it has a .ASM extension. Do not close the DOS window or the editor.
  2. Go to Start, Programs, MS-DOS Prompt (or Command Window). This will open a second DOS window. Change to your .ASM directory (for example, C:\COP3402) and issue the commands to run MASM. Assuming your file is named FIRST.ASM, then these commands will change to your .ASM directory (for example, C:\COP3402) , compile, link and run it.
  3. If you have any errors after issuing the MASM command, then you will need to fix your .ASM file and redo the above steps. You can open the file FIRST.LST to see where all your errors are, but you must change the FIRST.ASM file, not the FIRST.LST file. You will not need to change directories again, so you only need two commands to compile, link, and run the program.