The following example shows how to compile and link an assembly language
program, test.asm, in a DOS command window. You can download this program and try to
compile and link it on your PC.
1. Compile the source file
ml /c /Fl test.asm
2. Link the objective file
link test
The computer will ask you specify the executable file name, library name, and
other options. Always type to use default values.
After the above two steps, you will have the executable file: test.exe. Try to
execute it by typing test.
3. Change the executable into a binary file
x2b test.exe test.bin
After this step, you will have the binary file test.bin which contains all the
machine code for the instructions in test.asm.
Download files:
You need download all the following programs into your PC.