Sunday, 8 October 2017

Download MASM for Windows 32 bit / 64 bit (Win 7, Win 8 , Win 10) and Ubuntu

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 

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 . 
     > mount c c:\8086  
     > c: 
     > edit (your programme name).asm
  • Then you can get a blue window . This is the window to write your first assembler program . 
If you have any query or doubts , you can check this video tutorials Link 

or 

You can check with this screen-shots 


MASM software

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 update
         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 
         mount c /home/8086
         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
          masm sample.asm
  •  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 
Please comment if you have any suggestions or query . We will try to resolve soon .


25 comments:

  1. The link is redirecting me to CoinURL..... unable to download s/w

    ReplyDelete
    Replies
    1. Thanks . We have updated all the links . Please check once and confirm the download .

      Delete
  2. HI SIR ...HOW TO WRITE PROGRAM AND GIVE EXECUTION STEPS

    ReplyDelete
    Replies
    1. Yes. i will write another post with a MASM tutorials with programming . Keep in touch

      Delete
  3. Thank you soo muchh,it worked for me, can you tell me how to proceed for ubuntu?

    ReplyDelete
    Replies
    1. I 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 .

      Delete
  4. its giving directory c c:\8086 doesnt exist

    ReplyDelete
    Replies
    1. Have 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

      Delete
  5. how can execute program after written the program

    ReplyDelete
    Replies
    1. You 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 .

      Delete
  6. please tell how should program execute after written the program

    ReplyDelete
  7. it shows directory c:\8086 doesn't exist..
    help me to resolve this. Im using windows 8.1.

    ReplyDelete
  8. debug window is not coming i used pgrmname.exe command.. Im using windows 8.1

    ReplyDelete
  9. sir commamd edit(filename).asm not exsit

    ReplyDelete
  10. It is compatible for windows 7..but I need it for windows 10

    ReplyDelete
  11. illegal edit command is shown why

    ReplyDelete
  12. i 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.
    how do v do it ?

    ReplyDelete
  13. sir it is throwing an error saying it is incompatible with 64bit version
    please help me resolve this

    ReplyDelete
  14. sir it is throwing an error saying that it is incompatible with 64 bit version please help me resolve this

    ReplyDelete
  15. What are the instructions used to run program

    ReplyDelete
    Replies
    1. updated the post with the commands to run program

      Delete
  16. i have written a program to add two numbers but it is not taking the inouts properly nor it is generating the output

    ReplyDelete
    Replies
    1. Can you post the code ? or any screenshot ? any compiling issue?

      Delete
  17. where to download the dosbox and the assembler for 64 bit???
    because the above didnt work for me!

    ReplyDelete
  18. Thank you for informing.We have updated the link. Please check and let us know.

    ReplyDelete