Showing posts with label Ubuntu. Show all posts
Showing posts with label Ubuntu. Show all posts

Sunday, 8 October 2017

// // 25 comments

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 .


Read More