MASM using DOSBOX in Windows 10

0
821
MASM using DOSBOX

There different types of programming and one of them is ALL – Assembly Level Language, where you have to write code for the machine; It has a different pattern you will be coding using MASM or any other platform for writing ALL code;

In this article, we are going to discuss the MASM using DOSBOX because MASM is DOS based application which won’t work on Windows 7/8/10. So for that, you will need to have a DOSBOX;

What is DOS BOX?

DOSBOX is one of the most popular emulator software that emulates the codes for international business machine personal computer(IBM PC COMPATIBLE) computer running the oldest operating system software and programs which are CLI OR CUI Command Line Interface or Command User Interface like MS-DOS (Microsoft disk operating system). The DOS BOX is specially developed or intended for use in the oldest dos based games on the computer.

MASM using DOSBox in Windows 10

I sure you know all about the Windows operating system they don’t support dos application on Windows 8/10 etc… So you will need to have an emulator to run them and execute;

  • First, you have to Download DOS BOX
  • Now Install DOS BOX. 

After installation, it will show you the DOS BOX ICON on your Desktop. 

  • Open Dos Box, now you will get the Dos Box Window on Your Screen.

Now copy your game program or any other program which you want to run from a dos box.  and after copy, you have to paste it into C: Drive. 

[Here no need to copy and paste, to understand easily we are doing this]

Here I wanted to use MASM programming software by using DOS Box.

  • You have to mount the drive and that program folder to run. Type MOUNT C C:\MASM or any other program name file name. MOUNT C C:\YourOwn, after that it will show you the message, Drive C is mounted as local directory C:\MASM\

  • Now you can change the drive Z into C drive.

 

  •  Your MASM folder is mounted so you have a check which directory you have to open. type DIR and See the list. 

  • Now type CD BIN, now it will show you bin directory. 

  • That much, you are done.

[Note: Before that, you have to copy the LINK file from BINR Folder and paste it into BIN folder.] Now Do the Steps: 

Write MASM programming code in NOTEPAD.

TITLE” TO PRINT HELLO WORLD”.MODEL SMALL.STACK.DATA MSG DB”HELLO WORLD$”.CODEMAIN PROC MOV AX,@DATA MOV DS,AX MOV DX, OFFSET MSG MOV AH,09H INT 21H MOV AH,4CH INT 21HMAIN ENDP END MAIN

Save it into MASM BIN Folder as the extension name is FILENAME.ASM

After that run DOS BOX, C:\BIN> You have to compile the program.

Type MASM  Yourfilename.asm
Type Link Yourfilename.obj
ENTER, Enter, ENTER, Enter

Type the Yourfilename.exe 

Now finally you will get the output your program if that is correct if not then you have to write correct and then again do the same process to run that program. 

LEAVE A REPLY

Please enter your comment!
Please enter your name here