Original address
Software download
The required software has been packaged, including DOSBox and MASM. If not, both software can be downloaded at the address below.
http://hjwblog.com/game/汇编环境.zip
Click to download
Installing DOSBox
Install the compressed package inside DOSBox0.74-win32-installer.exe
.
installing MASM
Copy the contents of the folder inside the compressed package MASM
to a folder, as far as possible D:\masm
. Other paths are also possible, but the paths do not have Chinese or white space.
Such as:
Now open the DOSBox installation directory, and if not, right-click DOSBox shortcut. Select where to open the file.
Now in the DOSBox installation directory
Then double-click the DOSBox 0.74 Options.bat
file. If your computer does not display the extension, just look at the file type, double-click the type for windows批处理文件
that. Note: Do not open with Notepad, not with Notepad, not with Notepad. Someone has done this ...
A notepad file is opened dosbox-0.74.conf
and the following code is added at the end of the file:
mount C D:\masmC:
If those EXE files have not been extracted to the D:\masm
folder, just modify it to their own folder on the line.
Now, after saving the file, turn it off, open DOSBox, and enter dir
. See if there are debug,masm and other documents. If there are words that make a success, you can start writing the assembly.
If not, you can leave a message or consult qq:1542254356.
Advanced content added above the code meaning
mount C D:\masmC:
The role of Mount is to map the PC directory to the directory of the DOS system. Here is the map of your computer D:\masm
to the DOS system C disk, so that your DOS C-disk operation is equivalent to D:\masm
do.
The second line of command is the C drive into DOS.
In fact, you can not modify the Conf file, as long as you enter these two commands each time you run.
Why would you like to modify the DOSBox conf file
The code under the [AutoExec] label of the DOSBox conf file will run at DOSBox startup so that you do not have to enter the code every time in DOSBox.
Windows Assembly Environment Configuration