Welcome to this tutorial on how to install MASM in Windows! MASM is an assembler developed and maintained by Microsoft, and is a powerful tool for writing low-level code. However, installing MASM on newer versions of Windows can be tricky. In this post, I’ll show you how to install MASM on Windows 10, 8.1, 8, and 7 in just a few easy steps.
MASM is an assembler developed and maintained by Microsoft. MASM (8086) won’t run on Windows 7 or newer versions easily whereas it runs well on Windows XP. That is why in this post I am going to show you how to install MASM in Windows.
This tutorial is valid for Windows 10, 8.1, 8, 7.
So, Let’s begin.
Here are 5 steps to Install MASM in Windows.
First, you have to download DOS Box for your PC
After that install DOSBox if you have any doubts about how to install DOSBox, Here is Guide on how to install DOSBox on Windows.
Visit this link (click here)
Click on Download
Open the zip file that you downloaded in step 2.
Copy the 8086 folders in drive C:
Open your favorite code editor,
Enter the following code
; Hello World program by 360 Tech Explorer’s
DATAS SEGMENT
STRING DB 'Hello World!',13,10,'$'
DATAS ENDS
CODES SEGMENT
ASSUME CS:CODES,DS:DATAS
START:
MOV AX,DATAS
MOV DS,AX
LEA DX,STRING
MOV AH,9
INT 21H
MOV AH,4CH
INT 21H
CODES ENDS
END START
Save this file with the “.asm” file extension.
Z:> mount c c:\8086
This command will mount the 8086 directory as a C drive for DOSBox
Z:> c:
If you want to write a new assembly file, execute the following command
C:> edit file_name.asm
If you already have the Assembly file, follow the following steps
C:> masm your_file_here.asm
C:> link your_file_here.obj
C:> your_file_here.exe
That’s it! You should now be able to run your assembly files using MASM on your Windows PC. I hope this tutorial was helpful in getting you up and running with MASM. If you have any questions or comments, feel free to leave them below. Happy coding!
This website uses cookies.
View Comments
One that finally worked even in my virtual box for win10
Can i get something like this for 64 bits, so I don't need dosbox?
Glad to hear!
It works!Great
Glad to hear!