Steps to assemble and link your programs:

  1. Using a text editor type your program.
  2. Save your program on the drive A as an ASCII file and make sure it has a .ASM extension.

Example: MY_PROG.ASM

  1. Locate Microsoft Assembler under Program in Windows NT and run it. A window opens.
  2. Type the following command in assembler window to assemble your program. The command also creates a listing of your program (MY_PROG.LST).
  3. A:\ MASM MY_PROG.ASM MY_PROG.OBJ MY_PROG.LST

  4. Link your program using the following command in the assembler window.

A:\ LINK MY_PROG MY_PROG

 

You should now have an executable file named MY_PROG.EXE. You may run the program simply by typing MY_PROG.

To debug your program you need to run CodeView by typing the command CV in the assembler window. In CodeView, you may single step your program and view the contents of various registers after the execution of each instruction.