MASM (Microsoft macro assembler ) is a x86 assembler that uses intel syntax for for MS-DOS and Microsoft windows . There are two version of assembler . One is 32 bit package and another is 64 bit package .
Follow these simple tutorial to install MASM package on any windows version
> c:
> edit (your programme name).asm
or
You can check with this screen-shots
If you are using Ubuntu , Please follow the instructions to install MASM
sudo apt-get install dosbox
c:
Follow these simple tutorial to install MASM package on any windows version
Windows installation Steps :
- Download DOSBox0.74-win32-installer.exe installer DOWNLOAD (Link 1) or you can download from this link Download (Link 2) OR Download (Link 3)
- Download 8086_Assembler.zip DOWNLOAD file and unzip it to the C:\ drive of your windows .
- Run DOSBOX0.74 installer and install it .
- After successful installation and run the package , you can get a black screen . This is the terminal of the MASM .
- Enter following commands in that terminal screen .
> c:
> edit (your programme name).asm
- Then you can get a blue window . This is the window to write your first assembler program .
or
You can check with this screen-shots
If you are using Ubuntu , Please follow the instructions to install MASM
Ubuntu installations Steps :
- Open terminal (Ctrl+t)
- Enter the following commands in the terminal to install dosbox
sudo apt-get install dosbox
- Next create a folder 8086 in /home path by sudo mkdir /home/8086
- then give permission to this folder by sudo chmod -R 777 /home/8086
- Download 8086_Assembler.zip DOWNLOAD file and extract it to the /home/8086 folder
- Then run DOSBox from Applications >Games >DOSBox Emulator
- Type the following commands to mount
c:
- Now you are ready to type your program in Linux.
How to run the MASM program ?
After the successful installation Dosbox and Assembler uisng above step , you will write your first program.- Consider if your program name is " sample.asm " . Then exit from the editor .
- Create the object files by typing the below command and press enter
- After the above steps , it will generate the object files
- Press Enter again and again until you will get the compilation errors / success message
- If any errors occur , type edit sample.asm . Using this command you can correct the program code.
- Follow the steps 2- 4 after editing the code , once your errors got resolved , enter the command link sample . This command will generate sample.exe file
- Finally run the program by sample.exe command
- You can see the output of the program
- If you want to exit from the Dosbox , type exit command
The link is redirecting me to CoinURL..... unable to download s/w
ReplyDeleteThanks . We have updated all the links . Please check once and confirm the download .
DeleteHI SIR ...HOW TO WRITE PROGRAM AND GIVE EXECUTION STEPS
ReplyDeleteYes. i will write another post with a MASM tutorials with programming . Keep in touch
DeleteThank you soo muchh,it worked for me, can you tell me how to proceed for ubuntu?
ReplyDeleteI am very glad that it works for you . Yeah sure . You have to download tar.gz files for both Dosbox and MASM in ubuntu. I will update my post with that steps too . keep in touch .
Deleteits giving directory c c:\8086 doesnt exist
ReplyDeleteHave you download 8086_Assembler.zip folder to C: drive ? if you unzip the folder you can see 8086 folder . Go to the folder by C C:\8086
Deletehow can execute program after written the program
ReplyDeleteYou can execute the programe by MASM (your programe name).asm and it will generate your programe name.exe file , run the exe file . you will be able to see the output .
Deleteplease tell how should program execute after written the program
ReplyDeleteit shows directory c:\8086 doesn't exist..
ReplyDeletehelp me to resolve this. Im using windows 8.1.
debug window is not coming i used pgrmname.exe command.. Im using windows 8.1
ReplyDeletesir commamd edit(filename).asm not exsit
ReplyDeleteIt is compatible for windows 7..but I need it for windows 10
ReplyDeleteillegal edit command is shown why
ReplyDeletei am not able to exe the program.. i followed all the steps n got it mounted n i tried MASM (my file name).asm... but still not working.
ReplyDeletehow do v do it ?
sir it is throwing an error saying it is incompatible with 64bit version
ReplyDeleteplease help me resolve this
sir it is throwing an error saying that it is incompatible with 64 bit version please help me resolve this
ReplyDeleteWhat are the instructions used to run program
ReplyDeleteupdated the post with the commands to run program
Deletei have written a program to add two numbers but it is not taking the inouts properly nor it is generating the output
ReplyDeleteCan you post the code ? or any screenshot ? any compiling issue?
Deletewhere to download the dosbox and the assembler for 64 bit???
ReplyDeletebecause the above didnt work for me!
Thank you for informing.We have updated the link. Please check and let us know.
ReplyDelete