You are here:Home » Windows » MASM using DOS BOX in WINDOWS 8

MASM using DOS BOX in WINDOWS 8

What is DOS BOX?

DOS BOX is kind of emulator software that emulates the 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 MSDOS (Microsoft disk operating system). The DOS BOX is specially developed or intended for use the oldest dos based games on computer.

MASM using DOS BOX in WINDOWS 8

I think you all know about this, in windows 8 you cannot run dos based programs, games and such others application. To use that application games, and programs in windows 8 you have to use DOS BOX emulator software.
  • 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 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 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$"
.CODE
MAIN PROC
MOV AX,@DATA
MOV DS,AX
MOV DX, OFFSET MSG
MOV AH,09H
INT 21H
MOV AH,4CH
INT 21H
MAIN 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 than you have to write correct and then again do same process to run that program. 
      Here we have the video tutorial to run MASM using DOSBox in Windows 10, it's same as in windows 7,8,8.1 etc...