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










































