This tutorial will guide you how to assemble .asm files using MASAM via command prompt
Download MASAM here
1. Copy MASAM folder to C:\
2. Create "yourcode.asm" file with any text editor and type your assembly code in it.
3. Copy .asm file to the MASAM folder.
4. Open CMD prompt and type command
cd c:\MASAM"
If you have give path of your masam folder correctly the screen should look like this:
5. Type command "ml myFirstprogram.asm" and hit Enter
If there is no any error in your code the MASAM assembler will generate .exe file and .obj file of your code
NOTE: If your code is in two files assemble both files separately it will show your errors but don't worry once file1.obj and file2.obj are created you can use link file1.obj+file2.obj to link both files and it will give you desire output :)
Download MASAM here
1. Copy MASAM folder to C:\
2. Create "yourcode.asm" file with any text editor and type your assembly code in it.
3. Copy .asm file to the MASAM folder.
4. Open CMD prompt and type command
cd c:\MASAM"
If you have give path of your masam folder correctly the screen should look like this:
5. Type command "ml myFirstprogram.asm" and hit Enter
If there is no any error in your code the MASAM assembler will generate .exe file and .obj file of your code
NOTE: If your code is in two files assemble both files separately it will show your errors but don't worry once file1.obj and file2.obj are created you can use link file1.obj+file2.obj to link both files and it will give you desire output :)
No comments:
Post a Comment