Install MASM (Assembly language) on Windows 7

Avatar for admin

Install MASM (Assembly language) on Windows 7

The good old  legacy  MASM 6.11 (DOS)  is a 16-bit version, that unfortunately only works on Windows XP and earlier versions of Windows.

However there is always some way to emulate the older softwares and run them without any compatibility issues. Since it is a DOS based application, we need to emulate the DOS environment to make it work.

We are going to use a free tool named DOSBox. It’s a free DOS emulator that can run old DOS applications. Let’s begin.

 

Step 1:

Download the DOSBox free emulator from here, and install it.

Install MASM (Assembly language) on Windows 7 (1)

Step 2:

Download the MASM 8086 Assembler from here, and extract it.

Install MASM (Assembly language) on Windows 7 (2)

 

Step 3:

Rename the 8086 folder to MASM. You can skip this step It’s not necessary to rename if you can remember the folder name.

Install MASM (Assembly language) on Windows 7 (3)

 

Step 4:

Copy or Cut the MASM folder.

Install MASM (Assembly language) on Windows 7 (4)

 

Step 5:

Go to your desired drive (C: drive is recommended), and paste the folder there.

Install MASM (Assembly language) on Windows 7 (5)

 

Install MASM (Assembly language) on Windows 7 (6)

 

Step 6:

Go back to the Desktop and double-click on the DOSBox to run.

Install MASM (Assembly language) on Windows 7 (7)

 

Step 7:

Now before using MASM you need to mount the working directory.
type the command below to mount the drive:

mount C C:MASM

 

Install MASM (Assembly language) on Windows 7 (8)

 

Step 8:

Change the drive letter to your desired drive where you have MASM installed. to change the drive from Z to C, type the command shown below:

C:

 

Install MASM (Assembly language) on Windows 7 (9)

 

Step 9:

To open the DOS Editor type:

edit

 

Install MASM (Assembly language) on Windows 7 (10)

 

Step 10:

Type your program source code, and save it by going to File -> Save or press Alt + F to open the File menu.

 

Install MASM (Assembly language) on Windows 7 (11)

 

Step 11:

Save it in C:MASM (default directory) with the .asm extension in the end.

Test.asm

 

Install MASM (Assembly language) on Windows 7 (12)

 

Step 12:

Exit from the DOS Editor to go back to the Command Prompt.
In the Command Prompt type this command to assemble the program.

masm test.asm;

Install MASM (Assembly language) on Windows 7 (14)

 

Step 13:

Then just simply link the object by typing

link test;

and execute/Run it by typing just the program name:

test

 

That’s how you can use old DOS applications on a recent version of Windows. It all other commands are same as old MASM. Please drop any queries below in the comments.