Microsoft Assembler Instructions
Type your assembler source program onto a floppy disk. The extension
of your source program must be .asm. Put your floppy disk into the
A: drive.
-
Bring up a DOS prompt (Start - Programs - DOS prompt)
-
Change your drive to A:
-
Enter the command "masm filename.asm"
-
You will get the prompt: "Object filename [filename.OBJ]:" -- Simply
type "enter"
-
You will then get the prompt "Source listing [NUL.LST]: -- You should enter
"filename.LST". This will give you a listing of your program
along with other information. This information will include error
messages if your program has errors. This file may be viewed using
Notepad.
-
The next prompt you will receive is "Cross-reference [NULL.CRF]: -- again
simply type "enter"
-
If you get "0 Warning Errors" and "0 Severe Errors" your are ready to link.
Otherwise view "filename.LST" to determine your errors then correct
them using Notepad.
-
To link your program, enter the command "link filename.OBJ".
-
You will get the prompt "Run File [filename.EXE]. -- type
"enter"
-
For the prompt "List File [NUL.MAP]:" -- You should enter "filename.MAP".
This file may be view with Notepad.
-
For the prompt "Libraries [.LIB]:" -- type "enter"
-
If all has gone well up to this point you may execute your program by typing
the command "filename". Your program should do exactly what
you programmed the computer to do. If not, find your error and correct.
For all programs, once you have gotten your program to execute properly,
turn in your program by e-mailing the source file (.asm) and the executable
file (.exe) to your instructor at albert@CrawfordEnterprise.com.
The subject of this message must be "CSC303 -- project name".
The return address must be an e-mail address that you check regularly.
The "from" should be your name.