Most of the Students doing their courses in Computer science & Information Technology using windows 7 or Windows 8 find it difficult to use few programming language because of few compatibility reasons. And one among them is MASM 8086 Software also, which doesn’t run on windows 7 systems easily whereas in you find it easy to run this software on Windows XP, windows server 2003 and also windows 2000!
So in order to run this software the solution to change the OS doesn’t sound good or easy right! 😀 So to get rid of these compatibility issues we have an open source software named the DOSBox! This is basically an X86 DOS-emulator that uses the SDL-library which makes DOSBox very easy to port to different platforms. DOSBox has already been ported to many different platforms, such as Windows, BeOS, Linux, MacOS X…! Presently 0.74 is the latest version of DOSBox.
Video Tutorial
Well, now let me come to the point i.e., the tutorial on how to run MASM 8086 Software on your System. I will explain it to you step by step:-
► Initially, you will have to Download two files to proceed with the further steps. To download the below given two files:-
File 1 – DOSBox 0.74 Installer – DownloadLink
► Now as you are done with the downloading part next you gotta open the second file which is a compressed file so you have to extract the files in it to the C Drive of your system.
For that just select the 8086 folder > then click on extract to option > then select C Drive > finally Click on Ok!
Follow the image shown below step 1-4!
► Then next you have to open the first file i.e., the DOSBox file and Install it which is simple just keep clicking next > next > install and finally close.
► A shortcut of the DOSBox will be created on the desktop to go to your desktop and open the DOSBox icon.
► Then you will find that a black screen pops up. Now enter the command as shown below:-
MOUNT C C:8086 (and press Enter)
A message will pop up saying Drive C: is mounted as Local Directory C:8086
► Next type the below command:-
C: (and press Enter)
So now it will enter into the C Drive!
► That’s it you are done! Finally, you need to Enter the following command to enter into the MASM Software.
EDIT filename.ASM (and press Enter)
Now you will enter into the MASM Software Screen. J
Note: If you are an XP user you need not download the DOSBox you can directly download the 8086 Assembler and run it through the Command prompt as usual.
Also, check out – How to Run Turbo C/ C++ through DOSBox
awesome bro, you finally saved me ! Appreciate your effort to disseminate the knowledge to others !! Thanks . GOD BLESS YOU !
Thanks a lot for ur comments dude ! 🙂
and ur welcome 😉 🙂
Stay Tuned.. 🙂
i hav installed both files and started executing but it gives an error dat cv is illegal command plzz help me
@pooja : As i'm not much aware of assembly programming i've just tested a small program on addition of 2 numbers and it worked perfectly for me!
so i suppose you have to change your cv command!
I Suggest you to Try below commands :
masm filename.asm
link filename.obj
debug filename.exe
then type "t" and Enter for Memory Windows !
U can also use "u" , "g" ,"e" etc !
Hope this helps You for cv is illegal command error! 🙂
Thank you so very much brother! You've just made my day! After 2 days of googling finally found your page! I'll try to promote your page as much as i can! thanx again. God bless you 🙂
Hey! Your welcome 🙂 Good to hear that it helped you!
follow our official page on facebook @ http://www.fb.com/TechzClub Ok 🙂
bro,can u plz send me the whole 8086 assembler compressed file so that i can easily download it from my mail account
….i'm having problem downloading the file actually……
i'll be thankful for ur this act of kindness
Awesome bro…
Worked fine for my Windows 8.1……Keep up this job..!!
thannx champ for giving such a valuable info.
during compiling this problem occurs:
Run File [CHAR.EXE]: debug char.exe
List File [NUL.MAP]: nul.map
Libraries [.LIB]: .lib
Link: warning L4051: .LIB : cannot find library
Enter new file spec:
//now i dont know what to do now..the memory window is not opening
Thats Great ! Thanks for the Info.. that it works on Win 8.1 too ! So that I can share it with all ! 🙂
Did you Check Out the Video Bro ?
I think I've made a Video executing a file too.
Well, regarding the comments and all I can't help you much cause am not aware of the MASM language ! I just found a way to Run it so I put up ! And you can see the above comments it worked for almost everyone ! 🙂 Anyways check the Video ! Hope it'll help you out 🙂
Awesome!Thanks man!!!!
Your Welcome Bro ! 🙂 Stay Tuned!
should I write MOUNT C C:8086 every time I want to program ?
@Tonton : Ya you gotta do that each time you wanna execute a program. Bcoz we are implementing MASM with the help of DOSBOX so you have to mount it on that then only you can use it!
THANKS YOU
@Sukesh : Your welcome 🙂
Stay tuned to our blog 🙂
bro, thx for ur instruction! but the link for 8086 assembler now seems invalid… can u check it out? or please send me the 8086 assmebler file directly through email. my address: [email protected]
THANKS!
@Johnson : Bro I just verified all the links in the post all are working perfect !
If you still face any problem then write to us @ [email protected] ! 🙂
Awesome bro,Thank you very much………..
Your welcome Bro 🙂
Stay Tuned to Our Facebook Page TechzClub for more Techy Stuff 🙂
its showing me
illegal file EDIT
wat to do??/
where i am wrong??
I think you should have a check on the commands ur using bro ! Coz it worked perfect for all !
Thanks a lot.Works Perfectly.Awesome work!
Your Welcome bro ! Stay Tuned ! 🙂
its workng!!!thankx a lot
Your welcome bro 🙂
bro i tried to mount in xp,but it says command not found
If its XP then you wont be needing DOSBOX bro ! You can just directly try installing MASM !
my sys is win 8 and i cannot able to install the 8086 assembler and how to run the asm file man
Bro it has been tested on Win 8 and 8.1 also and it works perfectly fine.
Just follow the Video there is nothing in installing masm. You need to install DOSBOX and then emulate MASM over it. See the Video for detailed Instructions.
can you please tell how to compile and execute program in 8086 assembler
> First Type the Program, Save it and Exit.
> Then Type :
masm filename.asm
That will Compile your program.
> Next Type :
link file.obj
this will link your library files to the program.
> Finally Type :
debug filename.exe
This will execute your program. 🙂
how to open afdebug
thank you.
This comment has been removed by the author.
Just a tip:
One can also go to C: folder and find the dosbox folder(doing this will help you not to write the mount command everytime you want to [email protected] :)) ). There find the Dosbox options open it and at the bottom enter this command ,save and exit :
mount c c:8086
G.L.H.F!!!
Hi itseems some commands doesnt work in this compiler
If i want to extract Masm in any other drive excluding C.is that psble?
@Rayhan : Yes! you can extract the masm files to any drive. You just later need to set that path in the dosbox!
Thanks buddy..
Good article with very easy steps….
Good luck friend.
@Kishan Shetty : Thanks bro 🙂 Stay Tuned!
can we run the text editor of our own choice like atom or notepad++…
if so please tell me how..
thanks 🙂
@shreyansh : I suppose its not possible. As we are mounting the files over DosBox its not possible to change the environment. Anyways if I find a way to do that i will let you know. 🙂
i am unable to debug the file..
do afdebug.exe works??
after debug filename.exe….. what suppose to be done.. im not getting any answer… (ex:if i put as any char or integer its giving error)
No header files are included in that folder 🙁 can't code. error: include io.h file not found
Thanks a lot…
Thanks a ton
Hi the linker works fine… expect that when i use make or ml. It says: "This program cannot be run in dos mode" ???
Any help will be welcomed…
Thank you very much.
thank you very much.
Your welcome! 🙂
Your welcome! 🙂
Your welcome! 🙂
Your welcome! 🙂
I never encountered this issue.
Anyways, see if this helps :
> First Type the Program, Save it and Exit.
> Then Type :
masm filename.asm
That will Compile your program.
> Next Type :
link file.obj
this will link your library files to the program.
> Finally Type :
debug filename.exe
This will execute your program. 🙂
Your welcome 🙂
Thankyou very very much! god bless you
Bro im getting cv command as illegal command so what should do now..?
hi the assembler file not containing debug file ,so plz tell me how to execute
This article is very much helpful and i hope this will be an useful information for the needed one. Keep on updating these kinds of informative things…
Mobile App Development Company
Thank you my friend
The Cv command ain't working…neither is debug file.exe…its giving me an error…or if I use cv it says illegal command…what do I do? Many have asked this question…even I have the same query…pls reply soon
Try using ne filename.asm
How to download it in windows 10
Its work perfectlly
Edit filename.asm …after giving this
Illegal command : edit
How do I over come ts problem..please help me sir
Hi Divya,
I never encountered this issue.
Anyways, see if this helps :> First Type the Program, Save it and Exit.> Then Type :
masm filename.asm
That will Compile your program.
> Next Type : link file.obj
this will link your library files to the program.
> Finally Type : debug filename.exe
This will execute your program. 🙂
This site is absolutely fabulous!
Keep up the great work guyz.
Hello, all is going perfectly here and ofcourse every one is sharing data,
that’s truly excellent, keep up writing.